From 2df28bce3dcc2c97126cffa08cdf8323e9e4c17e Mon Sep 17 00:00:00 2001 From: Anderson Ignacio Date: Mon, 16 Oct 2023 21:42:41 +0100 Subject: [PATCH] Fixed typo Signed-off-by: Anderson Ignacio --- cocotbext/ahb/ahb_master.py | 2 +- tests/test_ahb_lite.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cocotbext/ahb/ahb_master.py b/cocotbext/ahb/ahb_master.py index b37b446..169efc1 100644 --- a/cocotbext/ahb/ahb_master.py +++ b/cocotbext/ahb/ahb_master.py @@ -145,7 +145,7 @@ async def _send_txn(self, address: Sequence[int], self.bus.hwdata.value = txn_data await RisingEdge(self.clk) timeout_counter = 0 - + if self.bus.hready.value.is_resolvable is False: while self.bus.hready.value.is_resolvable is False: timeout_counter += 1 diff --git a/tests/test_ahb_lite.py b/tests/test_ahb_lite.py index bd3da31..daed9f1 100644 --- a/tests/test_ahb_lite.py +++ b/tests/test_ahb_lite.py @@ -42,7 +42,7 @@ async def setup_dut(dut, cycles): @cocotb.test() async def run_test(dut): await setup_dut(dut, cfg.RST_CYCLES) - + ahb_lite_master = AHBLiteMaster(AHBBus.from_prefix(dut, "slave"), dut.hclk, dut.hresetn, @@ -55,7 +55,7 @@ async def run_test(dut): # dut.master_hready.value = 1 # dut.master_hresp.value = 0 # dut.master_hrdata.value = 0 - + print(type(ahb_lite_slave)) address = [rnd_val(32) for _ in range(200)] value = [rnd_val(32) for _ in range(200)] size = [pick_random_value([1, 2, 4]) for _ in range(200)]