For example, here:
a = b[16:0] + c[0+:WIDTH];
What does the + sign do? Let's say b was 16'h1234 and c was 16'ABCD.
For example, here:
a = b[16:0] + c[0+:WIDTH];
What does the + sign do? Let's say b was 16'h1234 and c was 16'ABCD.
reg1[a+:b] means start with "a" and increment index until "b" cells.
reg1[a-:b] means start with "a" and decrement index until "b" cells.
so
reg1[0+:8] is equivalent to reg1[0:7]
reg1[7-:8] is equivalent to reg1[7:0]