Skip to main content

emit_seq_datapath_testbench

Function emit_seq_datapath_testbench 

Source
pub fn emit_seq_datapath_testbench(name: &str, n_in: usize, n: usize) -> String
Expand description

A self-checking CLOCKED testbench for a seq_{name} sequenced datapath: for each of n input vectors it pulses rst, waits for done, and checks result == the VM oracle (seq_{name}_out.hex). Multi-cycle tiles (the divider / FPU) make a vector take many clocks, so it spins on done with a generous timeout.