File tree 2 files changed +29
-0
lines changed
regression/verilog/expressions
2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change
1
+ KNOWNBUG
2
+ signing_cast1.sv
3
+ --module main --bound 0
4
+ ^\[main\.p0\] always signed \[0:0\]'\(1'b1\) == -1: PROVED up to bound 0$
5
+ ^\[main\.p1\] always signed \[0:0\]'\(4'b1110\) == -2: PROVED up to bound 0$
6
+ ^\[main\.p2\] always signed \[0:0\]'\(4'b0111\) == 7: PROVED up to bound 0$
7
+ ^\[main\.p3\] always signed \[0:0\]'\(!0\) == -1: PROVED up to bound 0$
8
+ ^\[main\.p4\] always \[0:0\]'\(!0\) == 1: PROVED up to bound 0$
9
+ ^\[main\.p5\] always \[0:0\]'\(-1\) == 32'hFFFFFFFF: PROVED up to bound 0$
10
+ ^EXIT=0$
11
+ ^SIGNAL=0$
12
+ --
13
+ ^warning: ignoring
14
+ --
15
+ The width of the operand is not preserved.
Original file line number Diff line number Diff line change
1
+ module main ;
2
+
3
+ // 1800-2017 6.24.1
4
+ p0 : assert final (signed '(1'b1 ) == - 1 );
5
+ p1 : assert final (signed '(4'b1110 ) == - 2 );
6
+ p2 : assert final (signed '(4'b0111 ) == 7 );
7
+ p3 : assert final (signed '(! 0 ) == - 1 );
8
+ p4 : assert final (unsigned '(! 0 ) == 1 );
9
+ p5 : assert final (unsigned '(- 1 ) == 32'hffff_ffff );
10
+
11
+ // signing casts yield constants
12
+ parameter Q = signed '(1 );
13
+
14
+ endmodule
You can’t perform that action at this time.
0 commit comments