打印

ise9.1 一个Verilog的m10计数器的程序求助

[复制链接]
1939|0
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
爱上eda|  楼主 | 2010-4-17 22:42 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 爱上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

相关帖子

发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

0

主题

1

帖子

1

粉丝