mirror of https://github.com/YosysHQ/yosys.git
abc9: add testcase reduced from #1970
This commit is contained in:
parent
ae115fa3aa
commit
34d8ff8b56
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue