02-04-2009 02:31 PM
I got the following warning during synthesis:
WARNING:Xst:1291 - FF/Latch <XXX_reg> is unconnected in block <uut_HDECODE>.
The online help says :
When this warning occurs, a register or latch in your design has been created,
but the output is never connected or the signals or logic it drives have been
trimmed. Check the XST log for messages such as the following to find signals
that have been trimmed out of the design:
"WARNING:Xst:646 - Signal
<my_sig> is assigned but never used."
But I don't have such a warning, and I have examined my codes very carefully to make sure this register is assigned and used. This signal is used to assgin values to other signals. My design will not work without it. How can I solve this problem? My ISE version is 8.1.02i.
This signal is simply a pulse. The codes are like:
always @ (posedge CLK) begin
if (rst) XXX_reg <=1'b0;
else begin
case (addr)
5: XXX_reg <=1'b1;
10: XXX_reg <=1'b0;
endcase
end
end
assign XXX = XXX_reg;
Thanks.
02-05-2009 09:12 AM
So exactly which signal is it complaining about? XXX or XXX_reg?
-a
02-05-2009 02:17 PM
02-06-2009 04:32 PM
Sounds like the tools absorbed XXX_reg into XXX, which makes sense, since the assignment XXX = XXX_reg is redundant.
Why did you code it that way?
-a
02-07-2009 01:15 PM
XST does not know what value to assign to xxx_reg when addr is a different value than 5 or 10. So a latch is created to hold the previous value of xxx_reg. Assign a default value before the case statement, or assign the default value at the end of the case statement (just before "endcase").
-Dave Pollum
02-09-2009 05:25 AM
02-09-2009 05:29 AM
02-09-2009 01:06 PM
dpollum238 wrote:XST does not know what value to assign to xxx_reg when addr is a different value than 5 or 10. So a latch is created to hold the previous value of xxx_reg. Assign a default value before the case statement, or assign the default value at the end of the case statement (just before "endcase").
-Dave Pollum
He described a synchronous process, so no default case is required.
-a