Genesis / Megadrive core ported to MiST

https://github.com/mist-devel/mist-board/wiki

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

Post Reply
User avatar
Newsdee
Atari God
Atari God
Posts: 1561
Joined: Fri Sep 19, 2014 8:40 am

Re: Genesis / Megadrive core ported to MiST

Post by Newsdee »

I noticed this on the page:
MiSter allows to use USB storage for cores and their data
This might work with a Retrode, a cart dumper that presents itself as a USB storage to the PC. Then we could play Genesis games from carts! :)
phoboz
Atari User
Atari User
Posts: 36
Joined: Sun Jan 15, 2017 10:52 pm

Re: Genesis / Megadrive core ported to MiST

Post by phoboz »

Sorgelig wrote:After i've replaced VRAM with BRAM, large sprite problem has gone!
That sounds impressive, could you post a video for those who does not have the MiSTer yet? :angel:
Sorgelig
Ultimate Atarian
Ultimate Atarian
Posts: 6348
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: Genesis / Megadrive core ported to MiST

Post by Sorgelig »

phoboz wrote:
Sorgelig wrote:After i've replaced VRAM with BRAM, large sprite problem has gone!
That sounds impressive, could you post a video for those who does not have the MiSTer yet? :angel:
what game you want to see?
phoboz
Atari User
Atari User
Posts: 36
Joined: Sun Jan 15, 2017 10:52 pm

Re: Genesis / Megadrive core ported to MiST

Post by phoboz »

Sorgelig wrote:
phoboz wrote:
Sorgelig wrote:After i've replaced VRAM with BRAM, large sprite problem has gone!
That sounds impressive, could you post a video for those who does not have the MiSTer yet? :angel:
what game you want to see?
For example Sonic The Hedgehog, since there are some other videos on the net of that game where the flickering is visible (most notably on the demo of the Marble Zone) That one will start after the title screen appears again after the first stage demo. Like in this video: https://m.youtube.com/watch?v=uaoyPK1pr40
Sorgelig
Ultimate Atarian
Ultimate Atarian
Posts: 6348
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: Genesis / Megadrive core ported to MiST

Post by Sorgelig »

I don't know why, but video sticks in processing stage on youtube.
There you will see MK3, Sonic the Hedgehog, Lemmings games. You can compare with MiST version.
Last edited by Sorgelig on Thu Jun 22, 2017 1:21 am, edited 1 time in total.
Gehstock
Captain Atari
Captain Atari
Posts: 431
Joined: Wed Dec 21, 2016 7:18 pm
Location: EastGermany

Re: Genesis / Megadrive core ported to MiST

Post by Gehstock »

Good Work, with Standart Mist Menu looks nice(ZPU have a Bug (lists not all Files on SDCARD))
Sorgelig
Ultimate Atarian
Ultimate Atarian
Posts: 6348
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: Genesis / Megadrive core ported to MiST

Post by Sorgelig »

video is finally uploaded on youtube: https://www.youtube.com/watch?v=6IuXCm3R5_M
User avatar
Newsdee
Atari God
Atari God
Posts: 1561
Joined: Fri Sep 19, 2014 8:40 am

Re: Genesis / Megadrive core ported to MiST

Post by Newsdee »

Weird, Sonic is scrolling in the opposite direction? That's interesting... would make for a nice challenge :)
But it looks fantastic. All the flickering issues are gone!
Sorgelig
Ultimate Atarian
Ultimate Atarian
Posts: 6348
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: Genesis / Megadrive core ported to MiST

Post by Sorgelig »

Notice ROM loading speed? Much faster than on MiST.

Also i've managed to re-make the core without using SDRAM at all. System RAM and Video RAM use FPGA block RAM. ROM uses DDR3 memory.
Sorgelig
Ultimate Atarian
Ultimate Atarian
Posts: 6348
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: Genesis / Megadrive core ported to MiST

Post by Sorgelig »

Hmm.. music is weird after migrating ROM to DDR3. It seems Genesis is sensitive to RAM access time even for music. Well, going back to SDRAM.

I was wrong. There are no additional issues while using DDR3 for ROM. It's just core itself has meta-stability issues.
Actually this core has longest compile time among other cores. Even Minimig needs shorter time to compile.
phoboz
Atari User
Atari User
Posts: 36
Joined: Sun Jan 15, 2017 10:52 pm

Re: Genesis / Megadrive core ported to MiST

Post by phoboz »

Yes the stability issue from build-to-build has been a problem for a while, but that now that you have got rid of the zpu and firmware at least some improvement must have been made. Also with a larger fpga routing should have a higher chance to succeed, but as I have learned setting up proper constraints should really be the key to a proper routing from build-to-build. Since many of us seem to have a software background (including myself) this is something new to learn. We did make a shortcut, to set routing option for low power optimization, which would shorten the signal path, but it also increases the routing processing time a little bit. Note that the Genesis is actually a quite complex system, having two different computers (68k and z80) communicating over a shared bus, dma etc. It is actally not that far from SEGAs system 16 arcade board, only with a weaker video display sub-system.

The core has been inherited from Torlus, so I am not aware of all features. I have started several attempts to clean it up, for example I wanted to lift out the scandoubler from the vdp and use the external scandoubler used by many MiST projects but failed. Maybe it has to do with the fact that a scanline is 3420/80 = 427,5 pixels clocks, and the scandoubler module can't handle that.

@Sorgelig, great progress with fixing the sprite flickering issue! I never realized that an fpga could have so much memory to fit the video ram for a 16-bit system. Strage with reverse Sonic, are you sure you are not using a hacked rom? What about other platformers, are they reversed too?
Sorgelig
Ultimate Atarian
Ultimate Atarian
Posts: 6348
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: Genesis / Megadrive core ported to MiST

Post by Sorgelig »

Don't mind about Sonic. I've just picked a random Sonic ROM. May be it's altered or special version - it's nothing to do with the core.

I think Audio part should be updated too. jotego's FM core has update since integration. PSG needs update. Audio volume is very very low.

About future video improvement without using BRAM: I think it's possible to fix the flickering - just SDRAM controller needs big change. It's too cluttered from my point of view. Probably it's possible to disable refresh cycle since video output already acts as refresh. Just need to check if screen size cover all rows.
Anyway, core needs more improvements. I'm not a big fan of Sega and i don't know every bit of its hardware, so i won't do much for the core.
User avatar
vebxenon
Atari God
Atari God
Posts: 1035
Joined: Fri Apr 24, 2015 12:10 pm

Re: Genesis / Megadrive core ported to MiST

Post by vebxenon »

And it's possible to put these changes on MIST or this will be only for other boards?
Just a computer and videogame lover :)

- Atari Jr 2600 clone
- Atari 7800 Peritel
- Atari XEGS
- Atari Lynx II
- Atari Jaguar
- MiST Board
phoboz
Atari User
Atari User
Posts: 36
Joined: Sun Jan 15, 2017 10:52 pm

Re: Genesis / Megadrive core ported to MiST

Post by phoboz »

The MiSTer rom loader and OSD shall be possible to port back to MiST, thus much FPGA space will be saved. Regarding sprite flickering we need to find a way to imporove the SDRAM controller, as the MiST FPGA does not have enough block ram to use for video memory.
User avatar
vebxenon
Atari God
Atari God
Posts: 1035
Joined: Fri Apr 24, 2015 12:10 pm

Re: Genesis / Megadrive core ported to MiST

Post by vebxenon »

:wink: Thanks very much for the answer Phoboz
Just a computer and videogame lover :)

- Atari Jr 2600 clone
- Atari 7800 Peritel
- Atari XEGS
- Atari Lynx II
- Atari Jaguar
- MiST Board
NML32
Atari Super Hero
Atari Super Hero
Posts: 691
Joined: Tue Mar 11, 2014 1:54 am
Location: USA/Florida

Re: Genesis / Megadrive core ported to MiST

Post by NML32 »

Has anyone tried FixItFelixJr_AirwalkStudios.bin? I can't seem to get past the "Press Start" title screen.
User avatar
Sheldon
Atari freak
Atari freak
Posts: 69
Joined: Mon Mar 30, 2015 10:41 pm

Re: Genesis / Megadrive core ported to MiST

Post by Sheldon »

Hello,
Anys news ??
Computers : Mega STE+(4Mo +HXC SLim and UltraSatan), Atari 1040 STe+( 4Mo + HXC SLim and UltraSatan), Atari 1040 Stf+(HXC SLim , Mega ST1+(HXC SLim and UltraSatan), FPGA Mist+Mistery Core( and other ...)
http://www.amedia-computer.com
User avatar
DrOG
Atari Super Hero
Atari Super Hero
Posts: 732
Joined: Sun Jul 31, 2016 8:23 pm
Location: Gyula, Hungary

Re: Genesis / Megadrive core ported to MiST

Post by DrOG »

Sorgelig made some progress during his MISTer project, but the core has still metastability issues:

http://atari-forum.com/viewtopic.php?f= ... 90#p322190

I wonder if someone, who has the necessary knowledge is interested porting his work back to MIST?
User avatar
Gryzor
Gryzorator
Gryzorator
Posts: 1564
Joined: Wed Jun 05, 2002 8:36 am
Location: Athens, Greece
Contact:

Re: Genesis / Megadrive core ported to MiST

Post by Gryzor »

This project had completely passed me by... I'm so glad it exists, even though progress has slowed. This could possibly make my MiST replace my SMD after the multicarts voltage brouhaha that took place a while back, instead of having to buy a Mega EverDrive X5 to replace my EverDrive MD (anyone has one to sell? :D ).

Also: salivating about MiSTer now :D
Reality is that, which, when you stop believing in it, doesn't go away. --P.K.Dick

.:.
http://gryzor.info

Image
Torlus
Retro freak
Retro freak
Posts: 10
Joined: Mon Jul 15, 2013 6:56 pm

Re: Genesis / Megadrive core ported to MiST

Post by Torlus »

Hi,
I am the original author of the fpgagen core (as well as some others, check https://github.com/Torlus/fpgapce and https://github.com/Torlus/JagNetlists
I've read that forum thread quickly, and it seems that getting a stable build is still an issue.
From what I've seen, no design constraints (.sdc files) have been written yet.
When I wrote that core in 2010, the Quartus version I was using used the "Classic Timing Analyzer".
However, IIRC, starting at version 13.0 of Quartus, there have been a switch to TimeQuest Timing Analyzer, and now synthesis relies heavily on how you constrain your design. It may appear as a burden at first sight, but I found it to be incredibly useful, once you get used to it.
If someone is interested to work on this subject, please let me know.
Regards,
Gregory
Gehstock
Captain Atari
Captain Atari
Posts: 431
Joined: Wed Dec 21, 2016 7:18 pm
Location: EastGermany

Re: Genesis / Megadrive core ported to MiST

Post by Gehstock »

Thank you for your fantastic Work. :cheers:
User avatar
Newsdee
Atari God
Atari God
Posts: 1561
Joined: Fri Sep 19, 2014 8:40 am

Re: Genesis / Megadrive core ported to MiST

Post by Newsdee »

Thanks for these and the PC Engine core! I think the MiSTer port is a little more stable, due to having more FPGA space, but of there is a way to fix it on the MiST that would be great.
User avatar
DrOG
Atari Super Hero
Atari Super Hero
Posts: 732
Joined: Sun Jul 31, 2016 8:23 pm
Location: Gyula, Hungary

Re: Genesis / Megadrive core ported to MiST

Post by DrOG »

I agree!

Awesome work :cheers: , but MiST port is still not perfect... :roll:
User avatar
vebxenon
Atari God
Atari God
Posts: 1035
Joined: Fri Apr 24, 2015 12:10 pm

Re: Genesis / Megadrive core ported to MiST

Post by vebxenon »

I know the compatibility issues, but the main problem I see in the total unstability once you have load a rom and want to change the game. Most time I need to change the rom, MiST and core must be restarted. Will this problem be solved or OSD changed to the standard MiST OSD?

Regards,

Salva
Just a computer and videogame lover :)

- Atari Jr 2600 clone
- Atari 7800 Peritel
- Atari XEGS
- Atari Lynx II
- Atari Jaguar
- MiST Board
User avatar
vebxenon
Atari God
Atari God
Posts: 1035
Joined: Fri Apr 24, 2015 12:10 pm

Re: Genesis / Megadrive core ported to MiST

Post by vebxenon »

phoboz wrote:The MiSTer rom loader and OSD shall be possible to port back to MiST, thus much FPGA space will be saved. Regarding sprite flickering we need to find a way to imporove the SDRAM controller, as the MiST FPGA does not have enough block ram to use for video memory.
Any news about this porting? :)
Just a computer and videogame lover :)

- Atari Jr 2600 clone
- Atari 7800 Peritel
- Atari XEGS
- Atari Lynx II
- Atari Jaguar
- MiST Board
Post Reply

Return to “MiST”