yosys/docs/source/code_examples/opt/opt_merge.ys

19 lines
254 B
Plaintext
Raw Normal View History

read_verilog <<EOT
module uut(
input [3:0] a, b,
output [3:0] y, z
);
assign y = a + b;
assign z = b + a;
endmodule
EOT
copy uut after
opt_merge after
clean
show -format dot -prefix opt_merge_full -notitle -color cornflowerblue uut