mirror of
https://github.com/openhwgroup/cva5.git
synced 2025-04-20 12:07:53 -04:00
assert fix
This commit is contained in:
parent
a773873f01
commit
38472acec5
1 changed files with 4 additions and 0 deletions
|
@ -84,4 +84,8 @@ module id_tracking
|
|||
|
||||
////////////////////////////////////////////////////
|
||||
//Assertions
|
||||
always_ff @ (posedge clk) begin
|
||||
assert (!(~id_available & issued)) else $error("Issued without valid ID!");
|
||||
assert (!(empty & (retired & ~issued))) else $error("Retired without any instruction inflight!");
|
||||
end
|
||||
endmodule
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue