Results 1 to 7 of 7

Thread: plz help......Seqence recognizer error

  1. #1
    Join Date
    Jun 2018
    Posts
    4
    Rep Power
    1

    Arrow plz 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?

  2. #2
    Join Date
    Jun 2013
    Location
    The Netherlands
    Posts
    534
    Rep Power
    1

    Default Re: plz help......Seqence recognizer error


  3. #3
    Join Date
    Oct 2008
    Location
    Silicon Valley, USA
    Posts
    340
    Rep Power
    1

    Default Re: plz help......Seqence recognizer error

    Quote Originally Posted by 2243blue View Post
    `timescale 1ns/ 1ps

    Code:
    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?
    The text flagged in red is extraneous junk that does not belong there. What are you trying to do?

  4. #4
    Join Date
    Jun 2018
    Posts
    4
    Rep Power
    1

    Default Re: plz help......Seqence recognizer error

    Quote Originally Posted by ak6dn View Post
    The text flagged in red is extraneous junk that does not belong there. What are you trying to do?

    oh. l just let you know verilog sentence sequence...

    in modelsim, l wrote this
    Attached Images Attached Images

  5. #5
    Join Date
    Jun 2018
    Posts
    4
    Rep Power
    1

    Default Re: plz help......Seqence recognizer error

    oh l deleted one

  6. #6
    Join Date
    Jun 2018
    Posts
    4
    Rep Power
    1

    Default Re: plz help......Seqence recognizer error

    I'm sorry. l don't know how to delete anoter.

  7. #7
    Join Date
    Feb 2018
    Posts
    112
    Rep Power
    1

    Default Re: plz help......Seqence recognizer error

    Hi,
    Quote Originally Posted by 2243blue View Post
    #100 rnRESET <= 1'bl; ///////////////////////// #100 rnRESET <= 1'b1; ---- use digit "1" not "l" character "L".
    It`s typo mistake use 1 (one digit) instead of L character.

    Let me know if this has helped resolve the issue you are facing or if you need any further assistance.

    Best Regards
    Vikas Jathar
    (This message was posted on behalf of Intel Corporation)
    Last edited by jatharvk; June 11th, 2018 at 12:40 AM. Reason: Updated

Similar Threads

  1. Error (209053): Unexpected error in JTAG server -- error code 89
    By Wided HECHKEL in forum Quartus II and EDA Tools Discussion
    Replies: 0
    Last Post: April 13th, 2016, 04:42 AM
  2. DE2 + DC2 + LCM Gesture Recognizer
    By israkir in forum University Program
    Replies: 1
    Last Post: February 24th, 2010, 09:49 AM
  3. baud rate recognizer
    By view2killu in forum Quartus II and EDA Tools Discussion
    Replies: 3
    Last Post: January 13th, 2010, 06:07 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •