From abf839d774e90614428b3392bfa79eec3b2c7259 Mon Sep 17 00:00:00 2001 From: Anderson Ignacio da Silva Date: Tue, 3 Sep 2024 10:53:04 +0100 Subject: [PATCH] Removed BUBBLE from txn id logging Signed-off-by: Anderson Ignacio da Silva --- cocotbext/ahb/ahb_master.py | 21 +++++++++++---------- cocotbext/ahb/version.py | 2 +- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/cocotbext/ahb/ahb_master.py b/cocotbext/ahb/ahb_master.py index d040768..d0b298e 100644 --- a/cocotbext/ahb/ahb_master.py +++ b/cocotbext/ahb/ahb_master.py @@ -4,7 +4,7 @@ # License : MIT license # Author : Anderson I. da Silva (aignacio) # Date : 08.10.2023 -# Last Modified Date: 02.09.2024 +# Last Modified Date: 03.09.2024 import logging import cocotb @@ -190,15 +190,16 @@ async def _send_txn( self._reset_bus() else: self._addr_phase(txn_addr, txn_size, txn_mode, txn_trans) - if not isinstance(txn_addr, LogicArray): - op = "write" if txn_mode == 1 else "read" - self.log.info( - f"AHB {op} txn:\n" - f"\tID = {txn_id}\n" - f"\tADDR = 0x{txn_addr:x}\n" - f"\tDATA = 0x{value[index + 1]:x}\n" - f"\tSIZE = {txn_size} bytes" - ) + if txn_id != "BUBBLE": + if not isinstance(txn_addr, LogicArray): + op = "write" if txn_mode == 1 else "read" + self.log.info( + f"AHB {op} txn:\n" + f"\tID = {txn_id}\n" + f"\tADDR = 0x{txn_addr:x}\n" + f"\tDATA = 0x{value[index + 1]:x}\n" + f"\tSIZE = {txn_size} bytes" + ) self.bus.hwdata.value = txn_data if self.bus.hready_in_exist: self.bus.hready_in.value = 1 diff --git a/cocotbext/ahb/version.py b/cocotbext/ahb/version.py index f9aa3e1..e19434e 100644 --- a/cocotbext/ahb/version.py +++ b/cocotbext/ahb/version.py @@ -1 +1 @@ -__version__ = "0.3.2" +__version__ = "0.3.3"