Commit 94fc37d
committed
Fix clock domain crossing for zoom signal
interact_zoom is written in the clk_74a domain but consumed by
ASTEROIDS_DW logic clocked on clk_25. Add a synch_2 synchronizer
(same pattern used for controller inputs) to safely cross the clock
domain boundary and prevent metastable values from reaching the
zoom address computation.
The zoom math precision issue (ceiling vs floor scaling, ~1px offset)
is left as-is since the difference is visually imperceptible.
https://claude.ai/code/session_01NYKHEx1oSSxcWrEi23wb4L1 parent d657769 commit 94fc37d
1 file changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
681 | 681 | | |
682 | 682 | | |
683 | 683 | | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
684 | 694 | | |
685 | 695 | | |
686 | 696 | | |
| |||
781 | 791 | | |
782 | 792 | | |
783 | 793 | | |
784 | | - | |
| 794 | + | |
785 | 795 | | |
786 | 796 | | |
787 | 797 | | |
| |||
0 commit comments