#1楼主:综合时的问题
文章发表于:2008-10-14 09:55
module LS1231(res,CLR,A,B,K,M,Q,R);
input res,CLR,A,B,K,M;
output Q,R;
reg Q,R;
integer J;
parameter SJ3=4E6;
always @(posedge res or negedge A)
begin
if(res)
begin
J="1"'b0;
Q="1"'b0;
R="1"'b0;
end
else if(CLR==1 && A==0)
begin
Q="1"'b1;
R="1"'b0;
#(SJ3+J*2.56E5) Q="1"'b0;
R="1"'b1;
end
end
always @(A)
begin
if(K==1)
begin
J="J"+1;
end
else if(M==1 && J>=1)
begin
J="J-1";
end
end
endmodule
在用 Synplify仿真时有如下警告
@W: CL159 :"d:\Actelprj\12\hdl\LS123.v":3:15:3:15|Input M is unused
@W: CL159 :"d:\Actelprj\12\hdl\LS123.v":3:19:3:19|Input K is unused
在程序中A,K都是输入的管脚,但在分配引脚是M,K出不来,不知道是什么原因,请各位大虾帮忙,如何解决,谢了先.