Skip to content

Commit

Permalink
Move timing statement outside of always_comb block (#2552)
Browse files Browse the repository at this point in the history
Fix following requirement:

The assertion included in the always_comb block apparently violates the requirements in [section 9.2.2.2.2 of the SystemVerilog standard](https://ieeexplore.ieee.org/document/10458102):

Statements in an always_comb shall not include those that block, have blocking timing or event
controls, or fork-join statements.
  • Loading branch information
ricted98 authored Oct 23, 2024
1 parent b4d000b commit 53472eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/cache_subsystem/tag_cmp.sv
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ module tag_cmp #(
if (req_i[i]) break;
end

end

`ifndef SYNTHESIS
`ifndef VERILATOR
// assert that cache only hits on one way
Expand All @@ -92,7 +94,6 @@ module tag_cmp #(
end
`endif
`endif
end

always_ff @(posedge clk_i or negedge rst_ni) begin
if (~rst_ni) begin
Expand Down

0 comments on commit 53472eb

Please sign in to comment.