Genesis / Megadrive core ported to MiST

Area for discussing ST(E) clones

Moderators: Mug UK, Zorro 2, Greenious, spiny, Moderator Team

phoboz
Atariator
Atariator
Posts: 19
Joined: Sun Jan 15, 2017 10:52 pm

Re: Genesis / Megadrive core ported to MiST

Postby phoboz » Mon May 08, 2017 1:47 pm

It's a bit tricky to get stable builds now as the fpga is over 95% full. However there was some work done on the sdcard reader that I haven't tried yet. My sdcard became corrupt after heavy usage, so I need to reformat it. Please let me know if anyone has tried the newSD branch from github. Otherwise I will give you an update once I have tried it!

User avatar
vebxenon
Captain Atari
Captain Atari
Posts: 451
Joined: Fri Apr 24, 2015 12:10 pm

Re: Genesis / Megadrive core ported to MiST

Postby vebxenon » Tue May 09, 2017 7:05 am

phoboz wrote:It's a bit tricky to get stable builds now as the fpga is over 95% full. However there was some work done on the sdcard reader that I haven't tried yet. My sdcard became corrupt after heavy usage, so I need to reformat it. Please let me know if anyone has tried the newSD branch from github. Otherwise I will give you an update once I have tried it!


Do you have any binary of the new branch?

User avatar
Sheldon
Atari User
Atari User
Posts: 34
Joined: Mon Mar 30, 2015 10:41 pm

Re: Genesis / Megadrive core ported to MiST

Postby Sheldon » Wed May 17, 2017 6:26 pm

Hello,

any news ?

Best Regards.

phoboz
Atariator
Atariator
Posts: 19
Joined: Sun Jan 15, 2017 10:52 pm

Re: Genesis / Megadrive core ported to MiST

Postby phoboz » Thu May 18, 2017 10:48 am

Hello,
There is no bitstream (.rbf) file available for download, I have built the project but not tried it on the MiST yet. I will put the file on the mist-binaries repository once I have make a quick smoke test.

phoboz
Atariator
Atariator
Posts: 19
Joined: Sun Jan 15, 2017 10:52 pm

Re: Genesis / Megadrive core ported to MiST

Postby phoboz » Thu May 18, 2017 4:34 pm

FPGAGEN Beta (2017-05-18) released :megaphone:

Please find the file:

Code: Select all

fpgagen-beta_20170518.rbf

under:
https://github.com/mist-devel/mist-binaries/tree/master/cores/fpgagen

I have done a quick smoke test, and the games I that usually play are working with sound. The game loading seems to be a bit more stable since the NewSD fix (see above)

:cheers:

Code: Select all

This is a port of fpgagen - Genesis/Megadrive core to additional platform(s)
MiST, Turbo Chameleon 64, Altera/Terasic DE2 board

The core shall be considered a work in progress as there are multiple issues:
1. Sprite flickering on heavy scenes, or on large sprites
2. No LFO modulation of the FM sound
3. Rom file formats supported are .bin and .gen, no support for .smd files
4. The design does not fit on the Altera/Terasic DE1 board anymore

==== Installing the core ====
If you are not buidling the core, copy the following files to the root of your sdcard:
fpgagen.rbf
Config_VGA/FPGAGEN.CFG, or Config_TV/FPGAGEN.CFG (for 15 kHz video)

Then rename the file fpgagen.rbf to core.rbf

breiztiger
Atariator
Atariator
Posts: 23
Joined: Sun Sep 20, 2009 6:54 am
Location: FRANCE

Re: Genesis / Megadrive core ported to MiST

Postby breiztiger » Thu May 18, 2017 4:56 pm

hi

yes loading game is much strong

thanks for your work

DanyPPC
Atari User
Atari User
Posts: 42
Joined: Tue Feb 21, 2017 7:02 am

Re: Genesis / Megadrive core ported to MiST

Postby DanyPPC » Thu May 18, 2017 6:41 pm

Good Job !
You are on the right way ;)

User avatar
vebxenon
Captain Atari
Captain Atari
Posts: 451
Joined: Fri Apr 24, 2015 12:10 pm

Re: Genesis / Megadrive core ported to MiST

Postby vebxenon » Fri May 19, 2017 9:49 am

:) Great! I will update at the evening

User avatar
vebxenon
Captain Atari
Captain Atari
Posts: 451
Joined: Fri Apr 24, 2015 12:10 pm

Re: Genesis / Megadrive core ported to MiST

Postby vebxenon » Wed May 24, 2017 8:57 am

I've tested the core. OSD is too buggy and gets corrupted soon. But great progress on games :D, although most racing games have corrupted graphics, like Super Monaco GP.

Keep the good work!

Regards,

Salva

Sorgelig
Captain Atari
Captain Atari
Posts: 492
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: Genesis / Megadrive core ported to MiST

Postby Sorgelig » Thu Jun 15, 2017 3:02 pm

phoboz,

I want to port your core to my MiSTer(MiST ported to a larger FPGA-HPS) system. What branch is better to use?

phoboz
Atariator
Atariator
Posts: 19
Joined: Sun Jan 15, 2017 10:52 pm

Re: Genesis / Megadrive core ported to MiST

Postby phoboz » Sun Jun 18, 2017 11:45 pm

Hello Sorgelig,
You should probably use the master branch, as it will be most stable (no experimets before tested)
I have merged in the NewSD branch, which only affects the MiST target.

Sorgelig
Captain Atari
Captain Atari
Posts: 492
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: Genesis / Megadrive core ported to MiST

Postby Sorgelig » Mon Jun 19, 2017 12:46 pm

Hmm.. it look like a lot of redundant things in the core.. ZPU with firmware, SPI for SD...
Not optimized for MiST where you can simply choose required ROM from OSD.

phoboz
Atariator
Atariator
Posts: 19
Joined: Sun Jan 15, 2017 10:52 pm

Re: Genesis / Megadrive core ported to MiST

Postby phoboz » Mon Jun 19, 2017 5:39 pm

Yes the osd, rom loading etc. is not utilizing the MiST firmware in full. This port was based on the pc engine core for MiST, which uses a completely different method for loading roms (zpu + firmware on the fpga). This approach occupies a lot of the fpga, so the fpga usage can be decreased if using the MiST method for rom loading on the MiST target. However it was not so easy to find a suitable 16-bit romloader matching the handshake interface of the core. If you are able to use the MiST method for loading roms, osd etc. please share your core. Then it would be possible to resume development on the MiST platform, as it is stalled now due to the fpga beeing almost full.

bernouilli
Atari nerd
Atari nerd
Posts: 46
Joined: Fri Jan 06, 2017 5:02 pm
Location: Paris/France

Re: Genesis / Megadrive core ported to MiST

Postby bernouilli » Mon Jun 19, 2017 9:06 pm

@sorgelig: What is this Mister? I couldn't find anything on it but your repository.

Sorgelig
Captain Atari
Captain Atari
Posts: 492
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: Genesis / Megadrive core ported to MiST

Postby Sorgelig » Tue Jun 20, 2017 1:45 am

Because MiSTer is my project and currently i'm the only who is working in it.
https://github.com/MiSTer-devel/Main_MiSTer/wiki

btw, i've managed to clean FPGAGen from redundant parts and now it works on MiSTer using very similar to MiST API. Just need some time to polish the port.

User avatar
DrOG
Captain Atari
Captain Atari
Posts: 154
Joined: Sun Jul 31, 2016 8:23 pm
Location: Gyula, Hungary

Re: Genesis / Megadrive core ported to MiST

Postby DrOG » Tue Jun 20, 2017 4:06 am

Nice work, looking forward to it!

NegSol
Retro freak
Retro freak
Posts: 10
Joined: Sat Dec 05, 2015 9:22 pm

Re: Genesis / Megadrive core ported to MiST

Postby NegSol » Tue Jun 20, 2017 6:43 pm

@Sorgelig - Really great project - I think you nailed the specs. This could really make some mist fans even more happy! We only need to find a solution to get USB devices attached. But I guess this should not be an issue considering the GPIOs on the board. I am already considering getting a board.

NegSol
Retro freak
Retro freak
Posts: 10
Joined: Sat Dec 05, 2015 9:22 pm

Re: Genesis / Megadrive core ported to MiST

Postby NegSol » Tue Jun 20, 2017 8:41 pm

Okay, I now see the DE10 Nano got an USB OTG port. So all is good :)

bernouilli
Atari nerd
Atari nerd
Posts: 46
Joined: Fri Jan 06, 2017 5:02 pm
Location: Paris/France

Re: Genesis / Megadrive core ported to MiST

Postby bernouilli » Tue Jun 20, 2017 8:59 pm

It sounds great.
I have questions though :
- why not use SRAM instead of SDRAM? Is it because it's more expensive and not available in high capacity?
- the is no SD card port, where do you store the files?

Gehstock
Atari freak
Atari freak
Posts: 70
Joined: Wed Dec 21, 2016 7:18 pm

Re: Genesis / Megadrive core ported to MiST

Postby Gehstock » Tue Jun 20, 2017 9:58 pm


NML32
Captain Atari
Captain Atari
Posts: 224
Joined: Tue Mar 11, 2014 1:54 am

Re: Genesis / Megadrive core ported to MiST

Postby NML32 » Tue Jun 20, 2017 10:16 pm

I think a new topic should be created for the MiSTer.

phoboz
Atariator
Atariator
Posts: 19
Joined: Sun Jan 15, 2017 10:52 pm

Re: Genesis / Megadrive core ported to MiST

Postby phoboz » Tue Jun 20, 2017 10:41 pm

A topic related to both Genesis and MiSTer is that: If there are enough gpio pins? SRAM could be put on one of the daughter boards in addition to SDRAM. If fpgagen were to use SRAM for graphics memory, the bandwidth problem which causes sprite flickering would most likely be gone. Since most 16-bit consoles and arcade boards, such as Capcom CPS use SRAM (or at least pseudo SRAM in the CPS case) such cores would be easier to develop and they would reflect the original hardware more closely.

Sorgelig
Captain Atari
Captain Atari
Posts: 492
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: Genesis / Megadrive core ported to MiST

Postby Sorgelig » Wed Jun 21, 2017 4:01 am

here is the port of FPGAGen for MiSTer:
https://github.com/MiSTer-devel/FpgaGen_MiSTer
Grab it in current revision since currently it uses very similar to MiST API and SDRAM. I plan to modify the memory module on this core to try to fix graphics problems. MiSTer has enough Block RAM to put Genesis RAM and VRAM there. ROM memory probably can be placed into DDR3.
About MiSTer itself, i will create a separate topic for Q&A.

Sorgelig
Captain Atari
Captain Atari
Posts: 492
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: Genesis / Megadrive core ported to MiST

Postby Sorgelig » Wed Jun 21, 2017 5:06 am

After i've replaced VRAM with BRAM, large sprite problem has gone!

Sorgelig
Captain Atari
Captain Atari
Posts: 492
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: Genesis / Megadrive core ported to MiST

Postby Sorgelig » Wed Jun 21, 2017 5:12 am

Another odd problem with this core is 3420/8 = 427,5 pixels in line...
For analog video it's not a problem while scaler IP using digital signal has problem...


Social Media

     

Return to “ST(E) Clones (Suska / MiST)”

Who is online

Users browsing this forum: NML32 and 3 guests