Skip to content

Commit

Permalink
hw: Assert irq_i.debug is raised only if debug is supported
Browse files Browse the repository at this point in the history
  • Loading branch information
colluca committed Sep 28, 2023
1 parent bdb34d5 commit 5d4fb2c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hw/snitch/src/snitch.sv
Original file line number Diff line number Diff line change
Expand Up @@ -2931,4 +2931,7 @@ module snitch import snitch_pkg::*; import riscv_instr::*; #(
// Make sure that without virtual memory support, translation is never enabled
`ASSERT(NoVMSupportNoTranslation, (~VMSupport |-> ~trans_active), clk_i, rst_i)

// Make sure debug IRQ line is not raised when debug mode is not supported
`ASSERT(DebugModeUnsupported, irq_i.debug == 1'b1 |-> DebugSupport == 1, clk_i, rst_i)

endmodule

0 comments on commit 5d4fb2c

Please sign in to comment.