SynchronousRegisterFile<LogicType extends Logic> constructor

SynchronousRegisterFile<LogicType extends Logic>(
  1. Logic clk,
  2. Logic reset,
  3. List<DataPortInterface<LogicType>> writePorts,
  4. List<SynchronousReadDataPortInterface<LogicType>> readPorts, {
  5. required int entryCount,
  6. int readLatency = 1,
  7. String name = 'synchronous_register_file',
})

Creates a flop-backed synchronous memory.

Implementation

SynchronousRegisterFile(
  super.clk,
  super.reset,
  super.writePorts,
  super.readPorts, {
  required this.entryCount,
  this.readLatency = 1,
  super.name = 'synchronous_register_file',
})  : assert(entryCount > 0, 'entry count must be positive'),
      assert(readLatency > 0, 'readLatency must be positive'),
      super(
        readUnderWrite: SynchronousRamReadUnderWrite.readFirst,
        definitionName: 'SynchronousRegisterFile'
            '_WP${writePorts.length}'
            '_RP${readPorts.length}'
            '_D$entryCount'
            '_L$readLatency',
      ) {
  _buildLogic();
}