News for hackers. Stuff that matters.
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...