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.

What is the latch inference ?

Status
Not open for further replies.

abhineet22

Advanced Member level 4
Joined
Jan 25, 2005
Messages
105
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,296
Location
bangalore
Activity points
1,017
latch inference

hi
what is latch inference.

/Warning #1 - wrong forum. (klug)/
 

Re: latch inference

It is a process by which synthesizer infer a latech from your HDL source code, which sometimes is not true and you need to check your HDL code.
 

latch inference

there is at least one path ,through which ,the last result may be uncertain in combinational circuit
 

Re: latch inference

for exam, following process has latch inference.
===============================
process(a, sel)
begin
if sel = '1' then
y <= a;
end if; -- no else statement refers latch!
end process;
==================
if you want to design combinational ckt, then you must describe all cases of inputs.
In VHDL, not describing case is treated as hold state, hence synthesizing results a latch to store the state.
 

Re: latch inference

Hi

VHDL is derived from ADA which is very strict language without any space for
uncertainty.

So if you do not specify some condition for signal synthesizer assumes last signal state not some default value.

Boole equation for simple D-Latch is:

Q=(D & LE) | (Q & D) | (Q & !LE)

Q(LE==0)=Q & D | Q=Q
Q(LE==1)=D | Q & D=D

When LE signal is going from 1 to 0 D-latch keeps last state of Q.

If you keep last value of signal Q for some combinations of input signals you have parasite (unwanted) latch intstead combinational logic without feedback loops.
 

Re: latch inference

If you do not instantiate a latch from tool technology library, you need to code it for the tool to sense you intend latch storage. In many cases you would simply want to infer latch rather than using it directly from the supported device library because you would remain technology independent.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top