Logic constructor

Logic({
  1. String? name,
  2. int width = 1,
  3. Naming? naming,
})

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,
      );