Settings

chisel3.simulator.Settings
See theSettings companion class
object Settings

This object contains factories of Settings.

Attributes

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

Members list

Value members

Concrete methods

def apply[A <: RawModule](verilogLayers: Type, assertVerboseCond: Option[Type[A]], printfCond: Option[Type[A]], stopCond: Option[Type[A]], plusArgs: Seq[PlusArg], enableWavesAtTimeZero: Boolean, randomization: Randomization): Settings[A]

Simple factory for construcing a Settings from arguments.

Simple factory for construcing a Settings from arguments.

This method primarily exists as a way to make future refactors that add options to Settings easier.

Value parameters

assertVerboseCond

a condition that guards the printing of assert messages created from circt_chisel_ifelsefatal intrinsics

layerControl

determines which chisel3.layer.Layers should be

libraries

Names of libraries to include in simulation. Use this to provide implementations for DPI functions, for example. The simulator will resolve these libraries to concrete files using the CHISELSIM_LIBS environment variable and chiselsim.libraries Java property.

libraryPaths

Paths to libraries to include in simulation. Use this to provide implementations for DPI functions, for example.

printfCond

a condition that guards printing of chisel3.printfs

stopCond

a condition that guards terminating the simulation (via $fatal) for asserts created from circt_chisel_ifelsefatal intrinsics

Attributes

Returns

a Settings with the provided parameters set

Source
Settings.scala
final def default[A <: Module]: Settings[A]

Return a default Settings for a Module. Macros will be set to disable chisel3.assert-style assertions using the Module's reset port.

Return a default Settings for a Module. Macros will be set to disable chisel3.assert-style assertions using the Module's reset port.

Note: this requires that an explicit type parameter is provided. You must invoke this method like:

Settings.default[Foo]

If you invoke this method like the following, you will get an error:

Settings.default

Attributes

Source
Settings.scala
final def defaultRaw[A <: RawModule]: Settings[A]

Return a default Settings for a RawModule.

Return a default Settings for a RawModule.

This differs from default in that it cannot set default values for macros because a RawModule has no defined reset port. You will likely want to override the macros after using this factory.

Note: this requires that an explicit type parameter is provided. You must invoke this method like:

Settings.defaultRaw[Foo]

If you invoke this method like the following, you will get an error:

Settings.defaultRaw

Attributes

Source
Settings.scala

Return a default Settings for a SimulationTestHarnessInterface. Macros will be set to disable chisel3.assert-style assertions using the SimulationTestHarnessInterface's init port.

Return a default Settings for a SimulationTestHarnessInterface. Macros will be set to disable chisel3.assert-style assertions using the SimulationTestHarnessInterface's init port.

Note: this requires that an explicit type parameter is provided. You must invoke this method like:

Settings.default[Foo]

If you invoke this method like the following, you will get an error:

Settings.default

Attributes

Source
Settings.scala