微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 嵌入式设计讨论 > FPGA,CPLD和ASIC > 布线时的问题。

布线时的问题。

时间:10-02 整理:3721RD 点击:
用ISE布线,出现一个warning:
WARNING:NgdBuild:477 - clock net 'rst_ibuf_iso' has non-clock connections
我的程序在功能仿真可以,但是后仿真的时候就和功能仿真不一样了:(
用的是xcv300-bg352-6,程序如下:是一个任意分频的可控分频器。
记得以前告诉过我这个程序会把rst综合成时钟,现在是不是这个问题呀?
module freqdiv(clock,rst,num,divout);
input clock,rst;
input [0:7]num;
output divout;
reg [0:7]count_p,count_n,half,all;
reg freq_p,freq_n;
assign divout=freq_p&freq_n;
always@(negedge rst)
begin
all=num;
half=all>>1;
end
always
@(posedge clock)
begin
if (rst)
begin
count_p=8'b00000000;
end
else
begin
if(count_p==num-1)
begin
count_p=8'b00000000;
freq_p=(count_p<=half)?1:0;
end
else
begin
count_p=count_p+1;
freq_p=(count_p<=half)?1:0;
end
end
end
always
@(negedge clock)
begin
if (rst)
begin
count_n=8'b00000000;
end
else
begin
if(count_n==num-1)
begin
count_n=8'b00000000;
freq_n=(count_n<=half)?1:0;
end
else
begin
count_n=count_n+1;
freq_n=(count_n<=half)?1:0;
end
end
end
endmodule

[求助]布线时的问题。
always@(negedge rst)
begin
all=num;
half=all>>1;
end
中rst就是时钟
另外,个人的意见是:比较复杂的组合逻辑不要写在always块中

[求助]布线时的问题。
那么这句如果把negedge 去掉就是可以的了,为什么呢?

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top