chisel3.simulator.stimulus
Members list
Type members
Classlikes
Attributes
- Companion
- object
- Source
- InlineTestStimulus.scala
- Supertypes
Stimulus that will apply a standard reset procedure to a Chisel circuit.
Stimulus that will apply a standard reset procedure to a Chisel circuit.
The reset procedure is as follows:
time 0: bring everything up using simulator settings time 1: bring reset out of x and deassert it. time 2: assert reset time 3: first clock edge time 4 + n: deassert reset (where n == additionalResetCycles)
This intentionally structured to guarantee the following properties:
- There is guaranteed to be a time when FIRRTL/Verilog-based randomization can happen at either time 0 or time 1.)
- If time 1 is used for FIRRTL/Verilog-based randomization, then time 0 can be used for simulator-based initialization, e.g.,
+vcs+initreg+random. Simulator initialization will race with FIRRTL/Verilog-based randomization and it is critical that they do not happen at the same time. - Both FIRRTL/Verilog-based randomization and simulator-based randomization should not occur on a clock edge, e.g., an edge when reset is asserted. This can be yet-another race condition that has to be avoided.
- Reset always sees a posedge. This avoids problems with asynchronous reset logic behavior where they may (correctly in Verilog) not fire if you bring the design with reset asserted. Note: it would be fine to do an
x -> 1transition to show an edge, however, it looks cleaner to bring reset to0.
Attributes
- Companion
- object
- Source
- ResetProcedure.scala
- Supertypes
-
trait A => Unitclass Objecttrait Matchableclass Any
Factory of ResetProcedure stimulus.
Factory of ResetProcedure stimulus.
Attributes
- Companion
- trait
- Source
- ResetProcedure.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ResetProcedure.type
Stimulus that will run a simulation, expecting a chisel3.stop (a Verilog $finish) to occur before a maximum number of cycles has elapsed.
Stimulus that will run a simulation, expecting a chisel3.stop (a Verilog $finish) to occur before a maximum number of cycles has elapsed.
Attributes
- See also
- Companion
- object
- Source
- RunUntilFinished.scala
- Supertypes
-
trait A => Unitclass Objecttrait Matchableclass Any
Factory of RunUntilFinished stimulus for different kinds of modules.
Factory of RunUntilFinished stimulus for different kinds of modules.
Attributes
- Companion
- trait
- Source
- RunUntilFinished.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
RunUntilFinished.type
Stimulus that will run a simulation expecting a "success" port to assert.
Stimulus that will run a simulation expecting a "success" port to assert.
If the specified "success" port does not assert, then an Exceptions.Timeout will be thrown.
Attributes
- See also
- Companion
- object
- Source
- RunUntilSuccess.scala
- Supertypes
-
trait A => Unitclass Objecttrait Matchableclass Any
Attributes
- Companion
- trait
- Source
- RunUntilSuccess.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
RunUntilSuccess.type
Stimulus that runs a simulation until a "done" signal asserts, then checks a "success" signal to determine pass/fail.
Stimulus that runs a simulation until a "done" signal asserts, then checks a "success" signal to determine pass/fail.
If the "done" signal does not assert before the maximum number of cycles, an Exceptions.Timeout will be thrown. If "done" asserts but "success" is not asserted, an Exceptions.TestFailed will be thrown.
Attributes
- See also
- Companion
- object
- Source
- SimulationTestStimulus.scala
- Supertypes
-
trait A => Unitclass Objecttrait Matchableclass Any
Attributes
- Companion
- trait
- Source
- SimulationTestStimulus.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Types and utility functions related to the stimulus package.
Types and utility functions related to the stimulus package.
Attributes
- Source
- Stimulus.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Stimulus.type
Deprecated classlikes
Attributes
- Companion
- trait
- Deprecated
-
[Since version Chisel 7.8.0]use SimulationTestStimulus instead - Source
- InlineTestStimulus.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
InlineTestStimulus.type