Trait substrate::simulation::Testbench
source · 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§
sourcetype Output: Any + Serialize + DeserializeOwned
type Output: Any + Serialize + DeserializeOwned
The output produced by this testbench.
Required Methods§
sourcefn run(&self, sim: SimController<S, Self>) -> Self::Output
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.