Skip to main content

emit_loadable_vs_baked_testbench

Function emit_loadable_vs_baked_testbench 

Source
pub fn emit_loadable_vs_baked_testbench(
    baked: &str,
    loadable: &str,
    sys: &Systolic,
    acts: &[i64],
    m: usize,
    bits: u32,
    acc_bits: u32,
) -> String
Expand description

A bench that loads sys’s weights into the loadable array while both arrays sit in reset, releases both on the same edge, streams acts (m rows) through both, and compares every output every cycle. Prints OUT o <i*n+c> <value> for the loadable array’s aligned output rows (row i sampled after edge i+L-1), LATENCY <L>, and PASS: iff the two arrays never differed.