Logic constructor
Constructs a new Logic named name
with width
bits.
The default value for width
is 1. The name
should be sanitary
(variable rules for languages such as SystemVerilog).
The naming
and name
, if unspecified, are chosen based on the rules in
Naming.chooseNaming and Naming.chooseName, respectively.
Implementation
Logic({
String? name,
int width = 1,
Naming? naming,
}) : this._(
name: name,
width: width,
naming: naming,
);