3
0
Fork 0
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:
nella 2026-05-05 20:09:41 +02:00
parent 80bb367941
commit 57eb30cf51
4 changed files with 55 additions and 0 deletions

View 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