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.

convert a flipflop to latch

Status
Not open for further replies.

dalang92

Newbie level 5
Newbie level 5
Joined
Jun 27, 2010
Messages
10
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,335
Anyone can tell me how to convert a flipflop to a latch? thanks!
 

You can do it with a FF and a mux.
 

I am wondering that ff already consists of 2 latches. In other words, you can say ff is an edge triggered latch.
 

In digital design, you may not have the access to the internal nodes of a FF. In some of the standard cell libs, there is no latch available. Occasionally, you'll need To do the conversion.
 

What kind of flipflop?

If you have a SR flipflop, the common method is to ad a couple of aditional gates* in front that share a common hold input.

* AND-gates or OR-gates depends on the SR flipflop topology.
 

You can do it with a FF and a mux.

how to do it? can u give me some details?

---------- Post added at 00:26 ---------- Previous post was at 00:24 ----------

What kind of flipflop?

If you have a SR flipflop, the common method is to ad a couple of aditional gates* in front that share a common hold input.

* AND-gates or OR-gates depends on the SR flipflop topology.

thank you for the reply, how about other flip flop? like DFF or JK flipflop?
 

how to do it? can u give me some details?

How do I do it? Give it a try on this.

ff i_ff (.clk(!CLK), .d(D), .q(Q));
mux i_mux (.inp0(Q), .inp1(D), .out(OUT), .s(CLK));
 

Hi,

can we use only the mux

mux i_mux (.inp0(OUT), .inp1(D), .out(OUT), .s(CLK));

??

regards
 

How do I do it? Give it a try on this.

ff i_ff (.clk(!CLK), .d(D), .q(Q));
mux i_mux (.inp0(Q), .inp1(D), .out(OUT), .s(CLK));

to be honest
In the circuit from ebuddy the latch functionallity is comming from the mux.
The FF is more or less just in to fullfill your question,
but it isn't needed at all and you could also remove it

So for me this solution did not convert a FF into a Latch, you just add a latch to the FF.
;-)

regards
 

to be honest
In the circuit from ebuddy the latch functionallity is comming from the mux.
The FF is more or less just in to fullfill your question,
but it isn't needed at all and you could also remove it

So for me this solution did not convert a FF into a Latch, you just add a latch to the FF.
;-)

regards


Well, in the solution I proposed, the memory element is the FF, not the mux.

This kind of question is more an interview question than a practical question. The OP is asking for a latch from FF. So if the solution does not have FF, then the answer is most likely not the one expected by the interviewer.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top