|
@ -106,15 +106,16 @@ class SramMonitor(Sram): |
|
|
if self._wen.value: |
|
|
if self._wen.value: |
|
|
self._transactions[str(get_sim_time('ns'))] = { |
|
|
self._transactions[str(get_sim_time('ns'))] = { |
|
|
"type" : "write", |
|
|
"type" : "write", |
|
|
"adr" : str(self._adr.value), |
|
|
|
|
|
"data" : str(self._dout.value)} |
|
|
|
|
|
|
|
|
"adr" : self._adr.value, |
|
|
|
|
|
"data" : self._dout.value} |
|
|
elif self._ren.value: |
|
|
elif self._ren.value: |
|
|
|
|
|
_adr = self._adr.value |
|
|
await self._clkedge |
|
|
await self._clkedge |
|
|
await ReadOnly() |
|
|
await ReadOnly() |
|
|
self._transactions[str(get_sim_time('ns'))] = { |
|
|
self._transactions[str(get_sim_time('ns'))] = { |
|
|
"type" : "read", |
|
|
"type" : "read", |
|
|
"adr" : str(self._adr.value), |
|
|
|
|
|
"data" : str(self._din.value)} |
|
|
|
|
|
|
|
|
"adr" : _adr, |
|
|
|
|
|
"data" : self._din.value} |
|
|
|
|
|
|
|
|
@property |
|
|
@property |
|
|
def transactions(self, index=None): |
|
|
def transactions(self, index=None): |
|
|