Simulation and waveforms
make check prepares RTL, checks its interface, runs Verilator lint, and executes every boundary test. make check TEST=smoke selects one test. Each test compiles and runs separately.
make trace generates build/waves/rtl-<test>.fst; make wave TEST=smoke opens it in GTKWave. Tests do not need their own $dumpfile.
The tools fail on any overlap in test_io_oe & dut.io_oe. Cover reset, functionality, and IO protocols in your tests. Passing two-state simulation does not establish four-state or electrical correctness.
After RTL verification, run make export and submit the exported RTL to the team's backend tools.
To optionally test a returned signal netlist, add the following fields to macro.json and run make netlist-check:
{
"netlist": {"sources": ["netlist/macro.v"]},
"dependencies": [{"name": "process-cells", "sources": ["models/cells.v"]}]
}Preserve the exported top name and five boundary ports. Synthesis may flatten or rename internal logic. dependencies supplies external Verilog functional models such as standard cells. The same boundary tests run against the netlist; use TEST=smoke to select one. These are functional tests, not a formal equivalence proof. Netlist testing is not required before RTL export.
Logs are in build/lint.log and build/tests/<rtl|netlist>-<test>/{compile,run}.log. Each compilation/runtime process has a default timeout of 180 seconds; change it with TIMEOUT=600. make clean-dry-run previews cleanup. make clean removes build and Python caches in tool/test directories while preserving macro.json, source files, dist exports, and installed tools. Stop running simulations before cleaning. Make entry points disable Python bytecode cache writes by default.