On Tue, 13 Mar 2007 13:27:20 +0100, "Michael Jørgensen"
<> wrote:
>"KJ" <> wrote in message
>news:QPcHh.3095$ ...
....
>> Also, if the target device does have a hard latch as a resource that can
>> be used then the use of latches is just fine also.
>>
>
>So, just making sure I understand this. The synthesis tool may or may not
>choose to generate a "latch inference" warning, depending on whether a latch
>is natively supported by the target device.
>
>And the reason for this warning is that it is not possible to reliably
>implement a latch, unless the target device has built-in support for it.
>
>Is the above correct?
I agree 100%. The only caveat is *when* you get a warning;
synthesis proceeds in at least two main phases - inference of
functions from RTL, and mapping of those functions on to target
hardware. It may be only in the latter phase that a warning
should appear, since the RTL latch template is perfectly well
defined and, at the stage when it's making these inferences,
the tool doesn't necessarily know anything about the target.
FPGAs provide a classic example of this problem. Many FPGAs
have real latch structures on I/O pads, but can't build
useful latches in the fabric. Presumably, a synthesis tool
must happily accept *all* latches at RTL-inference time,
because it *may* be possible to map any or all of those
latches on to I/O blocks; this mapping can be determined
only much later in the synthesis process.
You would certainly expect any tool to report the latches
and FFs it finds, though.
--
Jonathan Bromley, Consultant
DOULOS - Developing Design Know-how
VHDL * Verilog * SystemC * e * Perl * Tcl/Tk * Project Services
Doulos Ltd., 22 Market Place, Ringwood, BH24 1AW, UK
http://www.MYCOMPANY.com
The contents of this message may contain personal views which
are not the views of Doulos Ltd., unless specifically stated.