trait SimulatorContext extends AnyRef
context for a running firrtl circuit simulation
- Alphabetic
- By Inheritance
- SimulatorContext
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def finish(): Unit
Needs to be called after the context is no longer needed.
Needs to be called after the context is no longer needed.
- Note
only after
,finish
has been successfully returned is a potential waveform file guaranteed to exists on disk.after
finish
no other functions besidessim
orgetCoverage
may be called.
- abstract def peek(signal: String): BigInt
Returns the latest value of an output or input port on the top-level module.
Returns the latest value of an output or input port on the top-level module.
- Note
the simulator has to take care of recomputing signals after any change
- abstract def poke(signal: String, value: BigInt): Unit
Change the value of an input port on the top-level module.
- abstract def sim: Simulator
Returns a reference the Simulator that created this context.
- abstract def step(n: Int = 1): StepResult
Step the main clock
n
times.Step the main clock
n
times. Throws a NoClockException if the circuit does not have a clock input.- returns
StepInterrupted if a stop/assert/assume statement fired during execution, StepOk otherwise.
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def getCoverage(): List[(String, Long)]
Returns the current value of the coverage counters.
Returns the current value of the coverage counters.
- Note
only some simulators support calling
,getCoverage
_before_finish
for more information on the coverage format, please consult the documentation for chiseltest.coverage.TestCoverage
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def peekMemory(signal: String, index: Long): BigInt
Returns the latest value of a memory location.
Returns the latest value of a memory location. Only supported by some simulators.
- Note
the simulator has to take care of recomputing signals after any change
- def pokeMemory(signal: String, index: Long, value: BigInt): Unit
Change the value of memory location.
Change the value of memory location. Only supported by some simulators.
- def resetCoverage(): Unit
Resets all coverage counters to zero.
Resets all coverage counters to zero.
- Note
Not supported by all simulators. Must result in a NotImplementedError if not supported.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated