harbaum / MiSTeryNano

Atari STE MiSTery core for the Tang Nano 20k FPGA
133 stars 17 forks source link

Keyboard and mouse don't work properly when core is built with IDE 1.9.10.01/1.9.10.02 #61

Closed harbaum closed 2 months ago

harbaum commented 2 months ago

The mouse won't register double clicks properly and the keyboard randomly repeats keys. Strangely this only happens with the IDE 1.9.10.01 and 1.9.10.02. With 1.9.10 everything works as expected.

First attempt to bring the whole IKBD CPU into main 32 Mhz clock domain didn't solve the problem. But it's nevertheless a good idea to move everything into the same clock domain.

harbaum commented 2 months ago

Tracked the issue down to the 200Hz timer interrupt firing way to fast about 6.6 times faster than it should. Odd ...

harbaum commented 2 months ago

The change that finally solved this was the change from wires to localparams for the mfp clock divider in atarist.v

It's unclear why the previous version failed. Feels like a bug in the synthesis tool ...

harbaum commented 2 months ago

https://github.com/harbaum/MiSTeryNano/commit/61a636d1cc482bd1a2d98d95075b99155ad050bf#diff-c584c7ba75b556fe88961995910328f41033f1c0e610a44689ed27725126619f