Re: concatenation with a for loop
On Feb 2, 7:34*pm, "Cary R." <no-s...@host.spam> wrote:
> fpgaasicdesigner wrote:
> > thanks guys, that works with
> > header[idx*WIDTH +: WIDTH] <= register[idx]
>
> except this gives you:
>
> header = {register[2], register[1], register[0]};
>
> not
>
> header = {register[0], register[1], register[2]};
>
> like you originally asked for. I'm just noting a discrepancy. What
> matters is that it is working like you expect.
>
> Cary
correct... you know it's never in the sense/direction you wanted 2,1,0
or 0,1,2 whatever or 1'b1 instead of been 1'b0 whatever lol
binary digital is funny if you don't have a 1 you will have a 0, so it
never can been wrong ?
thanks guys for the fast answers
and I didn't know this syntax +:, very interesting syntax...
|