mirror of https://github.com/YosysHQ/yosys.git
14 lines
310 B
Plaintext
14 lines
310 B
Plaintext
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
|
|
|