Minimig Discussion Forum

Discussing the Open Source FPGA Amiga Project
It is currently Fri Oct 20, 2017 8:41 am

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Github, etc - where to start?
PostPosted: Mon May 20, 2013 6:31 pm 
Offline

Joined: Thu May 09, 2013 11:32 am
Posts: 32
I have:
- de1 board
- vhdl tutorials (a lot of)
- verilog tutorial
- Windows 7 x64 and OpenSuse 12.2 x64 OS
- Quartus installed and running (both OSes)

- VHDL knowledge: intermediate (didn't write a cpu core yet but want to :)
- Verilog knowledge: beginner (used VHDL before)

- programming: good (Pascal, some assemblers, Basic, C/C++ - my unfinished, left in alpha stage but working project: http://sourceforge.net/projects/pc-softsynth/ - 8-bit Atari Softstsynth in 32-bit environment :) ))

I haven't:

any experience with github
near any experiences with Amiga - I used (and programmed) Atari 130XE and Atari ST in these good old times.

I need some hints how to start to play with Minimig. At the beginning I want simply to compile it and run myself... then look at "how it is done"... next.. who know... So:

- how can I get a source from github/other places?
- it seems this is not only VHDL project, but some microprocessor code, too, for example for floppy controller, and this had to be programmed - in what? asm? C? What tools was used and where to get them?


Top
 Profile  
 
 Post subject: Re: Github, etc - where to start?
PostPosted: Mon May 20, 2013 7:31 pm 
Offline

Joined: Tue Dec 13, 2011 7:48 pm
Posts: 341
pik33 wrote:
I have:
- de1 board

= hours of fun!

Quote:
- vhdl tutorials (a lot of)
- verilog tutorial

= hours of learning

Quote:
- Windows 7 x64 and OpenSuse 12.2 x64 OS

= hours of frustration!

Quote:
- Quartus installed and running (both OSes)

= hours of waiting for projects to synthesize!

Quote:
- VHDL knowledge: intermediate (didn't write a cpu core yet but want to :)
- Verilog knowledge: beginner (used VHDL before)

I learned VHDL before Verilog, but found that once I'd got the concepts from VHDL, Verilog was really easy to pick up. I think as an existing C/C++ programmer I'd have struggled more with Verilog if I hadn't tackled VHDL first, because of the visual similarity between Verilog and C.

Quote:
- programming: good (Pascal, some assemblers, Basic, C/C++ - my unfinished, left in alpha stage but working project: http://sourceforge.net/projects/pc-softsynth/ - 8-bit Atari Softstsynth in 32-bit environment :) ))

Nice! I must have a play with this sometime!

Quote:
I haven't:

any experience with github


Just github, or git in general? Anyhow, it's relatively easy, and very nice being able to create branches at the drop of a hat.

Quote:
- how can I get a source from github/other places?


Chaos has a repository here: https://github.com/rkrajnc/minimig-de1
The first thing you should do is nag him about keeping it up to date! ;)

To check out a copy, just type
git clone <address of repo, copied from the GitHub page>

Quote:
- it seems this is not only VHDL project, but some microprocessor code, too, for example for floppy controller, and this had to be programmed - in what? asm? C? What tools was used and where to get them?


OK, the project is in a mixture of languages and architectures.
* VHDL for the CPU core
* Verilog for the chipset core and various supporting files
* 68k Assembler for the "Amiga"'s boot ROM. (To build this, I use Vasm)
* C (with assembler startup code) for the microcontroller's Boot ROM and Firmware.

Tobiflexx's original build for the DE1 used a second TG68 core as the controller, but Chaos's version uses an OpenRisc variant instead, so to build the latest sources you'll need the OR32 GCC toolchain. Chaos will be able to tell you better than I can where to find the right version.

Hope that helps :)

_________________
~ Amiga 4000/030 ~ Amiga 1200 030/50MHz ~ Turbo Chameleon 64 ~ Altera DE1 with Minimig core ~
Details of my projects: http://retroramblings.net


Last edited by MMrobinsonb5 on Tue May 21, 2013 12:15 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Github, etc - where to start?
PostPosted: Mon May 20, 2013 10:31 pm 
Offline

Joined: Tue Nov 09, 2010 3:10 pm
Posts: 316
Hi pik33,
it would be great to have another programmer working on minimig! Btw., I use exactly the same OSes :)

Great work on your PC-Softsynth project! I see you used Lazarus, I used to do *a lot* of Delphi programming back in the day.

Don't know if you've already seen this, but there are some great Verilog tutorials on this site: http://www.asic-world.com/verilog/veritut.html - I highly recommend them. If you're already a programmer and know VHDL, that should be all you need.

If you want to work on minimig-de1 code, the easiest way to obtain the code is to go to https://github.com/rkrajnc/minimig-de1, there's a 'zip' button at the top, which will get you a nicely zipped archive of the current sources (https://github.com/rkrajnc/minimig-de1/ ... master.zip).
I do recommend you start using git and possibly sign up on the github page. Here is github documentation: https://help.github.com/articles/set-up ... form-linux.
If you'll use github, start by forking my repository (the Fork button at the top), which will give you your own copy of the minimig-de1 repository.
I recommend you do all your development on linux.

Most of the project is written in Verilog, just the TG68K core (the Motorola 68000 CPU) is written in VHDL. There is some 68000 assembly, which is used for some bootup operations (will be removed in the near future), besides that there is also a little assembly and C code for the OR1200 CPU.

The 68000 assembly can be compiled with the vasm compiler, which is included in the repository.
For the OR1200 compiler, see http://opencores.org/or1k/OpenRISC_GNU_tool_chain#GCC. I'm not 100% sure, but this version should work just fine: ftp://ocuser:ocuser@openrisc.opencores. ... 86.tar.bz2 (if not, try the 64bit version ftp://ocuser:ocuser@openrisc.opencores. ... 64.tar.bz2). These are not openSUSE packages, so you just unpack them somewhere, and you will probably have to manually create some symlinks for some libs.
Or download the source and build it, that way the autoconf will tell you what is missing on your system.

For a successful build, you will also have to build the amiga boot code (make in fw/amiga_boot) and the control boot code (make in fw/ctrl_boot), as these binaries are used inside the FPGA.

Oh, and user Master of Gizmo has written a sort of Minimig HowTo, here: http://code.google.com/p/mist-board/wik ... gCoreWorks, if you want an overview of what's happening in the minimig code.

Enjoy! :)

_________________
** my minimig builds: http://somuch.guru/ **


Top
 Profile  
 
 Post subject: Re: Github, etc - where to start?
PostPosted: Mon May 20, 2013 10:32 pm 
Offline

Joined: Tue Nov 09, 2010 3:10 pm
Posts: 316
MMrobinsonb5 wrote:
Chaos has a repository here: https://github.com/rkrajnc/minimig-de1
The first thing you should do is nag him about keeping it up to date! ;)


I am trying! :)

_________________
** my minimig builds: http://somuch.guru/ **


Top
 Profile  
 
 Post subject: Re: Github, etc - where to start?
PostPosted: Wed May 22, 2013 1:15 pm 
Offline

Joined: Thu May 09, 2013 11:32 am
Posts: 32
It seems the repository was updated :)


Top
 Profile  
 
 Post subject: Re: Github, etc - where to start?
PostPosted: Wed May 22, 2013 9:44 pm 
Offline

Joined: Tue Dec 13, 2011 7:48 pm
Posts: 341
pik33 wrote:
It seems the repository was updated :)


Awesome!

_________________
~ Amiga 4000/030 ~ Amiga 1200 030/50MHz ~ Turbo Chameleon 64 ~ Altera DE1 with Minimig core ~
Details of my projects: http://retroramblings.net


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Translated by Xaphos © 2007, 2008, 2009 phpBB.fr