Files
yosys/tests/abc_new/duplicate_cell_libs.ys
T
2026-09-21 16:39:09 +02:00

18 lines
476 B
Plaintext

# https://github.com/YosysHQ/yosys/issues/4977
# abc names the duplicated cell before it asserts, which used to be lost in a
# stdio buffer that the abort never flushed
logger -expect log "There are two standard cells with the same name" 1
logger -expect error "ABC" 1
read_verilog <<EOT
module top(input a, b, output y);
assign y = ~(a & b);
endmodule
EOT
hierarchy -top top
techmap
libcache -scl -disable
abc_new -liberty openroad/cm_test_cells.lib -liberty dup_inv.lib