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]
查看完整版本: 求助,我是入门级别