Altera_Forum
Honored Contributor
12 years agoSimple syntax error
I have no clue why quartus does not want to run this all in one module.
I get this error: Error (10170): Verilog HDL syntax error at Verilog1.v(6) near text "begin"; expecting "endmodule" module hex7disp(A, n, O, h); input A, n, O; output reg [6:0]h; always @ (A or n or O or h); begin if (A) h <= 7'b0001000; else if (n) h <= 7'b0101011; else if (O) h <= 7'b1000000; else h <= 7'b0111111; end endmodule Thanks for any help.