-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Anderson Ignacio da Silva <[email protected]>
- Loading branch information
Showing
2 changed files
with
12 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "0.3.2" | ||
__version__ = "0.3.3" |