V
vittal
Guest
Hi,
Can i use a variable as an indiex in another array.
For example
wire [15:0] a;
wire [3:0] b;
wire [15:0] result;
assign result = {a[b - 1 : 0],a[15 : b]};
This is needed for shift operations.
Thanks,
Vittal
Can i use a variable as an indiex in another array.
For example
wire [15:0] a;
wire [3:0] b;
wire [15:0] result;
assign result = {a[b - 1 : 0],a[15 : b]};
This is needed for shift operations.
Thanks,
Vittal