Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
plru_tree: Use system function for onehot assertion
Browse files Browse the repository at this point in the history
Co-authored-by: Nils Wistoff <nwistoff@iis.ee.ethz.ch>
michael-platzer and niwis authored Dec 14, 2023
1 parent 8e7db89 commit 8713383
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plru_tree.sv
Original file line number Diff line number Diff line change
@@ -125,7 +125,7 @@ module plru_tree #(
end

output_onehot : assert property(
@(posedge clk_i) disable iff (~rst_ni) ((plru_o & (plru_o - 1)) == '0))
@(posedge clk_i) disable iff (~rst_ni) ($onehot0(plru_o))
else $fatal (1, "More than one bit set in PLRU output.");
`endif
// pragma translate_on

0 comments on commit 8713383

Please sign in to comment.