lh-
Member level 1
i have the following example:
and the result is:
i understand that {} is the concatenation operator but how does it work here?
2{A} means 2*1 = 10, then where does the 1000 come from?
or 3{B}?
Code:
reg A;
reg[1:0] B, C;
reg[2:0] D;
reg[15:0] Y;
A = 1'b1;
B = 2'b01;
C = 2'b10;
D = 3'b110;
Y = { 2{A}, 3{B}, C, 2{D} };
and the result is:
Code:
Y = 10'b 1000_1111_1010_0101
i understand that {} is the concatenation operator but how does it work here?
2{A} means 2*1 = 10, then where does the 1000 come from?
or 3{B}?