Skip to content

Commit

Permalink
[#69543] Add STREAM_RD_ERR state coverage in axi4_to_ahb.sv
Browse files Browse the repository at this point in the history
Signed-off-by: Filip Kokosinski <[email protected]>
  • Loading branch information
fkokosinski committed Dec 18, 2024
1 parent 6f8f175 commit ef90c41
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion verification/block/lib_axi4_to_ahb/ahb_lite_bfm.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,14 @@ async def drive(self):
self.dut.ahb_hresp.value = ahb_hresp
except QueueEmpty:
self.dut.ahb_hrdata.value = 0
self.dut.ahb_hresp.value = 0

# enforce error on sequential transfers to cover the `STREAM_RD_ERR` state
if get_int(self.dut.ahb_htrans) == AHB_LITE_TRANSFER_TYPE_ENCODING.SEQ:
self.dut.ahb_hready.value = 1
self.dut.ahb_hresp.value = 1
else:
self.dut.ahb_hready.value = 0
self.dut.ahb_hresp.value = 0

async def req_monitor_q_bfm(self):
while True:
Expand Down

0 comments on commit ef90c41

Please sign in to comment.