assign a=[5:3]SW; //Use SW5~SW3 as an operand.

The original intention is to treat SW2~SW0, SW5~SW3, SW7~SW6 of [7:0]SW as several operands respectively. I want to know if I can write like this if only the middle bits are operated.

Reply