zhanggong 发表于 2009-8-17 11:22:21

我的这段锁存器代码为什么出现警告

我的这段代码为什么出现警告

module LATCH4(CLRB,CLK,D,Q);
input CLK,CLRB;
input D;
output Q;
reg Q;
always @(CLK or CLRB)
   begin
   if(!CLRB) Q<=0;
   else Q<=D;
   end
endmodule

Warning (10235): Verilog HDL Always Construct warning at LATCH4.v(9): variable "D" is read inside the Always Construct but isn't in the Always Construct's Event Control

Warning: Design contains 1 input pin(s) that do not drive logic

        Warning (15610): No output dependent on input pin "CLK"

vipeinstein 发表于 2009-9-23 13:39:06

你的引脚映射对了么,
页: [1]
查看完整版本: 我的这段锁存器代码为什么出现警告