I have a Verilog code which looks something like this.
module top (
.
.
input a_2;
input a_1;
input a_0;
);
bottom I_bottom(
.
.
.a(a_2);
);
bottom I_bottom_2(
.
.
.a(a_2);
);
bottom I_bottom_1(
.
.
.a(a_1);
);
bottom I_bottom_0(
.
.
.a(a_0)
);
endmodule
How do I write this code using a generate
statement?
Please note that the inputs in top
are fixed in top
. I cannot change that to an array like a[2:0]
.