projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61a1f3f
)
Even more obvious testcase
author
Eddie Hung
<eddie@fpgeh.com>
Thu, 12 Dec 2019 07:52:05 +0000
(23:52 -0800)
committer
Eddie Hung
<eddie@fpgeh.com>
Thu, 12 Dec 2019 07:52:05 +0000
(23:52 -0800)
tests/sat/initval.ys
patch
|
blob
|
history
diff --git
a/tests/sat/initval.ys
b/tests/sat/initval.ys
index 6cb68a8d37d31601e97a1b1b31e7711d23a5b7b5..1436724b0d3edc534c3bb7e91e05ed1bd0f20df4 100644
(file)
--- a/
tests/sat/initval.ys
+++ b/
tests/sat/initval.ys
@@
-5,12
+5,11
@@
sat -seq 10 -prove-asserts
design -reset
read_verilog -icells <<EOT
-module top(input clk, i, output o, p);
-(* init = 1'b0 *)
-wire o;
-(* init = 1'bx *)
-wire p = o;
-$_DFF_P_ dff (.C(clk), .D(i), .Q(o));
+module top(input clk, i, output [1:0] o);
+(* init = 2'bx0 *)
+wire [1:0] o;
+assign o[1] = o[0];
+$_DFF_P_ dff (.C(clk), .D(i), .Q(o[0]));
endmodule
EOT
sat -seq 1