When I enter something like this:
always @* begin
case(SW[17])
1'b0: assign LEDG = SW[7:0];
1'b1: assign LEDG = SW[15:8];
endcase
end
where LEDG is set of [7:0] green LEDs, I get the error:
Error (10137): Verilog HDL Procedural Assignment error at part2.v(20): object "LEDG" on left-hand side of assignment must have a variable data type
upon trying to compile. However, when I put a similar assignment statement outside the case block, such as:
assign LEDG = SW[7:0];
it assigns just fine. I can't seem to figure out the issue.