Testing
Phase 4: Verification and Testing
Host-visible sim paths that already pass are tracked under Phase 3
(raw-AP smoke, riscv examine, GDB attach/regs, demo break/continue). This chapter is
the broader regression matrix — much of it still open, especially on hardware.
Done in sim (via Phase 3)
- SWD-DTM →
DebugBus→ DM path at sbt (Phases 2A–2C) and LiteX Verilator SoC - OpenOCD master smoke: DPIDR +
dap apreg→dmstatus - OpenOCD
riscvexamine + halt/resume/register access over SWD (patched builds) - GDB attach / registers / memory R/W over SWD
- GDB
break main/continue/ backtrace on preloaded demo (no GDBload)
Still open
- Automated SWD stimuli via custom OpenOCD target on real CMSIS-DAP hardware (Arty)
- Test
dmactiveactivation/deactivation sequence (formal matrix) - Test abstract command error handling (all 7
cmderrcodes) - Test EBREAK behavior with
dcsr.ebreakm/ebreaks/ebreakucombinations - Test single-step across privilege mode transitions
- Test trigger module: each trigger type, chaining,
dmodesecurity - Test System Bus Access error handling (if implemented)
- Test authentication mechanism (if implemented)
- Decide
dmstatus.versionclaim (2= 0.13 vs3= 1.0) - Regression suite for all implemented features (CI-friendly)