TagInterface constructor

TagInterface(
  1. int idWidth,
  2. int tagWidth
)

Constructs a new interface of specified idWidth and tagWidth for querying a CAM.

Implementation

TagInterface(this.idWidth, this.tagWidth) {
  setPorts([
    Logic.port('en'),
    Logic.port('tag', tagWidth),
  ], [
    DataPortGroup.control
  ]);

  setPorts([
    Logic.port('idx', idWidth),
    Logic.port('hit'),
  ], [
    DataPortGroup.data
  ]);
}