ClockGateControlInterface.clone constructor
- @Deprecated('Use Instance-based `clone()` instead.')
- ClockGateControlInterface otherInterface, {
- bool? isPresent,
- Logic gatedClockGenerator(
- ClockGateControlInterface intf,
- Logic clk,
- Logic enable
Creates a clone of otherInterface with the same configuration,
including
any additionalPorts and gatedClockGenerator function. This should be
used to replicate interface configuration through hierarchies to carry
configuration information.
If isPresent is provided, then it will override the isPresent value
from otherInterface.
If a gatedClockGenerator is provided, then it will override the
gatedClockGenerator function from otherInterface.
Implementation
@Deprecated('Use Instance-based `clone()` instead.')
ClockGateControlInterface.clone(
ClockGateControlInterface super.otherInterface, {
bool? isPresent,
Logic Function(
ClockGateControlInterface intf,
Logic clk,
Logic enable,
)? gatedClockGenerator,
}) : hasEnableOverride = otherInterface.hasEnableOverride,
isPresent = isPresent ?? otherInterface.isPresent,
gatedClockGenerator =
gatedClockGenerator ?? otherInterface.gatedClockGenerator,
super.clone();