projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae115fa
)
abc9: add testcase reduced from #1970
author
Eddie Hung
<eddie@fpgeh.com>
Mon, 20 Apr 2020 16:38:29 +0000
(09:38 -0700)
committer
Eddie Hung
<eddie@fpgeh.com>
Mon, 20 Apr 2020 16:38:29 +0000
(09:38 -0700)
tests/various/abc9.ys
patch
|
blob
|
history
diff --git
a/tests/various/abc9.ys
b/tests/various/abc9.ys
index 0c76950894cbdbd2f82c82fb5efac15b426df4bb..6e2415ad79450e559862fc65333092d5eb026d2b 100644
(file)
--- a/
tests/various/abc9.ys
+++ b/
tests/various/abc9.ys
@@
-53,3
+53,22
@@
assign q = w;
endmodule
EOT
abc9 -lut 4 -dff
+
+
+design -reset
+read_verilog -icells -specify <<EOT
+(* abc9_lut=1, blackbox *)
+module LUT2(input [1:0] i, output o);
+parameter [3:0] mask = 0;
+assign o = i[0] ? (i[1] ? mask[3] : mask[2])
+ : (i[1] ? mask[1] : mask[0]);
+specify
+ (i *> o) = 1;
+endspecify
+endmodule
+
+module top(input [1:0] i, output o);
+LUT2 #(.mask(4'b0)) lut (.i(i), .o(o));
+endmodule
+EOT
+abc9