Minimig Discussion Forum

Discussing the Open Source FPGA Amiga Project
It is currently Sun Nov 19, 2017 8:48 am

All times are UTC




Post new topic Reply to topic  [ 109 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 11  Next
Author Message
 Post subject: Re: FPGA64 on Minimig V1.1 board
PostPosted: Mon Jan 19, 2009 7:35 am 
Offline

Joined: Thu Jan 15, 2009 12:41 pm
Posts: 28
Isn´t it possible to multiplex the address and data lines in order to save some IO pins somehow ? Even though, one must do voltage conversion, it must be possible to connect it somehow. Even if it means to add it as a daughterboard with some extra logic on that board to server as a gateway to the minimig.

Espen


Top
 Profile  
 
 Post subject: Re: FPGA64 on Minimig V1.1 board
PostPosted: Tue Jan 20, 2009 12:44 pm 
Offline

Joined: Mon Dec 01, 2008 9:58 pm
Posts: 1568
Location: .de
Minimig V1.1 board has 3 spare IO lines for free use. Even if the single 15/31KHz jumper line is used as data/address line it would make only 4 wires to connect a chip with at least 8 data in/out lines and 5 address lines. Additional control lines (clocks, we/ce, reset etc.) would be required.
To do this only on 4 lines it would require a huge amount of multiplexing, buffering logic and fpga coding. Also as already mentioned an external daughterboard to host the SID and additional logic. All this only to have "real" C64 sound output? As Dirk said another fpga developer board would take this more easy. Minimig is not designed to be a developer board. Its nice to see other kind of core working on it :)

Right now Im busy in learning Verilog and VHDL to be more sure of what Im doing and also able to adapt/port some thing to this fpga and pcb. Until now I had some positive resolts in building (very simple) own core files for it.
Currently Im porting this free "Pong" clone: http://www.fpga4fun.com/PongGame.html :)

_________________
_____________________________
JMP $00000BED ; will guru-meditation until next morning


Last edited by boing4000 on Sat Feb 14, 2009 11:42 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: FPGA64 on Minimig V1.1 board
PostPosted: Wed Jan 21, 2009 7:33 am 
Offline

Joined: Thu Jan 15, 2009 12:41 pm
Posts: 28
Cool. I will check it out. BTW: Can you let me in on which tools I need to download and what pre reqisities needed to start loading sources, compiling them and get the .bin file out to load onto the sd card to test on the minimig ?

I just downloaded the webpack from xilinx plus the foundation 10.1 but I am not sure if these are the right ones. You seem to have managed to get over the edge and start making use of the knowledge aquired in order to port cores.

Would you mind taking 5 mins and throw some info out..just to enlighten the others who also find fpga programming interesting, but are not yet gotten to the point where you are now ?

1. Which SW to download, and from where
2. Names of tools needed, and what they do
3. A test source to try out
4. How to compiled and apply it to the sd card in order to test it


If you had time to do this, I would be insanely happy :) (does that make sense ? hehe)


Espen


Top
 Profile  
 
 Post subject: Re: FPGA64 on Minimig V1.1 board
PostPosted: Wed Jan 21, 2009 11:01 pm 
Offline

Joined: Mon Dec 01, 2008 9:58 pm
Posts: 1568
Location: .de
Yep Xilinx ISE Webpack is the right thing to compile FPGA core for Minimig Spartan3.

Im also using version 9.2i because 10.1 don't want to compile the current minimig sources from Jakub. If you want to create own new projects (for testing something) 10.1 will do fine!
Version 9.2i can still be downloaded on Xilinx website, you have to select the previous version by hand.

I will try to make a short (hopefuly understandable) depiction how to start a new project till compiling into .bin file.
You will have to download the current minimig source file (http://home.hetnet.nl/~weeren001/downloads/minimigJ_source_04_08_2008.zip) and unpack it somewhere. Then:

Start ISE Webpack frontend... sure, what else ;) I dont know the windows start menu name. As you will see Im using Linux here.


To start a new project select "file" > "new project" in pull-down menu. You will see this:
Attachment:
gkrellShoot_01-21-09_234510.png
gkrellShoot_01-21-09_234510.png [ 10.65 KiB | Viewed 4975 times ]

Type in the name of your project, in this case "Minimig1". ISE will name the path to all project file the same... but you can also alter it. Let everything else at default and select "next".



Now you have to set the right hardware specs to your FPGA. For the Minimig board you will need this settings:
Attachment:
gkrellShoot_01-21-09_234521.png
gkrellShoot_01-21-09_234521.png [ 15.6 KiB | Viewed 4975 times ]

Select Next to go on...



The following window can be skiped unless you only have one source file to add.
Minimig is based on several source file, so just go "Next".

_________________
_____________________________
JMP $00000BED ; will guru-meditation until next morning


Last edited by boing4000 on Wed Jan 21, 2009 11:53 pm, edited 8 times in total.

Top
 Profile  
 
 Post subject: Re: FPGA64 on Minimig V1.1 board
PostPosted: Wed Jan 21, 2009 11:07 pm 
Offline

Joined: Mon Dec 01, 2008 9:58 pm
Posts: 1568
Location: .de
In next window we can add all the source file at once:
Attachment:
gkrellShoot_01-21-09_234548.png
gkrellShoot_01-21-09_234548.png [ 11.62 KiB | Viewed 4976 times ]

Select Add to see file import window:



Choose your source path (just expanded out of .zip file) and press CTRL+A to select all files.
Attachment:
gkrellShoot_01-21-09_234639.png
gkrellShoot_01-21-09_234639.png [ 14.64 KiB | Viewed 4976 times ]

Select Open to add this sources to the new project.



All source (.v) files will be listed as here:
Attachment:
gkrellShoot_01-21-09_234716.png
gkrellShoot_01-21-09_234716.png [ 20.77 KiB | Viewed 4981 times ]

Select Next to continue...

_________________
_____________________________
JMP $00000BED ; will guru-meditation until next morning


Top
 Profile  
 
 Post subject: Re: FPGA64 on Minimig V1.1 board
PostPosted: Wed Jan 21, 2009 11:30 pm 
Offline

Joined: Mon Dec 01, 2008 9:58 pm
Posts: 1568
Location: .de
Next window will show a summary of the new project... its just an info so I will not post this picture here.
Select Finish to continue.

In following window all sources will be included, it take only a few secs and all .v file symbol should have a green check.
Attachment:
gkrellShoot_01-21-09_234748.png
gkrellShoot_01-21-09_234748.png [ 26.16 KiB | Viewed 4981 times ]

Select Ok when everything is right (green ;)) to finish this step.



Now you should see the main window of ISE:
Attachment:
gkrellShoot_01-21-09_2348091.jpg
gkrellShoot_01-21-09_2348091.jpg [ 98.58 KiB | Viewed 4977 times ]

I will base upon this window because its too much upload for only little changes.

On the upper left you will find all the project sources and sub-sources (+). First we let them right there and take care of some necessary settings.

Select projects "top module" in the upper left part - as visual in the picture above.
Click "Create Programming File" with right mouse bottom in the lower left part. Then select "Properties..."


The following window will show up and you have to check-on this black bordered function for .bin file creation.:
Attachment:
gkrellShoot_01-22-09_001934.png
gkrellShoot_01-22-09_001934.png [ 15.38 KiB | Viewed 4978 times ]

Select OK to ack.



Now all basic settings are done and you can start of compiling the sources into .bin file. It will be named as the project is, so you will find some Minimig1.bin in the sources path. There are also many other "Minimig1.xxx" files too, dont worry about them right now.
If you start any other new project, the resulting "MyProject.bin" file always has to be named "Minimig1.bin" to be used on sd-card for Minimig bootup sequence. The PIC chip will only search for this file name!


To start compiling process you have to right click "Generate Programming File" again and select "Return" or "Return All".
If available you can also choose "Run" but this is a special recompiling case and will be unavailable right now.

Now this lightblue "route forms" should rotate. Sometimes they all do and sometimes only one after another (ISE is a complex thing ;)).
Once its finished, depending on your computers speed, you will have your own compiled Minimig core on harddrive!

PS: ignore all warnings during compiling time. Also ignore a yellow "!" sign on the left side of "Create Programming File". Only Error's are importand, compiling process will stop right there and point out some error message.
But everything else will do just fine.

I hope it was understandable and will work for your benefit.
If I missed something or any kind of error/problem will occur, feel free to ask about it.
At first I also needed help to handle this software and it took me 1-2 days to find out how to get this .bin file out.

Good luck and yes happiness does make sense :)
B4k

_________________
_____________________________
JMP $00000BED ; will guru-meditation until next morning


Last edited by boing4000 on Sun Jan 25, 2009 2:32 am, edited 2 times in total.

Top
 Profile  
 
 Post subject: Re: FPGA64 on Minimig V1.1 board
PostPosted: Fri Jan 23, 2009 9:27 am 
Offline

Joined: Thu Jan 15, 2009 12:41 pm
Posts: 28
Truly awesome, dude. Thanks for this incredibly good tutorial on how to compile it. I have now uninstalled 10.1 and reinstalling 9.2i at the moment to be sure I get it all right. Compiling the minimig source is a great way to see how things shall work. After that I can try to adapt the pong game from fpga4fun so it works with minimig and its vga+ps2 ports. It probably is a lot of work to get it to work as i have no idea on how to do it, but since i am totally blank, any progress is good progress ;-)

BTW: I am very insecure whether I want to start doing vhdl or verilog. Verilog looks much more intuitive as a language, but as i understand, vhdl is probably better to learn (industry-wise). What is your experience and opinion on this ?


Regs
Espen


Top
 Profile  
 
 Post subject: Re: FPGA64 on Minimig V1.1 board
PostPosted: Fri Jan 23, 2009 11:41 am 
Offline

Joined: Mon Dec 01, 2008 10:11 am
Posts: 197
To compile with ISE 10.x add following statement to spiclk net in constraints file: CLOCK_DEDICATED_ROUTE = FALSE


Top
 Profile  
 
 Post subject: Re: FPGA64 on Minimig V1.1 board
PostPosted: Fri Jan 23, 2009 12:08 pm 
Offline

Joined: Thu Jan 15, 2009 12:41 pm
Posts: 28
Oh, I just deinstalled 10.1 and reinstalled 9.2i with SP4 :) Now I regret that :) hehe...
Still, i Guess 9.2 will give me as much fun as I need anyway ;-)

Boing: It worked nicely. Everything compiled as it should. Now I can start to see if I can make some testprograms for the minimig and maybe try porting that damn Pong game :-))))

Espen


Top
 Profile  
 
 Post subject: Re: FPGA64 on Minimig V1.1 board
PostPosted: Sun Jan 25, 2009 2:51 am 
Offline

Joined: Mon Dec 01, 2008 9:58 pm
Posts: 1568
Location: .de
@palm
You are welcome. ISE Webpack 9.2i is working fine, V 10.1 is not really necessary "to us" afaik. Even Dennis v. W. developed the first 2 Minimig core using ISE 6.x as he told me in some email.

@all
Can somebody please give me a little advice in building own dcm? It seems Im unable to do so... Also some changes dont show any effect to the recompiled core. If this will work, Pong and some other portings will also work very fine on Minimig!
Thx :)

_________________
_____________________________
JMP $00000BED ; will guru-meditation until next morning


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 109 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 11  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


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