StaticOrRuntimeParameter class

A boolean configuration that can be selected statically or at runtime.

A runtime configuration must be a 1-bit Logic signal.

Inheritance
Implementers

Constructors

StaticOrRuntimeParameter({required String name, Logic? runtimeConfig, bool? staticConfig = false})
Creates a new StaticOrRuntimeParameter instance.
StaticOrRuntimeParameter.ofDynamic(dynamic config)
Factory constructor to create a StaticOrRuntimeParameter from a dynamic.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
isRuntime → bool
Whether this value is supplied at runtime.
no setterinherited
name → String
The module input name used for runtimeConfig.
finalinherited
runtimeConfig → Logic?
The runtime configuration signal, if this value is runtime-configurable.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
staticConfig → bool
The static value used when runtimeConfig is null.
finalinherited
value → bool
Return a bool representing the value of the configuration.
no setter

Methods

getLogic(Module module) → Logic
Return the internal Logic signal that represents the configuration, either static or runtime.
getRuntimeInput(Module module) → Logic?
Constructs and returns the internal input when runtime-configured.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve(Module module, {required Logic staticToLogic(bool value)}) → Logic
Resolves this value to Logic within module.
inherited
toString() → String
Return a string representation of the configuration, including its name.
override
tryRuntimeInput(Module module) → Logic?
Returns the existing internal runtime input on module, if any.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited