mirror of
https://github.com/YosysHQ/yosys.git
synced 2026-10-06 10:03:36 +02:00
@@ -0,0 +1,13 @@
|
||||
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
|
||||
|
||||
@@ -56,5 +56,5 @@ endmodule
|
||||
|
||||
EOF
|
||||
|
||||
logger -expect error "Malformed design" 1
|
||||
logger -expect error "Cannot find existing box cell" 1
|
||||
abc_new -liberty ../../tests/liberty/normal.lib -liberty ../../tests/liberty/dff.lib
|
||||
|
||||
Reference in New Issue
Block a user