mirror of
https://github.com/verilator/verilator.git
synced 2025-01-09 16:17:36 +00:00
ce10dbd11c
git-svn-id: file://localhost/svn/verilator/trunk/verilator@753 77ca24e4-aefa-0310-84f0-b9a241c72d87
78 lines
997 B
Plaintext
78 lines
997 B
Plaintext
|
|
`line 1 "t/t_preproc_psl.v" 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*verilator metacomment preserved*/
|
|
|
|
/*verilator metacomment also_preserved*/
|
|
|
|
Hello in t_preproc_psl.v
|
|
|
|
|
|
|
|
|
|
|
|
psl default clock = (posedge clk);
|
|
psl fails1: cover {cyc==10};
|
|
psl assert always cyc!=10;
|
|
psl assert always cyc==3 -> mask==8'h2;
|
|
psl failsx: cover {cyc==3 && mask==8'h1};
|
|
psl fails2:
|
|
cover {
|
|
cyc==3 && mask==8'h9};
|
|
|
|
fails3: always assert {
|
|
cyc==3 && mask==8'h10 };
|
|
|
|
29
|
|
|
|
|
|
|
|
|
|
psl
|
|
fails_ml:
|
|
assert always
|
|
cyc==3 -> mask==8'h21;
|
|
psl
|
|
fails_mlalso: assert always cyc==3 -> mask==8'h21;
|
|
|
|
41
|
|
|
|
psl assert never (cyc==1 && reset_l);
|
|
|
|
psl fails3: assert always
|
|
psl cyc==3 -> mask==8'h21;
|
|
|
|
|
|
|
|
psl assert always
|
|
psl {[*]; cyc==3;
|
|
psl cyc==4; cyc==6};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
`line 59 "t/t_preproc_psl.v" 0
|
|
|
|
|
|
|
|
|
|
psl assert always cyc !=10;
|
|
|
|
|
|
`psl
|
|
psl assert always sig!=90;
|
|
`verilog
|
|
|
|
|
|
|
|
72
|
|
|