Browse Source

Sram monitor: Fix latching of address in read transaction; store binaryvalue objects instead of strings

master
T. Meissner 3 years ago
parent
commit
1c83d938ea
1 changed files with 5 additions and 4 deletions
  1. +5
    -4
      tests/Sram.py

+ 5
- 4
tests/Sram.py View File

@ -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):


Loading…
Cancel
Save