IfBlock class

Represents a chain of blocks of code to be conditionally executed, like if/else if/else.

This is functionally equivalent to chaining together Ifs, but this syntax is a little nicer for long chains.

Inheritance
Annotations

Constructors

IfBlock(List<Iff> iffs)
Checks the conditions for iffs in order and executes the first one whose condition is enabled.

Properties

conditionals List<Conditional>
Lists of all Conditionals directly contained within this Conditional (not including itself).
latefinalinherited
drivers List<Logic>
Lists all drivers, recursively including all sub-Conditionals drivers.
latefinalinherited
hashCode int
The hash code for this object.
no setterinherited
iffs List<Iff>
A set of conditional items to check against for execution, in order.
finalinherited
receivers List<Logic>
Lists all receivers, recursively including all sub-Conditionals receivers.
latefinalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

driverInput(Logic driver) Logic
Gets the input port associated with driver.
inherited
driverValue(Logic driver) LogicValue
Gets the value that should be used for execution for the input port associated with driver.
inherited
execute(Set<Logic>? drivenSignals, [void guard(Logic)?]) → void
Executes the functionality of this Conditional and populates drivenSignals with all Logics that were driven during execution.
inherited
getConditionals() List<Conditional>
Lists of all Conditionals directly contained within this Conditional (not including itself).
inherited
getDrivers() List<Logic>
Lists all drivers, recursively including all sub-Conditionals drivers.
inherited
getReceivers() List<Logic>
Lists all receivers, recursively including all sub-Conditionals receivers.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
receiverOutput(Logic receiver) Logic
Gets the output port associated with receiver.
inherited
toString() String
A string representation of this object.
inherited
verilogContents(int indent, Map<String, String> inputsNameMap, Map<String, String> outputsNameMap, String assignOperator) String
Returns a String of SystemVerilog to be used in generated output.
inherited

Operators

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