You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: HDL/sm83/Icarus/Readme.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,3 +40,13 @@ make verilator ROM=roms/cpu_instrs.mem CYCLES=1000000
40
40
This will create a `dmg_waves3.fst` file that can be opened in [GTKWave](https://gtkwave.sourceforge.net/) or [Surfer](https://surfer-project.org/).
41
41
42
42
Note that `sm83.yosys.v` flattens the entire design, so the hierarchy is lost, and many signals are removed. If you need a particular signal, add a `(* keep *)` attribute to it.
43
+
44
+
Here's the corrected version of your text with typos and grammatical errors fixed:
45
+
46
+
## Testing
47
+
48
+
The CPU is tested by running individual test ROMs from blargg's [cpu_instrs](https://github.com/retrio/gb-test-roms/tree/master/cpu_instrs) test suite (as well as the single ROM version). These ROMs rely very little on other peripherals of the GameBoy besides the CPU core itself. The necessary peripherals are emulated in the module `Bogus_HW` in `run.v`.
49
+
50
+
In case of a test failure, a reference trace can be generated by running the emulator [Rodrigodd/gameroy](https://github.com/Rodrigodd/gameroy) with the [wave_trace feature enabled](https://github.com/Rodrigodd/gameroy/pull/17). More specifically [at this commit](https://github.com/Rodrigodd/gameroy/commit/62c91d15e51dd6fc7a87f94b889be6ed91f4e5df), which contains changes that make the emulator behave more like the simulation.
51
+
52
+
To assist in finding where the traces diverge, the tool [rodrigodd/fst-trace](https://github.com/rodrigodd/fst-merger/) can be used to merge both traces into a single file and create signals that compare some signals of both traces.
0 commit comments