Page 1 of 1
Developing Core for Panasonic 3DO
Posted: Mon Mar 20, 2023 3:56 pm
by Roman
Let me introduce myself a bit, I grown up as an embedded software engineer with some analog/digital circuits development in my background
A few years ago I was developing some sort of a home-brew "gaming console" (wouldn't call it like that though) using stm32 microcontrollers, so I managed to port a few games on my board, such as doom, quake I, II (buried now), duke nukem ... But my real goal was to port Killing Time from 3DO console, but unfortunately the only person who has sources (It's Rebecca Heinemann) has some licensing issues going on. Then I started looking at 3DO emulation instead, and since there are plenty of software emulators already, I came up with an idea to implement one on FPGA, and so here I am
I just started my way to this, literally I just ordered one of these Xilinx board (which is Kria K26, or something), and would really appreciate if anyone wants to join this journey, I have got a plan, I believe
PS: for anyone curious about games I listed in above running on stm32 board, please take a look :
https://www.youtube.com/channel/UCMXDf6 ... UGLl-1qQQw
So if anyone has any insights on this I would really appreciate it. I have not done this before, just did port some old games on my own home-brew console, so I'm new to this game console fpga core development at first glance the overall process looks like to me :
- Grab SoC board with CPU and FPGA available
- Get open source emulator, which is proven to be working
- Build it for the given board
- Replace sub systems with IP cores
- Repeat 4 until whole port is done
- TBD
Re: Developing Core for Panasonic 3DO
Posted: Mon Mar 20, 2023 6:38 pm
by FPGA64
Your proposal wont make a FPGA core. You seem to be porting an existing emulator. FPGA development is radically different. A 3DO is a very complex first project and I think you would be better off choosing an old 80's Arcade game to start on, if not just working on an exiting FPGA core and fixing some issues within it.
To give some example of scale Robert Peip, an experienced FPGA dev has taken 1 year to get the PSX FPGA core to its current state.
Re: Developing Core for Panasonic 3DO
Posted: Mon Mar 20, 2023 7:21 pm
by Mr. Encyclopedia
I've seen quite a few developers, including Robert Peip, start the development process with a cycle-accurate software emulator that they use to build the FPGA core. I suspect Roman, given his experience with embedded hardware, gets that. The approach of porting an emulator to a SoC board and then altering the emulator to rely more and more on the FPGA reminds me of the fabled "Hybrid Emulation" that regularly comes up.
I hope this project works out for him, but a hybrid emulator built on anything other than the DE-10 Nano is unlikely to be viable for the MiSTer project. The various FPGA boards vary in hardware architecture, not to mention having to work around the ways MiSTer already utilizes both the CPU and FPGA.
Re: Developing Core for Panasonic 3DO
Posted: Mon Mar 20, 2023 9:02 pm
by Roman
Thank you for replying to this, I see that Mister project is based on DE-10 Nano, I've been stick to use Xilinx boards, as for my regular job, so I think this could be an option. I really appreciate that someone has interest in that, so that motivates me !
My Xilinx SoC board is on its way, and I started trying this emulator as a base for my project (could build it so far):
https://github.com/gameblabla/3doh_gcw0
I could compile it, and in coming day would try to get in touch with the author (even it is a for of a "freedo" project though, they may have some experience with reversing hardware)
I would also contact back Rebecca Heinemann, as she was close to this console
Will keep you posted !
Re: Developing Core for Panasonic 3DO
Posted: Mon Mar 20, 2023 11:45 pm
by Chilli_Vibes
Good luck.
My own 3DO will never be sold, I have had it since the late 90s when they were all sold off really cheap. I have the Panasonic Real FZ-1, and I just love it's 90s aesthetics.
Re: Developing Core for Panasonic 3DO
Posted: Tue Mar 21, 2023 2:19 am
by vgesoterica
Come to the 3DO discord. We have more documents and help than you could ever need!
https://discord.gg/f8ggdSC3Qs
Re: Developing Core for Panasonic 3DO
Posted: Tue Mar 21, 2023 11:17 am
by trapexit
Roman wrote: ↑Mon Mar 20, 2023 9:02 pm
Thank you for replying to this, I see that Mister project is based on DE-10 Nano, I've been stick to use Xilinx boards, as for my regular job, so I think this could be an option. I really appreciate that someone has interest in that, so that motivates me !
My Xilinx SoC board is on its way, and I started trying this emulator as a base for my project (could build it so far):
https://github.com/gameblabla/3doh_gcw0
I could compile it, and in coming day would try to get in touch with the author (even it is a for of a "freedo" project though, they may have some experience with reversing hardware)
I would also contact back Rebecca Heinemann, as she was close to this console
Will keep you posted !
Yeah, definitely come over to the Discord. We have myself (maintainer of Opera emulator and run 3dodev.com), Fixel (author of Freedo and the recent ODE), as well as a few original 3DO developers and current homebrew authors.
Re: Developing Core for Panasonic 3DO
Posted: Tue Mar 21, 2023 12:53 pm
by jordi
Wow !
one of the exciting but not successful consoles
It has these unique ports like NFS, Wolfstein, Road Rash, Another world.
Re: Developing Core for Panasonic 3DO
Posted: Tue Mar 21, 2023 1:42 pm
by bbond007
jordi wrote: ↑Tue Mar 21, 2023 12:53 pm
It has these unique ports like NFS, Wolfstein, Road Rash, Another world.
And the exclusive Way of the Warrior! --> https://youtu.be/-_Ya4mSkDMI
Re: Developing Core for Panasonic 3DO
Posted: Tue Mar 21, 2023 2:53 pm
by Bunker
Would love this on the misterFPGA !
Re: Developing Core for Panasonic 3DO
Posted: Tue Mar 21, 2023 3:28 pm
by pbsk8
isn't FPGAzumSpass working on 3do core already?
Re: Developing Core for Panasonic 3DO
Posted: Tue Mar 21, 2023 4:20 pm
by PixelCherryNinja
Great News. I hope this becomes something really good. All the best.
Re: Developing Core for Panasonic 3DO
Posted: Tue Mar 21, 2023 4:22 pm
by FPGAzumSpass
3DO is often requested, so there is a large crowd of people who would appreciate that.
Some hints from my side, as someone who also writes a software emulator every time before the FPGA core:
Grab SoC board with CPU and FPGA available
Get open source emulator, which is proven to be working
Build it for the given board
Replace sub systems with IP cores
Repeat 4 until whole port is done
This is likely not going to work. The subsystems typically communicate much faster(latency) with each other than the CPU of the SoC FPGA could communicate with the FPGA fabric
You could maybe get something working, but it will be very inaccurate and leads to plenty of debugging.
I don't think it's a approach that is saving time in the end.
What i do instead:
i write the software emulator in a way that already every component is triggered every clock cycle, not some event based system that most emulators use
This way it's much easier to compare between FPGA and emulator
add bus level exports for every major component in the emulator
So e.g. to build a GPU, i capture all commands send from CPU to GPU to a file and simulate that for the FPGA without the rest of the system. Output of the simulated FPGA GPU and emulated software GPU are written to a file and must be 100% same in diff tool. Same for all other major components
Re: Developing Core for Panasonic 3DO
Posted: Sun Apr 09, 2023 6:07 pm
by Roman
Good one folks !
I've made so progress so far and here to share that with you
Note: haven't visited discord community so far, but going to
So:
- Bring up of Xilinx Kria260 board is done, running basic linux stuff with monitor via hdmi
- Build freedo emulator for it (with having SDL 1.2 library compiled), no sound and no joystick so far
- Created shared memory (since that FPGA doesn't have required 3 mbytes dedicated memory) - so it will be used as shared ram + vram during early steps (Really slow one !, need to think about improving it with cache or so)
- Put some madam stuff such as registers and variables to fpga
- On early stage will be doing pure copy of freedo in HDL, since this is the only source I have, so event driven model. Haven't found any reliable description of MADAM hw so I can implement cycle accurate hdl
Next steps :
- Implementing MADAM in HDL, step by step replacing SW modules with HDL ones
- TBD
Thanks to everyone !
Will be posting further updates as soon as I have something !
Replying to @FPGAzumSpass - yes, you have your point here, but I needed something to start with without having any hardware..
Re: Developing Core for Panasonic 3DO
Posted: Sun Apr 09, 2023 8:30 pm
by Roman
Thank you so much, just created an account, will take a look my tomorrow time!
Re: Developing Core for Panasonic 3DO
Posted: Sun Apr 09, 2023 8:36 pm
by Roman
FPGAzumSpass wrote: ↑Tue Mar 21, 2023 4:22 pm
3DO is often requested, so there is a large crowd of people who would appreciate that.
Some hints from my side, as someone who also writes a software emulator every time before the FPGA core:
Grab SoC board with CPU and FPGA available
Get open source emulator, which is proven to be working
Build it for the given board
Replace sub systems with IP cores
Repeat 4 until whole port is done
This is likely not going to work. The subsystems typically communicate much faster(latency) with each other than the CPU of the SoC FPGA could communicate with the FPGA fabric
You could maybe get something working, but it will be very inaccurate and leads to plenty of debugging.
I don't think it's a approach that is saving time in the end.
What i do instead:
i write the software emulator in a way that already every component is triggered every clock cycle, not some event based system that most emulators use
This way it's much easier to compare between FPGA and emulator
add bus level exports for every major component in the emulator
So e.g. to build a GPU, i capture all commands send from CPU to GPU to a file and simulate that for the FPGA without the rest of the system. Output of the simulated FPGA GPU and emulated software GPU are written to a file and must be 100% same in diff tool. Same for all other major components
That makes sense for sure, but SW emulator is to be rewritten in that case, which I think I can't afford in the nearest future, in terms of time
Thanks a lot !
Re: Developing Core for Panasonic 3DO
Posted: Tue Oct 29, 2024 3:10 pm
by Goran
Is there a 3DO Core that works?
Re: Developing Core for Panasonic 3DO
Posted: Tue Oct 29, 2024 4:24 pm
by FPGA64
Goran wrote: ↑Tue Oct 29, 2024 3:10 pm
Is there a 3DO Core that works?
No
Re: Developing Core for Panasonic 3DO
Posted: Tue Oct 29, 2024 5:53 pm
by niallquinn
Electron Ash did a 3d0 core, see his git for it. Not been updated for 2 years though.
Re: Developing Core for Panasonic 3DO
Posted: Tue Oct 29, 2024 7:07 pm
by remax
There are WIP builds in the discord
Re: Developing Core for Panasonic 3DO
Posted: Tue Oct 29, 2024 7:45 pm
by FPGA64
remax wrote: ↑Tue Oct 29, 2024 7:07 pm
There are WIP builds in the discord
No there are not. There are no work in progress 3DO builds on the Discord. CDI has WIP not 3DO
Re: Developing Core for Panasonic 3DO
Posted: Tue Oct 29, 2024 7:58 pm
by niallquinn
Correct, as are the Dreamcast core, plenty of pics and a video, takes 12 seconds to render 1 frame, so it's a tad on the slow side!
THat said, I believe he creates it all in C++, then converts it into verilog. I don't know if that improves things or not, I'm not a dev, just an observer.
3d0 pic attached.
He's also posted all his Dreamcast work on discord, pics, and a video.
Re: Developing Core for Panasonic 3DO
Posted: Tue Oct 29, 2024 8:01 pm
by niallquinn
But as the ST and Amiga cores are still worked on, and aren't perfect after 10 years of hard work, it's going to be a while before anything like this gets to a usable state I would think.
Re: Developing Core for Panasonic 3DO
Posted: Tue Oct 29, 2024 8:06 pm
by niallquinn
Sorry just to clear it up, there's no test builds available in the discord, unless there's some hidden channel, but here's the Dreamcast core video.
https://drive.google.com/file/d/1GUWKqg ... cjoJp/view
It'll give you an idea of what he and the other devs involved are up against. DE10 probably not I would think, DE25 if the Mister project goes down that route, it would be more likely. That's just a comment, not a fact before everyone jumps down my throat.
Thanks!
Re: Developing Core for Panasonic 3DO
Posted: Tue Oct 29, 2024 8:11 pm
by FPGA64
His Dreamcast core was an attempt to understand how the rendering works in the Dreamcast. His 3DO core is run in simulation, not on a DE10. Its highyl misleading to list these as cores.
they are initial inverstigations. Important work but not a core
Re: Developing Core for Panasonic 3DO
Posted: Wed Oct 30, 2024 8:29 am
by remax
FPGA64 wrote: ↑Tue Oct 29, 2024 7:45 pm
No there are not. There are no work in progress 3DO builds on the Discord. CDI has WIP not 3DO
Whoops, yeah... I read the whole topic with CDi replacing 3DO in my mind.
Re: Developing Core for Panasonic 3DO
Posted: Wed Oct 30, 2024 6:23 pm
by niallquinn
FPGA64 wrote: ↑Tue Oct 29, 2024 8:11 pm
His Dreamcast core was an attempt to understand how the rendering works in the Dreamcast. His 3DO core is run in simulation, not on a DE10. Its highyl misleading to list these as cores.
they are initial inverstigations. Important work but not a core
Written in c++, porting to verilog, so a potential core lets say.
Re: Developing Core for Panasonic 3DO
Posted: Wed Oct 30, 2024 8:03 pm
by dmckean
Remember that the 3DO is a 5th generation console like the PlayStation, Saturn and the N64 and would take a similar amount of effort to implement. All the work on the "core" at this point is the exploratory work to figure out a feasible architecture for the DE-10 nano. No actual implementation has been started.
Re: Developing Core for Panasonic 3DO
Posted: Thu Oct 31, 2024 12:09 pm
by grizzly
remax wrote: ↑Wed Oct 30, 2024 8:29 am
Whoops, yeah... I read the whole topic with CDi replacing 3DO in my mind.
Easy to do since both has one big drawback together!
Which is when sold new, they where pretty much unobtainium for normal people
Re: Developing Core for Panasonic 3DO
Posted: Fri Nov 01, 2024 2:51 pm
by niallquinn
One for DE25 Mister2 methinks...........if that's the route we go down, I assume it will for compatibility.