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.

Inferring latches?????

Status
Not open for further replies.

jeet_asic

Full Member level 3
Full Member level 3
Joined
Nov 18, 2011
Messages
156
Helped
20
Reputation
40
Reaction score
19
Trophy points
1,298
Location
Bangalore
Activity points
2,196
Why do we infer latch in any circuit ? at what conditions latches must be inferred so that it can helpful ? latches are level sensitive , so if i infer it between two flops having synchronous posedge clock , wht could b change in working of this circuit ? will it help in static timing analysis ????? pls explain why and what will happen ??
 

Latches are used in designs for specific purposes. Often, the use of latches is considered "bad practice" in a synchronous design (and synthesis tools will often give you warnings when latches are inferred).

However, latches are still important. As an example of where you might use one, consider a microprocessor. As it comes out of reset it samples the value on one of its input pins, and uses this to determine what external bus width to use. You can't do this with flip-flops, as there is no clock. A level sensitive latch is required.
Another use of latches is in interrupt controllers, where interrupts might be either edge-sensitive or level-sensitive.

Siskin
 
latches sometimes just "appear"? Transparent latches will appear if you write a combinational process or always block where an output is not assigned under all possible input conditions. In other words, it is possible for one of the inputs to change without affecting the output. In synthesis jargon, this is known as incomplete assignment.
 

Okie. If i take a circuit of two flops (posedge) , master n slave flops connected to synchronous clock having very very small ON time , so there can b case that data coming to slave flop doesn't come at posedge since ON time is very very small , so does it make sense to infer latch between them .
Latches are used in designs for specific purposes. Often, the use of latches is considered "bad practice" in a synchronous design (and synthesis tools will often give you warnings when latches are inferred).

However, latches are still important. As an example of where you might use one, consider a microprocessor. As it comes out of reset it samples the value on one of its input pins, and uses this to determine what external bus width to use. You can't do this with flip-flops, as there is no clock. A level sensitive latch is required.
Another use of latches is in interrupt controllers, where interrupts might be either edge-sensitive or level-sensitive.

Siskin
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top