MemoryModel constructor
- Logic clk,
- Logic reset,
- List<
DataPortInterface> writePorts, - List<
DataPortInterface> readPorts, { - int readLatency = 1,
- bool asyncReset = true,
- MemoryStorage? storage,
Creates a new MemoryModel.
If no storage
is provided, a default storage will be created.
Implementation
MemoryModel(
super.clk,
super.reset,
super.writePorts,
super.readPorts, {
this.readLatency = 1,
this.asyncReset = true,
MemoryStorage? storage,
}) {
this.storage = storage ??
SparseMemoryStorage(addrWidth: addrWidth, dataWidth: dataWidth);
_buildLogic();
}