Page 1 of 4

PlayStation MiSTer Core Repository Created

Posted: Wed Sep 01, 2021 11:56 am
by Xbytez
Robert Peip (@AzumFpg) has created the public repository for the PlayStation core he is working on!

https://github.com/RobertPeip/PlayStation_MiSTer

Re: PlayStation MiSTer Core Repository Created

Posted: Wed Sep 01, 2021 12:20 pm
by MostroW
Looks like a good start, quite curious on how this core will progress in the time to come!

Re: PlayStation MiSTer Core Repository Created

Posted: Wed Sep 01, 2021 1:30 pm
by pgimeno
Oh my that's so exciting! Wish he published his software emulator as well.

Re: PlayStation MiSTer Core Repository Created

Posted: Wed Sep 01, 2021 3:12 pm
by Sectorseven
So no analog out through the IO board, it will be interesting to see how users react to that.

Re: PlayStation MiSTer Core Repository Created

Posted: Wed Sep 01, 2021 3:38 pm
by hiddenbyleaves
Sectorseven wrote: Wed Sep 01, 2021 3:12 pm So no analog out through the IO board, it will be interesting to see how users react to that.
I am desperately trying not to react to it at the moment.

Re: PlayStation MiSTer Core Repository Created

Posted: Wed Sep 01, 2021 3:40 pm
by Duffygag
Sectorseven wrote: Wed Sep 01, 2021 3:12 pm So no analog out through the IO board, it will be interesting to see how users react to that.
Using Direct Video probably

Re: PlayStation MiSTer Core Repository Created

Posted: Wed Sep 01, 2021 4:43 pm
by FPGAzumSpass
Maybe there will be the possibility to disable the scaler reading part of the DDR3 and output analog instead.

But i don't focus on such things now.

Re: PlayStation MiSTer Core Repository Created

Posted: Wed Sep 01, 2021 10:45 pm
by FoxbatStargazer
So did Bob get you a CRT yet? :)

Re: PlayStation MiSTer Core Repository Created

Posted: Thu Sep 02, 2021 12:07 am
by Blitzwing
Is this a new ground up core or does it build upon the work by Laxer et al?

Re: PlayStation MiSTer Core Repository Created

Posted: Thu Sep 02, 2021 1:12 am
by Blitzwing
FPGAzumSpass wrote: Wed Sep 01, 2021 4:43 pm Maybe there will be the possibility to disable the scaler reading part of the DDR3 and output analog instead.

But i don't focus on such things now.
Does your workflow of building a software emulator first and using that as the basis for you FPGA core help with debugging and getting the logic right, rather than starting from scratch in Quartus?

Re: PlayStation MiSTer Core Repository Created

Posted: Thu Sep 02, 2021 1:47 am
by gamesfan
Blitzwing wrote: Thu Sep 02, 2021 12:07 am Is this a new ground up core or does it build upon the work by Laxer et al?
New ground up.

Re: PlayStation MiSTer Core Repository Created

Posted: Thu Sep 02, 2021 1:49 am
by Tackemon
Blitzwing wrote: Thu Sep 02, 2021 12:07 am Is this a new ground up core or does it build upon the work by Laxer et al?
From:
https://www.retrorgb.com/misterfpga-psx ... spass.html
None of the open sourced material from Laxer3A or ultraembedded has currently been utilized for the development of his PSX FPGA project.

FPGAzumSpass stated it was easier for him to start from the ground up, rather than use the work previously done on PSX FPGA development.

Re: PlayStation MiSTer Core Repository Created

Posted: Thu Sep 02, 2021 8:59 am
by hiddenbyleaves
FPGAzumSpass wrote: Wed Sep 01, 2021 4:43 pm Maybe there will be the possibility to disable the scaler reading part of the DDR3 and output analog instead.

But i don't focus on such things now.
My excitement rating had dropped to 99% but has now returned to 100%.

Re: PlayStation MiSTer Core Repository Created

Posted: Thu Sep 02, 2021 11:23 am
by darksakul
Sectorseven wrote: Wed Sep 01, 2021 3:12 pm So no analog out through the IO board, it will be interesting to see how users react to that.
I am more than fine with this. If you ask me HDMI is the way.
But I realize that sucks for those CRT fans.

Re: PlayStation MiSTer Core Repository Created

Posted: Thu Sep 02, 2021 1:20 pm
by lroby74
Sectorseven wrote: Wed Sep 01, 2021 3:12 pm So no analog out through the IO board, it will be interesting to see how users react to that.
No CRT no party! :lol: :lol: :lol:

Re: PlayStation MiSTer Core Repository Created

Posted: Thu Sep 02, 2021 1:28 pm
by Duffygag
It seems people in this thread don't know what Direct Video is :)

Re: PlayStation MiSTer Core Repository Created

Posted: Thu Sep 02, 2021 2:11 pm
by lroby74
Duffygag wrote: Thu Sep 02, 2021 1:28 pm It seems people in this thread don't know what Direct Video is :)
I am using Direct Video on 2° Mister (connected to 2 14" Philips CRT monitors) but on first one i need to not use it

Re: PlayStation MiSTer Core Repository Created

Posted: Thu Sep 02, 2021 2:28 pm
by aberu
pgimeno wrote: Wed Sep 01, 2021 1:30 pm Oh my that's so exciting! Wish he published his software emulator as well.
He usually does eventually. The software emulator is often something that runs at like 1/3rd speed is solely for helping the development process anyways, so it's not much of something to play games on.

Re: PlayStation MiSTer Core Repository Created

Posted: Thu Sep 02, 2021 2:57 pm
by FPGAzumSpass
For fullspeed gaming my emulator would require a ~12Ghz CPU, so it's worthless for that.
Most people don't understand why and just say it's bad design, so I rather not publish it.
Also I received complains about the (missing) UI. Well, for my basic tests i don't need any great UI.

The more I design the emulator to work like hardware, the slower it will be and this time I maybe did too much.
On the other hand, I could port the CPU nearly 1:1, except the cache, which helped a lot.

Hopefully the other components will also transfer over so nice.

Re: PlayStation MiSTer Core Repository Created

Posted: Thu Sep 02, 2021 3:11 pm
by Duffygag
FPGAzumSpass wrote: Thu Sep 02, 2021 2:57 pm For fullspeed gaming my emulator would require a ~12Ghz CPU, so it's worthless for that.
Most people don't understand why and just say it's bad design, so I rather not publish it.
Also I received complains about the (missing) UI. Well, for my basic tests i don't need any great UI.

The more I design the emulator to work like hardware, the slower it will be and this time I maybe did too much.
On the other hand, I could port the CPU nearly 1:1, except the cache, which helped a lot.

Hopefully the other components will also transfer over so nice.
Keep up the great work mate, unfortunately the world is filled with entitled 40 years old idiots, with no hardware/software understanding, who never had the chance to grow up and develop into decent human beings, just ignore them :) - The community is beyond lucky to have ppl like yourself.

Re: PlayStation MiSTer Core Repository Created

Posted: Thu Sep 02, 2021 3:22 pm
by Neocaron
FPGAzumSpass wrote: Thu Sep 02, 2021 2:57 pm For fullspeed gaming my emulator would require a ~12Ghz CPU, so it's worthless for that.
Most people don't understand why and just say it's bad design, so I rather not publish it.
Also I received complains about the (missing) UI. Well, for my basic tests i don't need any great UI.

The more I design the emulator to work like hardware, the slower it will be and this time I maybe did too much.
On the other hand, I could port the CPU nearly 1:1, except the cache, which helped a lot.

Hopefully the other components will also transfer over so nice.
My knowledge in this is very limited, but if I understand your process, you basically replicate every FPGA gate at a software level on a regular CPU which allows you to troubleshoot things and make improvement directly, but with very very slow performance. However once you reach a great level of accuracy you then translate this very slow but thorough software emulator to the FPGA chip using the same backbone. Am I close enough? Do you think there is a chance for perspective-correct texturing using floating-point precision? :D

Anyhow, very happy you are the one to be tacking this! Your emulators are absolutely amazing, though I still don't understand why the multiplayer cores are not already part of the official update, since they are game changers for each console you did it for.

Re: PlayStation MiSTer Core Repository Created

Posted: Thu Sep 02, 2021 4:02 pm
by FPGAzumSpass
The multiplayer cores are not in the update script, because the script as is cannot fetch from a branch. Hopefully it's added some day.


The emulator is not built on gate level, my description in FPGA also is not on gate level.
I prefer doing behavioral design as much as I can.
But it does handle every component/chip with the original resolution.

E.g. common emulators only do 1-2 cpu stages, because everything else is just for reaching high CPU clock speed in hardware.
My emulator does all 5 stages, which obviously costs 2-3x performance, but in FPGA I have to do 5 stages anyway to reach the required clock speed.

Also I trigger EVERY component/chip for every clock cycle like it would happen on real hardware.
Most emulators instead work with events, waiting until some action is done and only trigger the chip once.

Re: PlayStation MiSTer Core Repository Created

Posted: Thu Sep 02, 2021 4:18 pm
by Neocaron
Very interesting read! Thanks :) And yes I hope the update script gets updated as well, I feel some people are probably missing out on them, or your lastest improvements, because they are not included.

Re: PlayStation MiSTer Core Repository Created

Posted: Thu Sep 02, 2021 4:39 pm
by Blitzwing
Duffygag wrote: Thu Sep 02, 2021 1:28 pm It seems people in this thread don't know what Direct Video is :)
Oh we do, it's just some use both IO analogue out and the HDMI 😅

Whilst I could plug in and unplug the adapter and the switch ini's I'd rather stick with how I use the MiSTer now, that said if it can't be done it can't be, just having a PS1 core would be an amazing achievement.

Re: PlayStation MiSTer Core Repository Created

Posted: Thu Sep 02, 2021 5:04 pm
by Blitzwing
FPGAzumSpass wrote: Thu Sep 02, 2021 2:57 pm For fullspeed gaming my emulator would require a ~12Ghz CPU, so it's worthless for that.
Most people don't understand why and just say it's bad design, so I rather not publish it.
Also I received complains about the (missing) UI. Well, for my basic tests i don't need any great UI.

The more I design the emulator to work like hardware, the slower it will be and this time I maybe did too much.
On the other hand, I could port the CPU nearly 1:1, except the cache, which helped a lot.

Hopefully the other components will also transfer over so nice.
I guess the software CPU being designed to be ported to FPGA means most of the logic executes in parallel? Great for an FPGA not so much for a CPU which works sequentially.

Don't understand how that is bad design, it just isn't meant for CPU's

Edit, your other post answered that question nevermind.

Re: PlayStation MiSTer Core Repository Created

Posted: Thu Sep 02, 2021 6:09 pm
by pgimeno
I imagine that the software emulator is a "reality check" on how the hardware works and behaves, and allows tuning or fixing things, testing ideas etc. faster and with more debugging tools than doing it directly in hardware form. That sounds like good approach.

Watching the Croc demo video suggested that the speed was quite good, so I guess I got a wrong impression. Nevertheless, I think there's value in publishing the emulator, in that users may check behaviours in certain games to see if they match the real machine the way they expect, and if not, report them even before the hardware is implemented, allowing for correction of those aspects and planning the hardware implementation in advance.

But yeah, I guess that's an "ideal world" view and that the reality is that people will complain if the software emulator doesn't perform as they expect, so it may not be a good idea in practice after all.

Re: PlayStation MiSTer Core Repository Created

Posted: Thu Sep 02, 2021 6:27 pm
by FPGAzumSpass
The software emulator doesn't support all games yet and still has bugs and no sound at all, which causes even more bugs.

For Lynx and Wonderswan I "completed" the emulators before doing the hardware, as they were not as big.
But this time it would have taken too long, so i'll be doing it as I did with GBA: implementing the hardware until some games run, then go back to all the missing things.

It's a longer process, but i don't risk forgetting how things work when I finally got 99% of the games working perfect in the emulator some day next year.
Also i need this to keep myself motivated. I cannot work for 1 year on such a project with no (playable) outcome.


As for the croc demo: the playback was at 2x speed, so about 80% of original speed, I didn't want to torture all viewers with the slow games i have to see :)

Edit: I'm really looking forward to test on FPGA, because it will be 100% speed. It will feel like running in fastforward.

Re: PlayStation MiSTer Core Repository Created

Posted: Thu Sep 02, 2021 6:38 pm
by Moondandy
Getting exciting. Has it been decided what the .rbf name will be for this core?

Re: PlayStation MiSTer Core Repository Created

Posted: Thu Sep 02, 2021 10:20 pm
by MottZilla
lroby74 wrote: Thu Sep 02, 2021 1:20 pm
Sectorseven wrote: Wed Sep 01, 2021 3:12 pm So no analog out through the IO board, it will be interesting to see how users react to that.
No CRT no party! :lol: :lol: :lol:
I agree. But this is just the very beginning. It's understandable to be a low priority at the start. Lots of people certainly hope it'll be added eventually. I certainly do as I prefer analog RGB via the I/O board.

Re: PlayStation MiSTer Core Repository Created

Posted: Mon Sep 06, 2021 7:28 pm
by Xbytez
Another PlayStation 1 core development update: