LtiLtChannelInterface constructor

LtiLtChannelInterface({
  1. required LtiLtChannelConfig config,
  2. bool userMixInEnable = false,
})

Constructor.

Implementation

LtiLtChannelInterface({
  required LtiLtChannelConfig config,
  this.userMixInEnable = false,
})  : userWidth = config.userWidth,
      tagWidth = config.tagWidth,
      super(
        prefix: 'LT',
        main: false,
        vcCount: 1,
      ) {
  setPorts([
    Logic.port('${prefix}CTAG', tagWidth),
  ], [
    PairDirection.fromConsumer,
  ]);
  if (userMixInEnable) {
    makeUserPorts();
  }
}