N64 Core Possibility? (Update! Robert Is Working On This Core!)

For topics which do not fit in other specific forums.
User avatar
pgimeno
Top Contributor
Posts: 710
Joined: Thu Jun 11, 2020 9:44 am
Has thanked: 277 times
Been thanked: 226 times

Re: N64 Core Possibility? (Update! Robert Is Working On This Core!)

Unread post by pgimeno »

KremlingKuthroat19 wrote: Tue Aug 30, 2022 3:37 am Regarding hybrid emulation, even if it did work, imo it would kind of defeat the purpose of FPGA. The goal for FPGA imo is to 100% replicate the hardware in HDL to preserve for future generations.
I think you won't need more than one hand to count the cores for which this is true. The AY-3-8500 core is one of the few that do that. The Gigatron core is another. Can't think of any other right away. Every core that uses a Z80, for example, is using the T80 module which is a recreation not based on the original hardware.
User avatar
Hodor
Posts: 142
Joined: Mon May 25, 2020 8:29 am
Has thanked: 378 times
Been thanked: 30 times

Re: N64 Core Possibility? (Update! Robert Is Working On This Core!)

Unread post by Hodor »

pgimeno wrote: Wed Aug 31, 2022 1:10 pm
[...] Every core that uses a Z80, for example, is using the T80 module which is a recreation not based on the original hardware.
Out of curiosity, why is that? Is not the actual Zilog Z80 currently decapped and traced?
User avatar
pgimeno
Top Contributor
Posts: 710
Joined: Thu Jun 11, 2020 9:44 am
Has thanked: 277 times
Been thanked: 226 times

Re: N64 Core Possibility? (Update! Robert Is Working On This Core!)

Unread post by pgimeno »

Hodor wrote: Wed Aug 31, 2022 2:49 pm Out of curiosity, why is that? Is not the actual Zilog Z80 currently decapped and traced?
I'd like to know as well. Maybe T80 was around before the work on Z80 was completed, and no one felt like the effort of creating one based on the decap was worthwhile, having T80 already. Or maybe T80 is more FPGA-friendly, like using fewer resources or something like that. I can only conjecture.
KremlingKuthroat19
Posts: 237
Joined: Sat Aug 22, 2020 3:08 am
Has thanked: 27 times
Been thanked: 50 times

Re: N64 Core Possibility? (Update! Robert Is Working On This Core!)

Unread post by KremlingKuthroat19 »

ToothbrushThreepwood wrote: Wed Aug 31, 2022 10:22 am
KremlingKuthroat19 wrote: Wed Aug 31, 2022 2:58 am
rhester72 wrote: Tue Aug 30, 2022 11:49 pm There is about zero chance a board at the DE-10's price point will support N64 in decades. The clocks just aren't there.
Decades is an absurdly hyperbolic take. The FPGA industry is growing by leaps and bounds because of machine learning. To think that Moore’s Law applies to everything but FPGAs is beyond silly.

Robert Piep mentioned it may be just a few years away on his interview with Arduino earlier this year and he certainly knows more than me. Btw, the MiSTer is over 5 years old now. I have a hard time believing FPGA technology will be the same 5-10 years from now.
Hopefully that’ll change, but even if the performance and price is feasible, developer productivity doesn’t scale with Moore’s law, while the number of work hours required to implement the advanced systems a new platform allows probably do.
That's a great point. I completely agree that advanced systems will be much harder to implement not necessarily due to constraints on FPGA hardware, but due to manhours. However, we do have an almost complete N64 core. It took the developer 4 years, but it's being close to accomplished by one man. Cycle accurate 5th/6th gen consoles is a very tantalizing prospect. I can see teams being formed around this in the next 5-10 years to tackle huge projects like a Dreamcast or a PS2 one day. I'm not claiming that this happen in the near future, but just saying it won't be in the distant future either imo.

Regardless, I think FPGA gaming's future is so bright that it's frankly blinding. Ignoring the million dollar question of getting a new board to run more advanced consoles, we'll get a Saturn core in the next year or 2 and who knows after that. By decade's end I suspect that most everything that can run on MiSTer will run on MiSTer. We've seen a big influx of developers recently, especially on the arcade side of things and we're getting to the long tail of diminishing returns for consoles and PCs. Being an owner of the MiSTer since summer of 2020, I can say that it's pretty miraculous when you consider how many cores we've gotten in that time. Every year there's huge surprises and the value proposition of the MiSTer grows by leaps and bounds.
dmckean
Posts: 310
Joined: Sat Jan 16, 2021 7:03 am
Has thanked: 396 times
Been thanked: 95 times

Re: N64 Core Possibility? (Update! Robert Is Working On This Core!)

Unread post by dmckean »

Hodor wrote: Wed Aug 31, 2022 2:49 pm
pgimeno wrote: Wed Aug 31, 2022 1:10 pm
[...] Every core that uses a Z80, for example, is using the T80 module which is a recreation not based on the original hardware.
Out of curiosity, why is that? Is not the actual Zilog Z80 currently decapped and traced?
A more vertical oriented implementation is going to consume less resources in the core with the trade off being that it needs to run at a higher clock speed. As long as it executes all the instructions in the same manner and with the same timings as the original it doesn't matter.
User avatar
Newsdee
Top Contributor
Posts: 873
Joined: Mon May 25, 2020 1:07 am
Has thanked: 104 times
Been thanked: 239 times

Re: N64 Core Possibility? (Update! Robert Is Working On This Core!)

Unread post by Newsdee »

KremlingKuthroat19 wrote: Tue Aug 30, 2022 3:37 am Regarding hybrid emulation, even if it did work, imo it would kind of defeat the purpose of FPGA. The goal for FPGA imo is to 100% replicate the hardware in HDL to preserve for future generations. A hybrid approach opposes this.
That's debatable. Yes keeping a core as 100% HDL will help port it to other boards, but there is nothing wrong with taking a hybrid approach as long as it helps push beyond the limits of the DE10.

That said, from what I have seen so far it makes the design more complex without a lot of extra benefit. I wonder whether daisy chaining 2 or 3 DE10s via GPIO might be a better solution than using the embedded ARM.

The main limit is bandwidth between components, so that still wouldnt work for N64, but it may allow designs with more LEs if eg the scaler is moved to a 2nd board.
seastalker
Posts: 249
Joined: Tue Jun 02, 2020 6:49 pm
Has thanked: 26 times
Been thanked: 53 times

Re: N64 Core Possibility? (Update! Robert Is Working On This Core!)

Unread post by seastalker »

... you mean a MiSTer MiSTer? :)

I actually like the idea. I'm not qualified to suggest it would work or not, but if people stack pi's in tandem for crypto, maybe a double-mister can do more advanced cores. I don't envy the developer to take on the task.
rhester72
Top Contributor
Posts: 1323
Joined: Thu Jun 11, 2020 2:31 am
Has thanked: 15 times
Been thanked: 213 times

Re: N64 Core Possibility? (Update! Robert Is Working On This Core!)

Unread post by rhester72 »

Been suggested and shot down many times on this very forum - not enough external data lines to do it (and what's there isn't nearly fast enough).
thorr
Top Contributor
Posts: 1311
Joined: Mon Jul 06, 2020 9:37 pm
Has thanked: 634 times
Been thanked: 308 times

Re: N64 Core Possibility? (Update! Robert Is Working On This Core!)

Unread post by thorr »

There is actually a much simpler and cheaper solution. I already solved it and am already enjoying my fully developed N64 core. It works 100% correctly too. Get a used N64. :-)
User avatar
Mr. Encyclopedia
Posts: 111
Joined: Thu Aug 05, 2021 1:52 am
Has thanked: 51 times
Been thanked: 47 times
Contact:

Re: N64 Core Possibility? (Update! Robert Is Working On This Core!)

Unread post by Mr. Encyclopedia »

Used hardware is well and good, and these days with everdrives and ODEs and recapping we can extend the life of old hardware further than previously hoped, but nothing lasts forever.
TobyRieper
Posts: 21
Joined: Thu Jun 18, 2020 9:13 pm
Has thanked: 2 times
Been thanked: 1 time

Re: N64 Core Possibility? (Update! Robert Is Working On This Core!)

Unread post by TobyRieper »

Exactly. This is the reason im getting a mister again...sold mine in 2020 when i needed funds.
User avatar
eldritch
Posts: 13
Joined: Thu Apr 14, 2022 3:18 pm
Been thanked: 2 times

Re: N64 Core Possibility? (Update! Robert Is Working On This Core!)

Unread post by eldritch »

In case anyone missed it, Robert's secret core is the N64! Of course expectations still need to be in check but he's gonna give it a go! Even if some workarounds need to be in place to make it happen it'll be cool to have it.

https://twitter.com/AzumFpg?ref_src=tws ... de%3Dfalse

https://www.patreon.com/FPGAzumSpass

User avatar
Waifu4Life
Posts: 271
Joined: Fri Jun 19, 2020 5:30 am
Has thanked: 21 times
Been thanked: 47 times

Re: N64 Core Possibility? (Update! Robert Is Working On This Core!)

Unread post by Waifu4Life »

Well that topic aged poorly.

Neocaron
Top Contributor
Posts: 375
Joined: Sun Sep 27, 2020 10:16 am
Has thanked: 209 times
Been thanked: 87 times

Re: N64 Core Possibility? (Update! Robert Is Working On This Core!)

Unread post by Neocaron »

It did and I'm really happy about it. I do expect some hack ao486 and PSX style for the core to get it to full N64 speed though, but I don't mind! As long as the visible in game accuracy is 99% there. I think it is fair to say that after the PSX core, we can trust him to deliver.

Remastering Classic Game Cinematics: My new Youtube fun, check it out :D
https://www.youtube.com/@neocaron87

dcubed
Posts: 52
Joined: Sat Sep 03, 2022 5:44 pm
Has thanked: 26 times
Been thanked: 25 times

Re: N64 Core Possibility? (Update! Robert Is Working On This Core!)

Unread post by dcubed »

the_importer wrote: Sat Apr 15, 2023 7:21 pm

Well that topic aged poorly.

Bit early to say that yet, even Robert himself said that he's not sure if it's possible on the current DE-10 nano.

But either way, the foundational work here will mean that an N64 core will basically be ready to go as soon as we get a viable successor to the DE-10 nano, so it's still very exciting either way.

rhester72
Top Contributor
Posts: 1323
Joined: Thu Jun 11, 2020 2:31 am
Has thanked: 15 times
Been thanked: 213 times

Re: N64 Core Possibility? (Update! Robert Is Working On This Core!)

Unread post by rhester72 »

dcubed wrote: Sat Apr 22, 2023 9:12 am
the_importer wrote: Sat Apr 15, 2023 7:21 pm

Well that topic aged poorly.

Bit early to say that yet, even Robert himself said that he's not sure if it's possible on the current DE-10 nano.

But either way, the foundational work here will mean that an N64 core will basically be ready to go as soon as we get a viable successor to the DE-10 nano, so it's still very exciting either way.

To be honest I think the bigger thing that may come of it is an actually viable and accurate software emulator which has never before existed.

mcf81
Posts: 12
Joined: Mon Feb 06, 2023 4:26 pm
Has thanked: 5 times
Been thanked: 4 times

Re: N64 Core Possibility? (Update! Robert Is Working On This Core!)

Unread post by mcf81 »

rhester72 wrote: Sun Apr 23, 2023 2:04 am

To be honest I think the bigger thing that may come of it is an actually viable and accurate software emulator which has never before existed.

Accurate? Yes, definitely ... Robert's emulator may be the most accurate N64 emulator ever created, the "bsnes of N64". But that is also applied to the performance (bsnes is brilliant but not exactly super performant) -- I don't believe Robert intends for it to be usable for anything other than testing. His latest (amazing!) screenshot of his emulator running Ocarina of Time also shows it was running at ~ 30% speed. 8-) I doubt he would be interested in refactoring it to run at a normal speed since that is not at all what it was developed for, but perhaps someone could come behind, fork the project, and optimize it for use outside of testing.

Also worth reiterating is that even if Robert hits a wall with N64 on DE-10 Nano, the community will have a tremendous incentive to find the next platform (playing N64 and possibly even DS with all the work Robert has also put in there!). Although off-the-shelf FPGA boards are out of the question due to the expense, perhaps someone in the community could do a for-profit crowdfunding of a workable FPGA platform ala Analogue...

User avatar
Newsdee
Top Contributor
Posts: 873
Joined: Mon May 25, 2020 1:07 am
Has thanked: 104 times
Been thanked: 239 times

Re: N64 Core Possibility? (Update! Robert Is Working On This Core!)

Unread post by Newsdee »

mcf81 wrote: Sun Apr 23, 2023 2:42 am

the community will have a tremendous incentive to find the next platform (playing N64 and possibly even DS with all the work Robert has also put in there!).

This 100%. MiST and later MiSTer gave a home to many cores that came before them. So having cores that don't fit on a. MiSTer will eventually make a bigger device interesting.

perhaps someone in the community could do a for-profit crowdfunding of a workable FPGA platform ala Analogue...

I wouldn't hold my breath on this one. Analogue (an established name) still was unable to make a device surpassing the MiSTer's FPGA for a good price. Why would a crowdfunding be any better?

mcf81
Posts: 12
Joined: Mon Feb 06, 2023 4:26 pm
Has thanked: 5 times
Been thanked: 4 times

Re: N64 Core Possibility? (Update! Robert Is Working On This Core!)

Unread post by mcf81 »

Newsdee wrote: Sun Apr 23, 2023 5:28 am

I wouldn't hold my breath on this one. Analogue (an established name) still was unable to make a device surpassing the MiSTer's FPGA for a good price. Why would a crowdfunding be any better?

I’m probably just dreaming big :lol: but with all the amazing things coming from the community these days it’s an easy thing to do!

AtomicShroom
Posts: 172
Joined: Sun Mar 07, 2021 12:28 pm
Has thanked: 31 times
Been thanked: 48 times

Re: N64 Core Possibility? (Update! Robert Is Working On This Core!)

Unread post by AtomicShroom »

The DE-10 Nano has been around since 2017, 6 years ago. Considering how fast things typically evolve in the field of computers, I find it kind of surprising that Terasic has yet to release a more powerful iteration, and that we're not even hearing about one being in the works. I'm not familiar with how FPGA processors are made, but can someone who does explain why things are this stagnant?

Nickie
Posts: 37
Joined: Thu Sep 08, 2022 6:38 pm
Has thanked: 14 times
Been thanked: 7 times

Re: N64 Core Possibility? (Update! Robert Is Working On This Core!)

Unread post by Nickie »

it's not about power, it's about the size of the chip itself, some can contain more gates than other, so there ARE bigger dev boards, but they are more expensive, you could spend 12k for some of them babies, we would totally port mister to them but who would buy them?

so the MiSTer project might move on to a better FPGA dev board, one day, if necessary, but right now since FPGAs aren't really a mainstream appliance, prices don't go down, in fact, even the de10's price goes up over time, and would be a lot more expensive if Intel wasn't subsidizing it for education

grizzly
Top Contributor
Posts: 381
Joined: Tue Jun 16, 2020 12:22 pm
Has thanked: 58 times
Been thanked: 77 times

Re: N64 Core Possibility? (Update! Robert Is Working On This Core!)

Unread post by grizzly »

The DE-10 Nano was and is mostly directed at the beginners to start doing FPGA stuff, aka draw them in so they buy more FPGA´s for their projects and then to their job projects.
That is one reason that so many things is built into it like network connector/hdmi and so on.
At the same time that is one reason why there has not been any larger/faster FPGA´s put on it/or a new similar board has been made.
The DE-10 is simply big and fast enough for beginners and even for many really advanced things!

Antoine.WG
Posts: 55
Joined: Mon Jan 09, 2023 11:30 pm
Has thanked: 34 times
Been thanked: 10 times

Re: N64 Core Possibility? (Update! Robert Is Working On This Core!)

Unread post by Antoine.WG »

It's worth noting that the N64's MIPS R4300i CPU contained about 1.7 million transistors, over 10x the logic elements in DE-10 Nano's FPGA (110,000), and the RSP transistor count is 2.6 million. There are undoubtedly some optimizations that can and have been made but it may never be possible to fully emulate the N64 at full speed on this hardware.

User avatar
cacophony
Posts: 14
Joined: Sun May 24, 2020 7:45 pm
Has thanked: 3 times
Been thanked: 2 times

Re: N64 Core Possibility? (Update! Robert Is Working On This Core!)

Unread post by cacophony »

Antoine.WG wrote: Wed Apr 26, 2023 12:56 am

It's worth noting that the N64's MIPS R4300i CPU contained about 1.7 million transistors, over 10x the logic elements in DE-10 Nano's FPGA (110,000), and the RSP transistor count is 2.6 million. There are undoubtedly some optimizations that can and have been made but it may never be possible to fully emulate the N64 at full speed on this hardware.

Good thing a logic element is significantly more capable than a transistor

willis936
Posts: 1
Joined: Fri Sep 22, 2023 11:02 am

Re: N64 Core Possibility? (Update! Robert Is Working On This Core!)

Unread post by willis936 »

imo Xilinx offerings are crushing Altera. The Kria KR260 is a bit expensive at $350, but its XCZU5EV has more than twice the LEs than the Cyclone V. The DE10 Nano wins for having an insane number of user GPIO exposed. I don't know of any other boards that break out 80 pins. There are cheaper Kria options with even less broken out I/O, but I can't imagine anyone would be happy with even less than half the DE10 Nano's GPIO.

Also, it's essential that retooling isn't required to port cores, otherwise stuff will fall through the cracks. Altera is likely the safe choice.

Post Reply