mirror of
https://github.com/retroSoC/common.git
synced 2026-11-04 22:32:37 +00:00
feat: add x prop checker module
This commit is contained in:
2 files changed
+69
-1
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user