mirror of
https://github.com/YosysHQ/yosys
synced 2026-06-14 12:55:41 +00:00
Add more correctness tests.
This commit is contained in:
parent
80bb367941
commit
57eb30cf51
4 changed files with 55 additions and 0 deletions
12
tests/techmap/abc_new_keep.ys
Normal file
12
tests/techmap/abc_new_keep.ys
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
read_verilog <<EOT
|
||||
module top(input a, input b, output o);
|
||||
(* keep *) wire w = a & b;
|
||||
assign o = ~w;
|
||||
endmodule
|
||||
EOT
|
||||
hierarchy -check -top top
|
||||
proc; opt -fast; techmap
|
||||
|
||||
abc_new -script "+&scorr;&sweep;&dc2;&dch,-f;&nf,{D}" -liberty ../../examples/cmos/cmos_cells.lib
|
||||
select -assert-none t:$_AND_
|
||||
select -assert-min 1 t:NAND t:NOT t:NOR t:BUF %u
|
||||
Loading…
Add table
Add a link
Reference in a new issue