named method

  1. @override
LogicStructure named(
  1. String name, {
  2. Naming? naming,
})
override

Makes a clone, optionally with the specified name, then assigns it to be driven by this.

The naming argument will not have any effect on a generic LogicStructure, but behavior may be overridden by implementers.

This is a useful utility for naming the result of some hardware construction without separately declaring a new named signal and then assigning.

Implementation

@override
LogicStructure named(String name, {Naming? naming}) =>
    clone(name: name)..gets(this);