集成电路技术分享

 找回密码
 我要注册

QQ登录

只需一步,快速开始

搜索
查看: 1578|回复: 3

求助,我是入门级别

[复制链接]
guojun 发表于 2010-11-5 15:45:32 | 显示全部楼层 |阅读模式
module blocking(
                 clk,   //时钟输入信号
                 rst,   //复位信号,用于给寄存器赋初值,低电平有效
                 out1,
                 out2
                );
  input          clk;
  input          rst;
  output         out1;
  output         out2;
  
  wire          clk;
  wire          rst;
  reg           out1;
  reg           out2;
  
  always @(posedge clk or negedge rst)
    begin
     if(!rst)           //异步复位
     begin
        out1<=1;        //为输出信号赋初值
        out2<=0;
     end               //时钟上升沿到来
     else               
     begin
        out1<=out2;    //多条非阻塞赋值同时完成
        out2<=out1;
      end
    end

  endmodule


Warning: Found pins functioning as undefined clocks and/or memory enables
        Info: Assuming node "clk" is an undefined clock
请问各位大侠,这个是什么意思啊?多谢帮忙。
zhouliang 发表于 2010-11-5 16:03:38 | 显示全部楼层
clk,rst不用定义数据类型吧
weibode01 发表于 2010-11-6 10:45:22 | 显示全部楼层
应该是这样
 楼主| guojun 发表于 2010-11-6 11:07:40 | 显示全部楼层
我试一下    谢谢各位
您需要登录后才可以回帖 登录 | 我要注册

本版积分规则

关闭

站长推荐上一条 /1 下一条

QQ|小黑屋|手机版|Archiver|集成电路技术分享 ( 京ICP备20003123号-1 )

GMT+8, 2024-5-18 19:46 , Processed in 0.067812 second(s), 19 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表