hi all...
according to my basic understanding, latches are level sensitive element and flip-flops are edge sensitive.. is it ok to use both in our design?
well careful design can infact make latch design more faster than flip flops,most of the amd processors use the technique of slack passing n borrowing ,which can be done in latch based design
if(not if - else) constructs and incomplete case statements synthesize to latches so avoid tem,pls do let me know if any other constructs wich synthesize to latches
If you care for performance (as is with microprocessors) latch is the best way. You don't idle your resource when it's possible to keep it cranking with data. However, the extraneous penalty you pay with a latch design is higher. What i mean is the effect of setup/skew is higher (not double) in latch based designs.
mostly flip-flop is used.
but for power saving or cost down(area) ,latch may be used.
for example,using gated clock to do power saving.
use latch in datapath to reduce area.
Latch you can use for clock gating and clock generation,
Rest of the design you can use with FF.
By some special techniques you can do timing analysis and DFT of mixed latch and FF based designs.