SimulationTestStimulus

chisel3.simulator.stimulus.SimulationTestStimulus
See theSimulationTestStimulus companion trait

Attributes

Companion
trait
Source
SimulationTestStimulus.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def any[A](maxCycles: Int, getClock: A => Clock, getDone: A => Bool, getSuccess: A => Bool, period: Int = ...): SimulationTestStimulus[A]

Return stimulus for any type. This requires the user to specify how to extract the clock, done, and success signals from the type.

Return stimulus for any type. This requires the user to specify how to extract the clock, done, and success signals from the type.

Value parameters

getClock

a function to return the clock from the unit

getDone

a function to return the done signal from the unit

getSuccess

a function to return the success signal from the unit

maxCycles

the maximum number of cycles to run before timeout

period

the clock period in time precision units

Attributes

Source
SimulationTestStimulus.scala
def apply[A <: RawModule & SimulationTestHarnessInterface](maxCycles: Int, period: Int = ...): SimulationTestStimulus[A]

Return default stimulus. This is the same as module.

Return default stimulus. This is the same as module.

Value parameters

getDone

a function to return the done signal from the module

getSuccess

a function to return the success signal from the module

maxCycles

the maximum number of cycles to run before timeout

period

the clock period in time precision units

Attributes

Source
SimulationTestStimulus.scala
def module[A <: Module](maxCycles: Int, getDone: A => Bool, getSuccess: A => Bool, period: Int = ...): SimulationTestStimulus[A]

Return stimulus for a Module.

Return stimulus for a Module.

Value parameters

getDone

a function to return the done signal from the module

getSuccess

a function to return the success signal from the module

maxCycles

the maximum number of cycles to run before timeout

period

the clock period in time precision units

Attributes

Source
SimulationTestStimulus.scala
def testHarness[A <: RawModule & SimulationTestHarnessInterface](maxCycles: Int, period: Int = ...): SimulationTestStimulus[A]

Return stimulus for a SimulationTestHarnessInterface.

Return stimulus for a SimulationTestHarnessInterface.

Value parameters

maxCycles

the maximum number of cycles to run before timeout

period

the clock period in time precision units

Attributes

Source
SimulationTestStimulus.scala