Forum Discussion
Altera_Forum
Honored Contributor
11 years agoHi,
Using 2014 version of Quartus II software (web edition), I have problem compiling the following code receiving error 10170.module shifter16 (A, H_sel, H)
input A;
input H_sel;
output H;
reg H;
always @ (A or H_sel)
begin
if (H_sel)
H={A,1'b0};
else
H={A,A};
end
endmodule Error received: Error (10170): Verilog HDL syntax error at shifter16.v(2) near text "input"; expecting ";" Any help would be appreciated.