C
Clemens Ragger
Guest
Hello
Assume the following easy example:
I have got an input signal which is 12 bits long.
Now I want that the output signal only contains the even bits
So I could write it this way:
outp(0) <= inp(0)
outp(1) <= inp(2)
outp(2) <= inp(4)
or also this way
for I 1 to 6 do
outp_h <= inp(2*I);
end loop
outp <= outp_h
is it correct that when I synthese both of this constructs the size is the
same? the outp_h is just seen a name for a 6 bit wire, its not a register
and cant store any value.
I hope you understand my problem
Cheers
Assume the following easy example:
I have got an input signal which is 12 bits long.
Now I want that the output signal only contains the even bits
So I could write it this way:
outp(0) <= inp(0)
outp(1) <= inp(2)
outp(2) <= inp(4)
or also this way
for I 1 to 6 do
outp_h <= inp(2*I);
end loop
outp <= outp_h
is it correct that when I synthese both of this constructs the size is the
same? the outp_h is just seen a name for a 6 bit wire, its not a register
and cant store any value.
I hope you understand my problem
Cheers