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.

Implementing a Latch using a Flip Flop ???

Status
Not open for further replies.

lakshman.ar

Member level 5
Joined
Nov 29, 2006
Messages
87
Helped
12
Reputation
24
Reaction score
4
Trophy points
1,288
Location
Bangalore
Activity points
1,849
Hi every1,
Can any1 provide me a solution to implement a Latch ( D-Latch) using a Flip-Flop ( DFF).

any combinational gates can be used along with the DFF to implement the functionality of a latch

WBR
lakshman
 

what for u need this conversation,
 

this is simple just put an AND gate at the DFF's preset signal and "and " the input signal and clock signal together.
Then put another and gate at the clear signal pin, "and" the invert input signal and also the clock signal.
This assume that, the control signal is active high and we use total of 3 gate: 2 and gates and 1 inverter.

But as phutanesv said, what for we need this conversation.
 

an interview question.

so now which is the enable signal, still the clk ? or its preset or clear ?
 

enable signal still the preset and also the clear signal just that we are no using the clk and input pin.
Mean we just use the preset and clear pin with the help of and gate and not gate
 
Din = E'Q+INE, Pr = (E'Q+INE)', Cr = E'Q+INE, clock = E.
where Din- input to D-flipflop
E- Enable input,
Q-present state of D-flipflop
IN-input signal
Pr-preset input
Cr-clear input
 

I think srinivas_kamana design gives a stable result eleimanting glitches during enable transition. :)
 

how about this?
1. E = CLK'
2. LAT_Q= MUX(IN,DFF_Q),
(select by CLK, if CLK=1'b1, LAT_Q = IN, else LAQ_Q=DFF_Q)
3. LAT_IN = DFF_IN,
 

Whether this will work?

Data to D pin of the FF.

Data -> buf -> Input A of XOR
Data -> buf -> not -> not -> not -> not -> Input B of XOR


Output of XOR -> Input A of AND

Clk -> Input B of AND

Output of AND -> CLK pin of FF

regards,
Arun
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top