Skip to main content

emit_reconfig_testbench

Function emit_reconfig_testbench 

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

A self-checking testbench for the reconfigurable fabric: drive each input vector and compare result to the VM oracle in reconfig_{name}_{pin,eout}.hex (the fabric loads its config from reconfig_{name}_{ctrl,sac,sbc,out}.hex). One block’s config + vectors are written per run; the fabric RTL is fixed, so it compiles once and re-runs per block.