本帖最后由 爱上eda 于 2010-4-17 22:53 编辑
求助高手啊 以下是一个Verilog的m10计数器的程序
在下是一个初学。。。
仿真时会出现“ERROR:Xst:899 - "fiery.v" line 38: The logic for <count> does not match a known FF or Latch template.
ERROR:Xst:899 - "fiery.v" line 37: The logic for <carryout> does not match a known FF or Latch template.”
请问是什么原因啊 ? 还有就是这个程序有什么问题啊 谢谢
module fiery(clk,reset,count,en,carryout);
input clk;
input reset;
input en;
output[3:0]count;
output carryout;
reg[3:0]count;
reg carryout;
[email=always@(posedge]always@(posedge[/email] clk or posedge reset or posedge en)
begin
if (en)
if (reset)
count=4'b0;
else count=count+1;
if (count==4'b1001)
begin
carryout=0;
count=4'b0;
end
end
endmodule |