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.

Modelling DFF with set and reset using normal DFF and logic gates

Status
Not open for further replies.

danda821

Full Member level 2
Joined
Jun 18, 2002
Messages
139
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,296
Activity points
1,083
Hi,

Is there any easy way to model DFF with set and reset using normal DFF and logic gates? Thanks.
 

Re: question about DFF

I have forgotten what set does, I think it sets the value of the flop to 1? The following should work.

Reset part should be easy. Attach the Q pin of the flop to the A pin of a two input AND gate. Pin B on the AND gate is your reset. If you attach the output the AND gate to the A pin of a two input OR gate, then the B pin of the OR gate can be your Set pin.
 

Re: question about DFF

What shahal mentions wont work as the effect of set or reset has to stay even after set/ reset is gone till the next data comes in. One way to do this for a synchronous reset/set is to do what shahal mentioned (OR for set and AND for reset) but do it with the D pin (input data) so that when CLK comes in and when SET/RESET is present either a zero or one would get clocked in instead of the actual data. There is no way though to modify it in such way you can set/reset asynchronously. Hope it helps.
-Ranga
 

Re: question about DFF

I am not sure I understand why this wont work, now that I think of it. If one input of an AND gate is set to zero. the output will always be zero regardless of what comes into the other input from the Q pin of the flop. Similar situation for the OR gatye also if one of the input is set to 1.
 

question about DFF

why not try this ? (provide that set is valid when set=1; reset is valid when reset=1)
make Q=D (/SET) (/RESET)+VCC(SET)(NOT RESET)+GND(/SET)(RESET)
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top