Skip to content

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
Signed-off-by: Anderson Ignacio <anderson@aignacio.com>
  • Loading branch information
aignacio committed Oct 16, 2023
1 parent a5d4a86 commit 2df28bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cocotbext/ahb/ahb_master.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions tests/test_ahb_lite.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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)]
Expand Down

0 comments on commit 2df28bc

Please sign in to comment.