Altera_Forum
Honored Contributor
11 years agoerror 10170: HDL syntax error in Verilog
Hi, i got some trouble for the code i developed:
when i execute this code: if(rst==1'b1) begin 38. cs [0] = 4'b0; 39. cs [1] = 4'b0; 40. cs [2] = 4'b0; 41. cs [3] = 4'b0; 42. cs [4] = 4'b0; 43. s [5] = 4'b0; end then compile and i got that syntax: Error (10170): Verilog HDL syntax error at digitalclock.v(39) near text "="; expecting ".", or an identifier Error (10170): Verilog HDL syntax error at digitalclock.v(40) near text "="; expecting ".", or an identifier Error (10170): Verilog HDL syntax error at digitalclock.v(41) near text "="; expecting ".", or an identifier Error (10170): Verilog HDL syntax error at digitalclock.v(42) near text "="; expecting ".", or an identifier Error (10170): Verilog HDL syntax error at digitalclock.v(43) near text "="; expecting ".", or an identifier please note line 38! please help me solved this error, thank you! :)