Skip to main content

emit_storage_controller_testbench

Function emit_storage_controller_testbench 

Source
pub fn emit_storage_controller_testbench(nwords: usize) -> String
Expand description

A self-checking testbench: a ROM of REAL plan words (from delta_encode) drives the executor; the bench asserts every issue arrives IN ORDER with the exact op/chan/die of its word, AND that the hardware honors the compiled TIMING — the clk-cycle gap between two consecutive issues exceeds the command’s own delta by a FIXED pipeline overhead (so every compiled inter-command interval is reproduced exactly, not just the order). Prints PASS/FAIL.