- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
`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?Link Copied
6 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- `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? --- Quote End --- The text flagged in red is extraneous junk that does not belong there. What are you trying to do?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- The text flagged in red is extraneous junk that does not belong there. What are you trying to do? --- Quote End --- oh. l just let you know verilog sentence sequence...https://alteraforum.com/forum/attachment.php?attachmentid=15536&stc=1 https://alteraforum.com/forum/attachment.php?attachmentid=15536&stc=1 in modelsim, l wrote this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
oh l deleted one
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm sorry. l don't know how to delete anoter.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
--- Quote Start --- #100 rnRESET <= 1'bl; /////////////////////////# 100 rnRESET <= 1'b1; ---- use digit "1" not "l" character "L". --- Quote End --- 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)
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page