Re:GateBoy – A gate-level simulation of the original Game Bo...
by deelowe on Thursday September 02, 2021 @06:22PM
(#28398117)
I read this as well. I'm definitely referencing this in the future when someone mentions how "FPGAs directly simulate the system hardware."
[ Parent
| on HN ]
Re:GateBoy – A gate-level simulation of the original Game Bo...
by aappleby on Thursday September 02, 2021 @06:25PM
(#28398151)
As I understand it asynchronous logic stopped being a common thing decades ago, so those sorts of glitches aren't possible (or less possible?) now. The hard stuff in simulation now is probably handling multiple clock domains.
Re:GateBoy – A gate-level simulation of the original Game Bo...
by photojosh on Thursday September 02, 2021 @07:50PM
(#28398817)
Still out there, but only used in special situations. The ARM microcontroller I'm working with has an asynchronous prescaler on the real-time clock crystal input before it gets fed into a second synchronous prescaler which you can then read the output of directly.
This is all about reducing power consumption down in the nA range when the CPU is turned off but the RTC keeps ticking over.
Multiple clock domains definitely tricky though!
Re:GateBoy – A gate-level simulation of the original Game Bo...
by jasonjayr on Thursday September 02, 2021 @08:57PM
(#28399296)
As a software-only guy .... multiple clock domains sounds like the same class of problem as multi threaded + parallel programming, right?
Re:GateBoy – A gate-level simulation of the original Game Bo...
by aappleby on Thursday September 02, 2021 @09:30PM
(#28399496)
Sort of? It's almost more equivalent to networking or distributed processing - circuits in different clock domains can't just send a wire to another domain, they have to go through a synchronizer and do some handshaking and other stuff that's vaguely similar to RPCs. I'm stretching here, it's slightly beyond what I've worked with so far.
Re:GateBoy – A gate-level simulation of the original Game Bo...
by sizeofchar on Thursday September 02, 2021 @10:02PM
(#28399661)
Seems like the same as in multithreaded programming, in which you can’t let threads share memory without synchronizing else you get data races and corruption.
Re:GateBoy – A gate-level simulation of the original Game Bo...
by naikrovek on Thursday September 02, 2021 @10:53PM
(#28399921)
it's more like two simple computers talking over serial, and the serial connection bitrate can't be faster than the clock of the slowest of the two computers.
Re:GateBoy – A gate-level simulation of the original Game Bo...
by photojosh on Saturday September 04, 2021 @07:01AM
(#28413969)
Yep! The microcontroller reference manual is full of warnings to ensure clock rates are compatible by being within a certain range of each other.
Re:GateBoy – A gate-level simulation of the original Game Bo...
by deelowe on Thursday September 02, 2021 @09:35PM
(#28399530)
Sort of. You have to be careful when signals cross clock domains because they can become asynchronous. So anytime you go from one domain to another, you have to be sure to synchronize the data. This is often accomplished via flip flop.
Re:GateBoy – A gate-level simulation of the original Game Bo...
by Teknoman117 on Friday September 03, 2021 @11:37AM
(#28405599)
This is my absolute favorite paper on the topic:
http://www.sunburst-design.com/papers/CummingsSNUG2008Boston...