Hello , for this simple code i get these two errors,where did i go wrong? Thanks ERROR:HDLCompiler:806 - "D:\Users\st_line_demo\stln.v" Line 14: Syntax error near "clk". ERROR:HDLCompiler:598 - "D:\Users\st_line_demo\stln.v" Line 3: Module <stln> ignored due to previous errors.
1 | `timescale 1ns / 1ps |
2 | |
3 | module stln(clk,ce,y,c,m); |
4 | input clk,ce; |
5 | input [7:0] m,c; |
6 | output reg [31:0] y; |
7 | integer x; |
8 | |
9 | initial
|
10 | begin
|
11 | x=0; |
12 | end
|
13 | |
14 | always @(postedge clk) |
15 | begin
|
16 | x=x+1; |
17 | y=(m*x)+c; |
18 | end
|
19 | endmodule
|