SynchronousRegisterFile<LogicType extends Logic> constructor
- Logic clk,
- Logic reset,
- List<
DataPortInterface< writePorts,LogicType> > - List<
SynchronousReadDataPortInterface< readPorts, {LogicType> > - required int entryCount,
- int readLatency = 1,
- 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();
}