|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
Failed to find 'count10' in hierarchical name /count10.
是这样的,想做一个时钟,count10.v,count6.v,count24.v是计数的
大概是这样的
module count6(count,out,clk,rst);
input clk,rst;//6????
output[2:0] count;//???
output out;//out??????
reg out;
reg[2:0] count;
always@(posedge clk,posedge rst)
begin
if(rst)
begin
count<=0;
out<=0;
end
else if(count==5)
begin
count<=0;
out<=1;
end
else
begin
count<=count+1;
out<=0;
end
end
endmodule
在clock.v里面用到了上面三个东西
这么用的
always@(posedge clk or posedge rst)
begin
count6(count,out,clk,rst);
。。。。
end
自己写了测试代码,
用modelsim做simulate的时候,就出现Failed to find 'count10' in hierarchical name /count10. 这类错误
用了·include “count6.v”这些也没有用
请问这这么解决?初学者实在弄不明白了
另外上面提到的东西全放在一个文件夹下 |
|