clone method
override
Creates a clone of with the same configuration, including any
additionalPorts
and gatedClockGenerator
function. This should be used
to replicate interface configuration through hierarchies to carry
configuration information.
Implementation
@override
ClockGateControlInterface clone() => ClockGateControlInterface(
isPresent: isPresent,
hasEnableOverride: hasEnableOverride,
additionalPorts: (additionalPorts != null)
? [for (final p in additionalPorts!) p.clone(name: p.name)]
: null,
gatedClockGenerator: gatedClockGenerator);