addInterface<InterfaceType extends Interface<TagType> , TagType extends Enum> method
Clones source, registers its selected ports on this module, and returns
the clone for use by the module implementation.
Registration is delegated to ROHD's module-level interface API, so the HCL call site does not depend on the concrete port layout.
Implementation
InterfaceType addInterface<InterfaceType extends Interface<TagType>,
TagType extends Enum>(
InterfaceType source, {
Iterable<TagType>? inputTags,
Iterable<TagType>? outputTags,
Iterable<TagType>? inOutTags,
String Function(String original)? uniquify,
}) =>
addInterfacePorts(
source,
inputTags: inputTags,
outputTags: outputTags,
inOutTags: inOutTags,
uniquify: uniquify,
);