// A probe for msinger's dmg-sim (SystemVerilog netlist of the DMG-CPU B): a second top-level // module that prints the SM83 core's own bus signals whenever any of them changes, so // scripts/dmgsim_run.py can recover the CPU's bus M-cycle by M-cycle without dumping the whole // design (docs/validation.md rung 5). // // It reads the nets of the `dmg` instance inside dmg_cpu_b_gameboy: `cpu_port_a` and // `cpu_port_d` are the core's address and data ports (not the external pins, which hold a stale // address with A15 forced high on cycles that make no cartridge access), `read`, `write` and // `mreq` its strobes, `m1` the opcode-fetch flag and `clk_ena` the halt state (low while halted) and `iflag` the five interrupt-flag bits. // `phi` is the 1 MHz cartridge clock: one period per M-cycle. // // One line per change: "