stanford
Full Member level 2
Say I have inputs as follows:
and what I want to do in generate for loop is something like this.
The problem is I cant index the inputs using the variable 'i' in the generate for loop. How can I do this easily with a for loop?
Note: I don't want to use in[N-1:0], I want to keep them as in0, in1...
Code:
input in0;
input in1;
input in2;
input in3;
...
Code:
b[0] = in0;
b[1] = in1;
b[2] = in2;
... and so on.
The problem is I cant index the inputs using the variable 'i' in the generate for loop. How can I do this easily with a for loop?
Note: I don't want to use in[N-1:0], I want to keep them as in0, in1...
Code:
for (i = 0; i < N; i = i + 1)
b[i] = ?