pub trait Testbench<S: Simulator>: Schematic<S::Schema> + Block<Io = TestbenchIo> {
    type Output: Any + Serialize + DeserializeOwned;

    // Required method
    fn run(&self, sim: SimController<S, Self>) -> Self::Output;
}
Expand description

A testbench that can be simulated.

Required Associated Types§

source

type Output: Any + Serialize + DeserializeOwned

The output produced by this testbench.

Required Methods§

source

fn run(&self, sim: SimController<S, Self>) -> Self::Output

Run the testbench using the given simulation controller.

Object Safety§

This trait is not object safe.

Implementors§