mirror of
https://github.com/YosysHQ/yosys
synced 2026-06-01 06:37:51 +00:00
Add more correctness tests.
This commit is contained in:
parent
80bb367941
commit
57eb30cf51
4 changed files with 55 additions and 0 deletions
18
tests/techmap/abc_new_box.ys
Normal file
18
tests/techmap/abc_new_box.ys
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
read_verilog -icells -specify <<EOT
|
||||
(* abc9_box, blackbox *)
|
||||
module box1(input i, output o);
|
||||
specify
|
||||
(i => o) = 1;
|
||||
endspecify
|
||||
endmodule
|
||||
|
||||
module top(input a, input b, output o);
|
||||
wire z;
|
||||
$_AND_ gate(.A(a), .B(b), .Y(o));
|
||||
box1 u_box(.i(a), .o(z));
|
||||
endmodule
|
||||
EOT
|
||||
|
||||
hierarchy -check -top top
|
||||
abc_new -script "+&scorr;&sweep;&dc2;&dch,-f;&nf,{D}" -liberty ../../examples/cmos/cmos_cells.lib
|
||||
select -assert-min 1 t:*
|
||||
Loading…
Add table
Add a link
Reference in a new issue