Skip to content

Commit

Permalink
[sram_ctrl,fpv] Strengthen assertion checking tlul_gnt behaviour
Browse files Browse the repository at this point in the history
Signed-off-by: Greg Chadwick <gac@lowrisc.org>
  • Loading branch information
GregAC authored and vogelpi committed Apr 19, 2024
1 parent c97dc79 commit d15be5e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions hw/ip/sram_ctrl/rtl/sram_ctrl.sv
Original file line number Diff line number Diff line change
Expand Up @@ -568,8 +568,9 @@ module sram_ctrl
u_tlul_adapter_sram.u_rspfifo.gen_normal_fifo.u_fifo_cnt.gen_secure_ptrs.u_rptr,
alert_tx_o[0])

// `tlul_gnt` doesn't factor in `sram_gnt` for timing reasons. This assertion checks that
// a `tlul_req` is always granted when `sram_gnt` has been asserted and we're not doing an init.
`ASSERT(TlulGntIsCorrect_A, tlul_req & sram_gnt & ~init_req |-> tlul_gnt)
// `tlul_gnt` doesn't factor in `sram_gnt` for timing reasons. This assertions checks that
// `tlul_gnt` is the same as `sram_gnt` when there's an active `tlul_req` that isn't being ignored
// because the SRAM is initializing.
`ASSERT(TlulGntIsCorrect_A, tlul_req |-> (sram_gnt & ~init_req) == tlul_gnt)

endmodule : sram_ctrl

0 comments on commit d15be5e

Please sign in to comment.