打印

请教各位

[复制链接]
1289|0
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
吕萌|  楼主 | 2007-3-30 16:32 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
AD, RS, ST, se, ge
module count(clk,rst,c_out,load);
input clk;
input rst;
input load;
output [3:0]c_out;
reg [3:0]c_out;
always @(posedge clk or negedge rst )
begin
if(load)
    if(~rst)
     c_out<=0;
    else 
      if(c_out==4'b1111)
        c_out<=0;
     else
         c_out<=c_out+1;                 
end
endmodule
这个为什么不能综合,是不是因为load产生了latch,要是,那我应该怎么,描述使能,谢谢各位大虾.

相关帖子

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

本版积分规则

11

主题

13

帖子

0

粉丝