Skip to content

Commit

Permalink
Removed BUBBLE from txn id logging
Browse files Browse the repository at this point in the history
Signed-off-by: Anderson Ignacio da Silva <[email protected]>
  • Loading branch information
aignacio committed Sep 3, 2024
1 parent 4e4c18d commit abf839d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
21 changes: 11 additions & 10 deletions cocotbext/ahb/ahb_master.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# License : MIT license <Check LICENSE>
# Author : Anderson I. da Silva (aignacio) <[email protected]>
# Date : 08.10.2023
# Last Modified Date: 02.09.2024
# Last Modified Date: 03.09.2024

import logging
import cocotb
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion cocotbext/ahb/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.3.2"
__version__ = "0.3.3"

0 comments on commit abf839d

Please sign in to comment.