exxos wrote: 14 Feb 2020 21:12Troed's Closure demo fails to detect the wait states, but I have no idea why as I am not a demo coder... I can only possibly think it may be something to do with 50/60hz switching, but I really would assume all this is done by the GLUE anyway...
Wakestates depend both on GLUE and MMU. If the MMU implementation is not cycle exact, it might certainly produce invalid wakestate results.
So while the random aspect is likely the GLUE, I still can't figure out how the MMU is ending up with such random timings when everything is (AFAIK) reset on power up and a manual button.
Actually, not everything is reset on hardware reset. The other factor is that reset is not synchronized.
If we can reset them both with system reset then I would make the assumption the randomness would stop.
No, it won't. Again, the whole point about wakestates is that they are not affected by hardware reset. Otherwise you could get different states each time you press the reset button. But reset doesn't change the wakestate, hence the term "wake" state.
Its interesting in suska code there is a "reset" for the shifter as well as the MMU using other signals.
All the original chipset has hardware reset. Most don't have a reset pin, yet they still have hardware reset. I believe I documented this somewhere years ago, but can't find the note right now.