Sequential constructor
Constructs a Sequential single-triggered by clk
.
If reset
is provided, then all signals driven by this block will be
conditionally reset when the signal is high.
The default reset value is to 0
, but if resetValues
is provided then
the corresponding value associated with the driven signal will be set to
that value instead upon reset. If a signal is in resetValues
but not
driven by any other Conditional in this block, it will be driven to the
specified reset value.
Implementation
Sequential(
Logic clk,
List<Conditional> conditionals, {
Logic? reset,
Map<Logic, dynamic>? resetValues,
bool allowMultipleAssignments = true,
String name = 'sequential',
}) : this.multi(
[clk],
conditionals,
name: name,
reset: reset,
resetValues: resetValues,
allowMultipleAssignments: allowMultipleAssignments,
);