Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add STREAM_RD_ERR state coverage in axi4_to_ahb.sv #292

Merged
merged 1 commit into from
Dec 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading