feat: add x prop checker module

This commit is contained in:
maksyuki committed 2024-12-14 21:42:08 +08:00
1 parent 1bf2d680e6
commit 72f9bb2392
2 files changed
+69 -1

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
`ifndef INC_XCHECKER_SV
`define INC_XCHECKER_SV
module xchecker #(
parameter DATA_WIDTH = 1
) (
input logic clk_i,
input logic [DATA_WIDTH-1:0] dat_i
);
XCHECKER :
assert property (@(posedge clk_i) ((^(dat_i)) !== 1'bx))
else
$fatal("\n [error]: detected x value here which can lead to the x state propagation problem\n");
endmodule
`endif