急问,高手帮我看看哦,编译有错误.

** Error: F:/modelsim/Example-3-1/Source/test3_1.v(1): near "'t": Illegal base specifier in numeric constant.
** Error: F:/modelsim/Example-3-1/Source/test3_1.v(1): near "'t": syntax error, unexpected "BASE", expecting "class"


编译测试文件时不通过.上面是显示的错误.
下面的这个是测试的文件,望高手能指点一下哦!!万分感激!!


'timescale 1ns/1ns
module uarttdx.test;
reg Load,clk,rxd;
reg[7:0] txdin;
wire txd,TI,RI;
wire[7:0] rxdin;
parameter step=150;
uart ul(Load,TI,RI,clk,rxdin,txdin,txd,rxd);
always
#(step/2) clk=~clk;
initial begin
Load=0; txdin=8'b11001001; clk=0; rxd=1;
#(step*11/10) Load=1;
#(step/10) Load=0;
#(step) rxd=0;
#(step) rxd=1;
#(step) rxd=0;
#(step) rxd=0;
#(step) rxd=1;
#(step) rxd=1;
#(step) rxd=1;
#(step) rxd=1;
#(step) rxd=0;
#(step) rxd=1;
#(step) txdin=8'b01100111;
#(step/10) Load=1;
#(step/10) Load=0;
#(step*15) $finish;
        end
endmodule

[ 本帖最后由 heheangel 于 2008-10-11 09:32 编辑 ]
我也来说两句 查看全部回复

最新回复

  • bemoon (2008-10-08 23:36:41)

    'timescale 1ns/1ns
    错了。
    是`timescale 1ns/ns。
    仔细看最前的符号不是单引号,是键盘Esc下面那个。
  • wanynal (2008-10-10 08:38:51)

    犯过同样的错误
  • heheangel (2008-10-10 09:06:13)

      thankyou!
  • sky840723 (2008-10-10 14:12:13)

    呵呵,好像大家都犯过这样的错误,但是不能再犯第二次了。