File size: 632 Bytes
123e810 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | # CNST - add new rule
- Source URL: https://github.com/AsFigo/pyslint/issues/184
```verilog
class bli_c;
bit foo_sel;
rand int foo;
constraint cst_1 {
foo == (foo_sel) ? 5 :6;
}
function void post_randomize();
$display ("%p", this);
endfunction
endclass
module m;
bli_c u_bli_c_0;
initial begin
u_bli_c_0 = new();
repeat (5) u_bli_c_0.randomize();
#10;
$finish (2);
end
endmodule
```
https://www.linkedin.com/posts/avidan-efody_appleabrdv-servingthenextbug-systemverilog-activity-7152673318020562944-tI2M?utm_source=share&utm_medium=member_desktop
|