Altera_Forum
Honored Contributor
7 years agoplz help......Seqence recognizer error
`timescale 1ns/ 1ps
module tb_seqrec; reg rnRESET, rCLK, rX; wire wZ; seqrec seqrec0(.nRESET(rnRESET), .CLK(rCLK), .X(rX), .Z(wZ)); always begin # 500 rCLK <= ~rCLK; end initial begin rnRESET <= 1'b0; rX <= 1'b0; 19#100 rnRESET <= 1'bl; 20#1000 rX <= 1'bl; 21#1000 rX <= 1'bl; 22#1000 rX <= 1'b0; 23#1000 rX <= 1'b0; 24#1000 rX <= 1'bl; 25#1000 rX <= 1'bl; 26#1000 rX <= 1'b0; 27#1000 rX <= 1'bl; // Z=1 28#1000 rX <= 1'bl; 29#1000 rX <= 1'b0; 30#1000 rX <= 1'bl; // Z=1 31#1000 rX <= 1'b0; 32#1000 rX <= 1'bl; end endmodule I made it. l thought there is no error. but :/Test/seqrec2/tb_seqrec.v(19): Expecting numeric digits. ** Error: C:/Test/seqrec2/tb_seqrec.v(19): near "1": syntax error, unexpected "IDENTIFIER", expecting ';' ** Error: C:/Test/seqrec2/tb_seqrec.v(20): Expecting numeric digits. ** Error: C:/Test/seqrec2/tb_seqrec.v(20): near "1": syntax error, unexpected "IDENTIFIER", expecting ';' ** Error: C:/Test/seqrec2/tb_seqrec.v(21): Expecting numeric digits. ** Error: C:/Test/seqrec2/tb_seqrec.v(21): near "1": syntax error, unexpected "IDENTIFIER", expecting ';' ** Error: C:/Test/seqrec2/tb_seqrec.v(24): Expecting numeric digits. ** Error: C:/Test/seqrec2/tb_seqrec.v(24): near "1": syntax error, unexpected "IDENTIFIER", expecting ';' ** Error: C:/Test/seqrec2/tb_seqrec.v(25): Expecting numeric digits. ** Error: C:/Test/seqrec2/tb_seqrec.v(25): near "1": syntax error, unexpected "IDENTIFIER", expecting ';' ** Error: C:/Test/seqrec2/tb_seqrec.v(27): Expecting numeric digits. ** Error: C:/Test/seqrec2/tb_seqrec.v(27): near "1": syntax error, unexpected "IDENTIFIER", expecting ';' ** Error: C:/Test/seqrec2/tb_seqrec.v(28): Expecting numeric digits. ** Error: C:/Test/seqrec2/tb_seqrec.v(28): near "1": syntax error, unexpected "IDENTIFIER", expecting ';' ** Error: C:/Test/seqrec2/tb_seqrec.v(30): Expecting numeric digits. ** Error: C:/Test/seqrec2/tb_seqrec.v(30): near "1": syntax error, unexpected "IDENTIFIER", expecting ';' ** Error: C:/Test/seqrec2/tb_seqrec.v(32): Expecting numeric digits. ** Error: C:/Test/seqrec2/tb_seqrec.v(32): near "1": syntax error, unexpected "IDENTIFIER", expecting ';' what's wrong?