LtiLcChannelInterface constructor

LtiLcChannelInterface({
  1. required LtiLcChannelConfig config,
  2. bool userMixInEnable = false,
})

Constructor.

Implementation

LtiLcChannelInterface({
  required LtiLcChannelConfig config,
  this.userMixInEnable = false,
})  : userWidth = config.userWidth,
      tagWidth = config.tagWidth,
      super(
        prefix: 'LC',
        main: true,
        vcCount: 1,
      ) {
  setPorts([
    Logic.port('${prefix}CTAG', tagWidth),
  ], [
    PairDirection.fromProvider,
  ]);
  if (userMixInEnable) {
    makeUserPorts();
  }
}