mirror of
https://github.com/YosysHQ/yosys
synced 2026-03-23 04:49:15 +00:00
19 lines
337 B
Text
19 lines
337 B
Text
read_verilog <<EOT
|
|
module add8(
|
|
input [15:0] a, b, c, d, e, f, g, h,
|
|
output [15:0] y
|
|
);
|
|
assign y = a + b + c + d + e + f + g + h;
|
|
endmodule
|
|
EOT
|
|
hierarchy -auto-top
|
|
proc
|
|
|
|
csa_tree
|
|
select -assert-count 6 t:$fa
|
|
select -assert-count 1 t:$add
|
|
|
|
csa_tree
|
|
select -assert-count 6 t:$fa
|
|
select -assert-count 1 t:$add
|
|
select -assert-none t:$sub
|