abc9: add testcase reduced from #1970

This commit is contained in:
Eddie Hung 2020-04-20 09:38:29 -07:00
parent ae115fa3aa
commit 34d8ff8b56
1 changed files with 19 additions and 0 deletions

View File

@ -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