From 1c83d938eadc2b60f895ceabdee7dd0d65e5519e Mon Sep 17 00:00:00 2001 From: tmeissner Date: Mon, 7 Feb 2022 21:40:33 +0100 Subject: [PATCH] Sram monitor: Fix latching of address in read transaction; store binaryvalue objects instead of strings --- tests/Sram.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/Sram.py b/tests/Sram.py index eb67d9d..b658c46 100644 --- a/tests/Sram.py +++ b/tests/Sram.py @@ -106,15 +106,16 @@ class SramMonitor(Sram): if self._wen.value: self._transactions[str(get_sim_time('ns'))] = { "type" : "write", - "adr" : str(self._adr.value), - "data" : str(self._dout.value)} + "adr" : self._adr.value, + "data" : self._dout.value} elif self._ren.value: + _adr = self._adr.value await self._clkedge await ReadOnly() self._transactions[str(get_sim_time('ns'))] = { "type" : "read", - "adr" : str(self._adr.value), - "data" : str(self._din.value)} + "adr" : _adr, + "data" : self._din.value} @property def transactions(self, index=None):