Skip to main content

emit_psram_arbiter_testbench

Function emit_psram_arbiter_testbench 

Source
pub fn emit_psram_arbiter_testbench(
    edge: &PsramEdge,
    cache: &PsramCache,
    n: u32,
    seed: u32,
    words: u32,
    ops: u32,
) -> String
Expand description

A randomized testbench for caches sharing the edge through the arbiter: n caches, each over its own region of the part, driven by one engine-shaped driver that issues to any subset of them in the same cycle — a read, a write, or a write and a read each — and nothing while any is busy. Prints MULTI-ERRORS, PSRAM-VIOLATIONS, the longest stall as MULTI-MAX-STALL, then MULTI-DONE.