Saanlima Forums

Support for products from Saanlima Electronics
It is currently Sat Dec 16, 2017 3:44 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Thu Oct 31, 2013 9:59 am 
Offline

Joined: Thu Aug 29, 2013 5:48 pm
Posts: 225
This is a port of Brian Bennett's NES fpga emulation modified for Pipistrello LX45 by Magnus Karlsson.
At boot-up the SD-card is checked for a game file (game.nes). If found it will load and start the game, else it will default to Super Mario Bros. which is pre-loaded in BRAM.
See attached bit file. The bit file can be loaded to the Pipistrello board using fpgaprog (fpgaprog -f nes_top_smb_mb.bit)

Image

Hookup:
Video-out via HDMI connector (VGA resolution)
Sound-out via audio connector
Support for up to 2 NES game controllers connected to the top row of the PMOD connector.
PMOD connector hookup (from right to left): CLOCK, LATCH, DATA OUT(1), DATA OUT(2), GND, POWER

Here is a source for NES game controller: http://www.amazon.com/NES-Controller-Generic-Nintendo-Entertainment-System/dp/B000UCF9TA

NES game controller socket pinout:
Attachment:
NES_connector.jpg
NES_connector.jpg [ 6.4 KiB | Viewed 9162 times ]


Attachments:
File comment: NES bit file with Super Mario in bram
nes_top_smb_mb.bit [1.42 MiB]
Downloaded 595 times
Top
 Profile  
 
PostPosted: Thu Jan 15, 2015 11:04 am 
Offline

Joined: Thu Jan 15, 2015 11:00 am
Posts: 2
Hi,

I have managed to get default Super Mario Game working ( lots of fun :) ), but am struggling to get other games to load.
I'm using a 16gb microsd card ( class 4 ), formatted FAT32.
Each time it just loads Super Mario.

If you have any ideas that would be great, thanks.


Top
 Profile  
 
PostPosted: Thu Jan 15, 2015 12:27 pm 
Offline

Joined: Thu Aug 29, 2013 5:48 pm
Posts: 225
At power-up it looks at the sd card to see if there is a file called game.nes and if found it will load it instead of Super Mario Bros. that's preloaded in the RAMs.
So to run a different game you need to copy one of the supported games from roms\game_roms\supported to the sd card and rename it game.nes

Hope this helps,
Magnus


Top
 Profile  
 
PostPosted: Thu Jan 15, 2015 2:54 pm 
Offline

Joined: Thu Aug 29, 2013 5:48 pm
Posts: 225
BTW, here is a link to Brian's github repository for fpga_nes, it has the game rom files etc.
https://github.com/brianbennett/fpga_nes

Magnus


Top
 Profile  
 
PostPosted: Fri Jan 16, 2015 10:02 am 
Offline

Joined: Thu Jan 15, 2015 11:00 am
Posts: 2
I see my mistake - I was just trying random ROM files from internet.
Didn't realize there were special supported ones (plenty of them anyway!).

All working perfectly now!

Many thanks


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

All times are UTC - 8 hours [ DST ]


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® Forum Software © phpBB Group