Skip to content

Commit

Permalink
Wire pending interrupt status register value
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Szczepanski <[email protected]>
  • Loading branch information
robertszczepanski committed Dec 19, 2024
1 parent 7466e8b commit ae512ea
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
5 changes: 5 additions & 0 deletions src/hci/tti.sv
Original file line number Diff line number Diff line change
Expand Up @@ -146,4 +146,9 @@ module tti
ibi_queue_reg_rst_o = hwif_tti_i.RESET_CONTROL.IBI_QUEUE_RST.value;
end : wire_hwif_rst

always_comb begin : wire_int_status
hwif_tti_o.INTERRUPT_STATUS.PENDING_INTERRUPT.next = '0;
hwif_tti_o.INTERRUPT_STATUS.PENDING_INTERRUPT.we = '0;
end

endmodule : tti
13 changes: 9 additions & 4 deletions verification/cocotb/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,15 @@ def _verify(session, test_group, test_type, test_name, coverage=None, simulator=
"COCOTB_RESULTS_FILE=" + test.filenames["xml"],
]
if simulator == "verilator":
args.append("PLUSARGS=" + " ".join([
"+verilator+rand+reset+2",
f"+verilator+seed+{seed}",
]))
args.append(
"PLUSARGS="
+ " ".join(
[
"+verilator+rand+reset+2",
f"+verilator+seed+{seed}",
]
)
)
if coverage:
args.append("COVERAGE_TYPE=" + coverage)

Expand Down
3 changes: 1 addition & 2 deletions verification/cocotb/top/lib_i3c_top/test_ccc.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from boot import boot_init
from bus2csr import bytes2int
from cocotbext_i3c.i3c_controller import I3cController
from cocotbext_i3c.i3c_target import I3CTarget
from interface import I3CTopTestInterface

import cocotb
Expand Down Expand Up @@ -87,6 +86,6 @@ async def test_ccc_setdasa(dut):
I3C_DIRECT_SETDASA = 0x87
i3c_controller, i3c_target, tb = await test_setup(dut)
await ClockCycles(tb.clk, 50)
status = await i3c_controller.i3c_ccc_write(
await i3c_controller.i3c_ccc_write(
ccc=I3C_DIRECT_SETDASA, directed_data=[(STATIC_ADDR, [DYNAMIC_ADDR])]
)

0 comments on commit ae512ea

Please sign in to comment.