If class Null safety

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

Inheritance

Constructors

If(Logic condition, {List<Conditional> then = const [], List<Conditional> orElse = const []})
If condition is 1, then then executes, otherwise orElse is executed.
If.s(Logic condition, Conditional then, [Conditional? orElse])
If condition is 1, then then is excutes, otherwise orElse is executed.

Properties

condition Logic
The condition that decides if then or orElse is executed.
final
hashCode int
The hash code for this object.
read-onlyinherited
orElse List<Conditional>
Conditionals to be executed if condition is not true.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
then List<Conditional>
Conditionals to be executed if condition is true.
final

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
Executes the functionality of this Conditional and populates drivenSignals with all Logics that were driven during execution.
override
getConditionals() List<Conditional>
Lists of all Conditionals contained within this Conditional (not including itself).
override
getDrivers() List<Logic>
Lists all drivers, recursively including all sub-Conditionals drivers.
override
getReceivers() List<Logic>
Lists all receivers, recursively including all sub-Conditionals receivers.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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.
override

Operators

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