3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-08-14 18:05:55 +00:00
yosys/tests/techmap/abc_new.ys
Lofty d1357f171f fix handling of multiple modules
Co-authored-by: nella <nella@yosyshq.com>
2026-08-10 10:17:31 +01:00

13 lines
310 B
Text

read_verilog <<EOT
module sub(input a, b, c, output y);
assign y = (a & b) | c;
endmodule
module top(input a, b, c, d, output y, z);
assign z = (a ^ b) & d;
sub s_i (.a(a), .b(b), .c(c), .y(y));
endmodule
EOT
hierarchy -top top
techmap
abc_new -liberty ../liberty/normal.lib -liberty ../liberty/dff.lib