addInterface<InterfaceType extends Interface<TagType>, TagType extends Enum> method

InterfaceType addInterface<InterfaceType extends Interface<TagType>, TagType extends Enum>(
  1. InterfaceType source, {
  2. Iterable<TagType>? inputTags,
  3. Iterable<TagType>? outputTags,
  4. Iterable<TagType>? inOutTags,
  5. String uniquify(
    1. String original
    )?,
})

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