Sega megadrive/genesis core
Moderators: Mug UK, Zorro 2, spiny, Greenious, Moderator Team
Sega megadrive/genesis core
Does any body have a working sega megadrive core for the mist in any state? Id love to use the mist as a megadrive!!!
Re: Sega megadrive/genesis core
Well it looks like an FPGA core exists https://github.com/Torlus/fpgagen but i dont know if its been ported ..
Re: Sega megadrive/genesis core
No it dosnt seem like it is any body currently working on one?
Re: Sega megadrive/genesis core
lips2k15 wrote:No it dosnt seem like it is any body currently working on one?
Seems like your golden opportunity for you to start with FPGA verilog code and learn how to make a core!
Re: Sega megadrive/genesis core
There is no good FPGA code of main sound chip YM2612.
That fpgagen is totally soundless. I found some experiments on improved fpgagen with part of YM2612 emulation. But that requires very large FPGA. I believe the model of YM2612 is incorrectly written and thus every array made of LE instead of FPGA RAM - thus requires large FPGA.
And again this is written in ugly language - VHDL. Why ppl are using this inconvenient non-intuitive language??
That fpgagen is totally soundless. I found some experiments on improved fpgagen with part of YM2612 emulation. But that requires very large FPGA. I believe the model of YM2612 is incorrectly written and thus every array made of LE instead of FPGA RAM - thus requires large FPGA.
And again this is written in ugly language - VHDL. Why ppl are using this inconvenient non-intuitive language??
Re: Sega megadrive/genesis core
Quick look in YM2612 code revealed very frustrating implementation. Something like 1:1 rewrite of c/pascal code from some PC emulator. Full of blocking assignments - that's why synthesizer cannot move tables into FPGA RAM and uses 5400 of logic cells per channel! And full YM2612 implementation requires 6 channels which of course won't fit. So, YM2612 code needs total rewrite from the ground to make a code using FPGA RAM...
Re: Sega megadrive/genesis core
I'd be happy without sound to start with.
but it would bring a flood of requests to add it... of course.

Re: Sega megadrive/genesis core
Is this the same implementation as fpgagen?Sorgelig wrote:Quick look in YM2612 code revealed very frustrating implementation. Something like 1:1 rewrite of c/pascal code from some PC emulator. Full of blocking assignments - that's why synthesizer cannot move tables into FPGA RAM and uses 5400 of logic cells per channel! And full YM2612 implementation requires 6 channels which of course won't fit. So, YM2612 code needs total rewrite from the ground to make a code using FPGA RAM...
https://github.com/sauraen/YM2612
Re: Sega megadrive/genesis core
I've saw this YM2612 implementation as well, but i'm not sure if it is complete or not. From comments in header, it's not tested.mambrino wrote: Is this the same implementation as fpgagen?
https://github.com/sauraen/YM2612
But again, it uses the same bad technique of FPGA programming and most likely will use LC for tables instead of RAM. I think it's mostly for simulation than synthesis.
All these sega implementations are based on fpgagen. fpgagen is just soundless.
Re: Sega megadrive/genesis core
with or without sound it would be amazing!!!
-
- Captain Atari
- Posts: 311
- Joined: Sun May 15, 2016 3:44 pm
Re: Sega megadrive/genesis core
Agreed- Playing hockey with my own music in the background would still be sweet. Puyo Puyo... actually I think a lot of games are fun to mute and play your own music with. 

Re: Sega megadrive/genesis core
OTO some games like sonic would just be weird without sound.
- jotego
- Captain Atari
- Posts: 253
- Joined: Wed May 04, 2016 10:02 am
- Location: Valencia (Spain)
- Contact:
Re: Sega megadrive/genesis core
I also had a look and it is a port of a software emulator. As I said on a different thread, I am finishing off the YM2151 and I might do more Yamaha chips with proper verilog and proper measurements of the original chips. The YM2612 and YM2203 are on my to-do list but it depends on the acceptance of my work on the YM2151. It's been hundreds of hours spent on this so unless I see it makes people happy I won't keep working on this stuff.Sorgelig wrote:Quick look in YM2612 code revealed very frustrating implementation. Something like 1:1 rewrite of c/pascal code from some PC emulator. Full of blocking assignments - that's why synthesizer cannot move tables into FPGA RAM and uses 5400 of logic cells per channel! And full YM2612 implementation requires 6 channels which of course won't fit. So, YM2612 code needs total rewrite from the ground to make a code using FPGA RAM...
Re: Sega megadrive/genesis core
I think your contribution is fantastic.. and im sure people would be very happy to have some sort of working YM2612 even if its not perfect ..
Keep up the good work !
Keep up the good work !
jotego wrote:I also had a look and it is a port of a software emulator. As I said on a different thread, I am finishing off the YM2151 and I might do more Yamaha chips with proper verilog and proper measurements of the original chips. The YM2612 and YM2203 are on my to-do list but it depends on the acceptance of my work on the YM2151. It's been hundreds of hours spent on this so unless I see it makes people happy I won't keep working on this stuff.Sorgelig wrote:Quick look in YM2612 code revealed very frustrating implementation. Something like 1:1 rewrite of c/pascal code from some PC emulator. Full of blocking assignments - that's why synthesizer cannot move tables into FPGA RAM and uses 5400 of logic cells per channel! And full YM2612 implementation requires 6 channels which of course won't fit. So, YM2612 code needs total rewrite from the ground to make a code using FPGA RAM...
- alexh
- Fuji Shaped Bastard
- Posts: 2837
- Joined: Wed Oct 20, 2004 1:52 pm
- Location: UK - Oxford
- Contact:
Re: Sega megadrive/genesis core
I can convert any VHDL into verilog in minutes as long as not too many record types or multidimensional array ports. Point me in the direction to the files and I'll convert it. I'll also rewrite any table implementations so they will support block RAM inference. (Unless they are true dual port)
Re: Sega megadrive/genesis core
@ jotego:
It would make me happy, I'm curious if I can complete the Dune II on Genesis/Megadrive after the PC and Amiga version...
It would make me happy, I'm curious if I can complete the Dune II on Genesis/Megadrive after the PC and Amiga version...
-
- Captain Atari
- Posts: 311
- Joined: Sun May 15, 2016 3:44 pm
Re: Sega megadrive/genesis core
Count me in too on being super happy on your work towards the sound on a Genesis core!!
- jotego
- Captain Atari
- Posts: 253
- Joined: Wed May 04, 2016 10:02 am
- Location: Valencia (Spain)
- Contact:
Re: Sega megadrive/genesis core
ericgus wrote:I think your contribution is fantastic.. and im sure people would be very happy to have some sort of working YM2612 even if its not perfect ..
Keep up the good work !
DrOG wrote:@ jotego:
It would make me happy, I'm curious if I can complete the Dune II on Genesis/Megadrive after the PC and Amiga version...
Thank you guys, I really appreciate these comments. It's hard to work on these things alone so seeing that people care gives my morale a boost.seastalker wrote:Count me in too on being super happy on your work towards the sound on a Genesis core!!
Re: Sega megadrive/genesis core
Thanks to youjotego wrote:
Thank you guys, I really appreciate these comments. It's hard to work on these things alone so seeing that people care gives my morale a boost.

Just a computer and videogame lover
- Atari Jr 2600 clone
- Atari 7800 Peritel
- Atari XEGS
- Atari Lynx II
- Atari Jaguar
- MiST Board

- Atari Jr 2600 clone
- Atari 7800 Peritel
- Atari XEGS
- Atari Lynx II
- Atari Jaguar
- MiST Board
Re: Sega megadrive/genesis core
It's great to have you and others contributing to this project and open source hardware in general. I really feel it's the best way to preserve these machines... because there is software emulation but that preserves the games mostly.
The MiST (and similar devices) achieves the same experience.(e.g. instant on) and uses much less power than the original machines. Connectivity aside (e.g. no carts), it's objectively a massive improvement of the originals IMHO. But the MiST wouldn't be what it is without all the massive work that went into older and current projects for open source HDL.
So at least to this poster, your work (and that of the other contributors) is greatly appreciated. I only wish I could do a bit more on the HDL side to be more useful.
The MiST (and similar devices) achieves the same experience.(e.g. instant on) and uses much less power than the original machines. Connectivity aside (e.g. no carts), it's objectively a massive improvement of the originals IMHO. But the MiST wouldn't be what it is without all the massive work that went into older and current projects for open source HDL.
So at least to this poster, your work (and that of the other contributors) is greatly appreciated. I only wish I could do a bit more on the HDL side to be more useful.

Re: Sega megadrive/genesis core
Also since its newer modern hardware in the MiST its also less likely to have problems like bad caps and other things associated with old and possibly failing hardware due to age.Newsdee wrote: uses much less power than the original machines.
Re: Sega megadrive/genesis core
Yes but more than that, as long as the HDL is open source whenever Altera/Intel releases the Cyclone XVI FPGA in 20 years it will still run.ericgus wrote:Also since its newer modern hardware in the MiST its also less likely to have problems like bad caps and other things associated with old and possibly failing hardware due to age.Newsdee wrote: uses much less power than the original machines.

Sure the same can be said of MAME for software, but my point is once you have a cycle accurate hardware clone, that's it - the original units could all disappear but we can still recapture the same experience with a new clone.
- alexh
- Fuji Shaped Bastard
- Posts: 2837
- Joined: Wed Oct 20, 2004 1:52 pm
- Location: UK - Oxford
- Contact:
Re: Sega megadrive/genesis core
Is a cycle accurate HDL representation enough? Are there not analog features of the original chips which the digital recreation doesn't match?Newsdee wrote:my point is once you have a cycle accurate hardware clone, that's it - the original units could all disappear but we can still recapture the same experience with a new clone.
Re: Sega megadrive/genesis core
Possibly, but if they are documented, couldn't they be recreated, at least in principle?alexh wrote:Is a cycle accurate HDL representation enough? Are there not analog features of the original chips which the digital recreation doesn't match?