Skip to content

Commit

Permalink
Revert latch fix that causes Verilator failures
Browse files Browse the repository at this point in the history
  • Loading branch information
calebofearth committed Nov 11, 2024
1 parent 53e9512 commit 16837fd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/riscv_core/veer_el2/rtl/lib/beh_lib.sv
Original file line number Diff line number Diff line change
Expand Up @@ -760,10 +760,16 @@ module `TEC_RV_ICG

assign enable = EN | SE;

`ifdef VERILATOR
always @(negedge CK) begin
en_ff <= enable;
end
`else
always @(CK, enable) begin
if(!CK)
en_ff = enable;
end
`endif
assign Q = CK & en_ff;

endmodule
Expand Down

0 comments on commit 16837fd

Please sign in to comment.