I tried to compile code
module counter(
input clk,
input upSignal,
input downSignal,
output [7:0] count
);
always_ff @(posedge clk) begin
if (upSignal)
count <= count + 1;
else if (downSignal)
count <= count - 1;
end
endmodule
but I get the error
Error (10170): Verilog HDL syntax error at counter.v(7) near text "@"; expecting ".", or "("
what does it mean?