Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

why need to avoid using any latches in my design?

Status
Not open for further replies.

hgby2209

Full Member level 2
Joined
Mar 7, 2003
Messages
134
Helped
8
Reputation
16
Reaction score
8
Trophy points
1,298
Activity points
1,105
why avoid latches

RMM 5.5.2 avoid using any latches in your design.
Can anyone tell me why need to avoid latches?
 

latch based design

Why not!!! If u have 1000 gates why use 100 for latches if u dont nead them?!
 

how to avoid latches in your design

latches do harm to STA/DFT and so on.
 

why latches are avoided

The latch will add the difficulty of your control ability on the design.
 

latch avoid

The Main Problem with latches is the STA/DFT incompatibility as "yeewang" said. Also glitches in the enable pin of the latches cause improper functionaing of the system. What RMM says is to avoid creating latches UNKNOWINGLY by defining a "else" condition for an if statement .. and default case for a CASE statement.

Latches on the other side takes less power,area compaerd to FFs
 

why to avoid latches

U cant do DFT/Scan in latches . also latches led to combinational feed back in your design , which also can led to unavoidable oscillations in circuit , causing your logic into TOSS.
 

latch loop sta

if the design is not aware of the power, flip-flop is prefered. and almost all the latchs could be replaced by flip-flops without changing the function.
 

advantages of using latches in design

But if I really want to use latches in my design, it's no way to do DFT & STA?
 

problems with latches in sta

I don't think this suggestion is always correct.Sometimes,you can use latch to save the area.
 

why latch should be transparent during dft

i think you can do it, but where you can use & where you cann't must be careful.
i don't use it, i'm afraid.
i have seen make 1 dff with 2 latch, but it's not asic.
 

why to avoid latches for dft

everything depends.
a good eng. should have the ability to analyse the situations and decide what to do....
 

what is cycle stealing in latches

But latches occupy less area compared to FF
 

using latches in design

latches are wondrous things, and are the solution to good designs, compact chips, and peace on earth. Three clear advantages of latches are:
 1.Considerably smaller than D-type flip-flops
 2.Provide anticipation of the data (for example, the decode of a latched address can begin before the latch is closed)
 3.Lower power, compared with continuously clocked flip-flops.

If you do insist on a latch-based design, watch out for the following:
 1.A glitch-free enable—remember that glitches on the enable can corrupt the latch’s data. If you are synthesizing the code to create the enable, consider seriously the direct instantiation of the gate that drives the enable to the latch. Don’t trust optimized equations!
 2.Data input hold time—ensure that the data is held for long enough as you close the latch. If your latch enable is derived from a clock, the latch will lag the clock, requiring the latch’s D inputs to be held valid after the clock edge
 

avoiding latches using if else statements

Hello,
I have a critical path in my design. The combinatorial logic between two flipflops can not be reduced further to avoid setup violations. Any suggestions on this?
 

why are latches avoided

s0shinde said:
Hello,
I have a critical path in my design. The combinatorial logic between two flipflops can not be reduced further to avoid setup violations. Any suggestions on this?

Hi S0shinde,

You have few options here:
1. slow down the clock frequency
2. thighen your synthesis constrain to allow better optimization
3. use pipelining/ flattern in your design
4. change the design architecture/structure


regards,
always@smart
 

why to avoid latch

On top of wufengbo's point's:
latch will relay the signal changes in its transparent phase. From the equation of P = C*V^2*f. It might burn more power (not necessary to be true)

You can use LSSD to make the scan possible for latch.

s0shinde: You are asking for a solution for the latch-base cycle stealing... pushing the cycle time across the latches' bounadries... please refer to your another post... I put some suggestions over there.
 

latches and its use in digital design

One of the main reasons that latches are not used in designs is due to combinational loop back which creates problems in simulation and results in synthesis and simulation mismatches. But if proper care is taken latches can be used.
 

xilinx avoid latch

The latch has the disadvantage of being "trnansparent" till the clock makes him latch the value of the input.
The FF samples the input on the risinf or falling edge of the clock.
 

why avoid latch

in my opion

latch is something that prevent reusablity of the design.

also only very timing challenging job needs latch, something that is really hard to control and needs much attention.
 

avoid latch based design

In synchronous digital design, latch can generate asynchronous circuits that lead to unstable or meta-stable state.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top