|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
本帖最后由 jujishoudong 于 2010-10-29 12:40 编辑
|
刚开始学Verilog,写的简单的一个testbench有错误,请教各位
`timescale 10ns/100ps
`include "and1.v"
and1 dd(a,b,c);
module tt;
reg clk,a,b;
output c;
initial
begin
clk=0;
a=1;
b=0;
end
always #10 clk=~clk;
always @(posedge clk)
begin
#2 a={$random}%2;
#10 b={$random}%2;
end
endmodule
错误提示:near "and1": syntax error, unexpected "IDENTIFIER", expecting "class" |
|
|
|