How Do D-Type Flip-Flops and Full Adders Work in Digital Circuits?

  • Thread starter Thread starter Physicist3
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around the functioning of D-type flip-flops and full adders in digital circuits, exploring their operational principles, feedback mechanisms, and applications in counting and addition. Participants seek clarification on specific concepts and mechanisms related to these components.

Discussion Character

  • Exploratory
  • Technical explanation
  • Conceptual clarification
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • Some participants inquire whether a D-type flip-flop stores the value at 'd' and sends it to 'q' at the next clock edge, with one participant affirming this process involves latching the data bit.
  • There is a question regarding the purpose of the carry-in (Cin) in a full adder, with some suggesting it comes from a previous full adder, particularly when adding binary numbers.
  • Feedback loops in D-type flip-flops are discussed, with one participant explaining that feedback is necessary to maintain memory and prevent output changes with every input change.
  • Another participant introduces the concept of "carry lookahead" circuitry, which can optimize carry propagation in adders, contrasting it with the simpler "ripple carry" method.
  • Clarifications are sought on the term 'latched' and its implications for understanding divide by 2 counters, with references to specific latch designs like the cross-coupled NAND latch.
  • One participant describes how a ripple counter operates by feeding the output of one flip-flop into the clock input of the next, resulting in a division of the clock frequency.

Areas of Agreement / Disagreement

Participants express various viewpoints and seek clarification on multiple aspects of D-type flip-flops and full adders, indicating that there is no consensus on all points discussed. Some concepts are affirmed while others remain contested or unclear.

Contextual Notes

Participants reference specific designs and configurations of flip-flops and adders, highlighting the complexity of feedback mechanisms and the differences between technologies like CMOS and TTL. Limitations in understanding certain terms and mechanisms are acknowledged.

Who May Find This Useful

This discussion may be useful for students and practitioners in electronics and digital circuit design, particularly those interested in understanding the fundamentals of flip-flops and adders, as well as their applications in counting and memory systems.

Physicist3
Messages
103
Reaction score
0
Hi guys, just wandering if you could help me clear some things up regarding full adders and d-type flipflops?

Firstly, regarding a d-type flip-flop, does the flipflop store the value which is received at 'd' and then send this to the output 'q' at the next available time (e.g. next rising clock edge or falling clock edge if negative triggered)?
With a full adder, i understand that if two numbers A and B (1 and 1) are added, the binary output will be 10 and therefore carry (out) will = 1 and Sum(s) = 0, but what is the Cin (carry In) for? Is this from a previous full adder?

Thanks :)
 
Engineering news on Phys.org
Sorry to add but what are the feedback loops for on a D-type flip-flop? :)
 
Physicist3 said:
Hi guys, just wandering if you could help me clear some things up regarding full adders and d-type flipflops?

Firstly, regarding a d-type flip-flop, does the flipflop store the value which is received at 'd' and then send this to the output 'q' at the next available time (e.g. next rising clock edge or falling clock edge if negative triggered)?
The data bit at the D input is latched and clocked through to the output on the clock edge (whether rising or falling depends on which D FF topology you are using).

Physicist3 said:
With a full adder, i understand that if two numbers A and B (1 and 1) are added, the binary output will be 10 and therefore carry (out) will = 1 and Sum(s) = 0, but what is the Cin (carry In) for? Is this from a previous full adder?

Thanks :)
Yes, the carry in would be from the previous bit in the adder. If it is bit 0 in the adder, the Cin would always be 0.

Physicist3 said:
Sorry to add but what are the feedback loops for on a D-type flip-flop? :)
Feedback us used to latch the data. Without feedback and latching, whenever the input data changed, the output would change. You need the feedback to have "memory". :smile:
 
There are funny refinements with adders, especially circuitry called "carry lookahead" (Web search keywords), which shortens the carry chain by avoiding the carry signal to pass through every bit sequentially. Though, the "ripple carry" is perfectly possible and suffices for understanding.

A D flip-flop memorizes always the value the D input had when its clock input told to sample D, and transmits this value to Q with no intentional delay - that is, a propagation delay is unavoidable but does not result from the clock.

This opposes to a latch, which transmits every change in D when the clock has one level, and stops changing when the clock has the other level.

Feedback is used at D flip-flops to make sequential machines. For instance, connecting D to the inverted Q let's the output change at every clock period, dividing the frequency by 2. This wouldn't work with a latch. (Much) more refined feedback is used, for instance with 4 flip-flops to make a counter by 10 or 11 depending on one input, which is used at PLL. Or to create PN sequences, or to make the sequencer or a microprocessor... Then the feedback logic can be seriously complicated. In difficult cases this logi is created by a software and realized with suboptimum but regular building blocs like a programmable cell array.

In CMOS technology only, a D flip-flop consists of two D latches with opposite clocks. This design is race-safe in CMOS, not in other technologies. TTL flip-flops had a completely different design. Race-safe design is very interesting but difficult.
 
Could someone please explain what the it means by 'latched' and how this works? I am trying to understand how divide by 2 counters work and its the feedback bit that's confusing me :) Thanks
 
Physicist3 said:
Could someone please explain what the it means by 'latched' and how this works? I am trying to understand how divide by 2 counters work and its the feedback bit that's confusing me :) Thanks

The simplest latch is a "Cross-Coupled NAND Latch" (or you can make it with NOR gates alternately). Have a look at the animation at this Wikipedia page (part way down on the right, showing the operation of the cross-coupled NOR latch:

http://en.wikipedia.org/wiki/Flip-flop_(electronics )

This structure is the building block for memories and FFs. You add extra stuff around it in order to implement different kinds of FFs with different features (like clear, set, etc.)

For a simple ripple counter, just feed the output of on FF into the clock input of the next. The output of the first FF changes half as fast as its input clock, so the clock for FF2 is half as fast as the clock for FF1. That is how you get slower and slower square waves out of each stage of the ripple counter, and how it counts through the range of binary numbers at the FF outputs.

http://www.ee.usyd.edu.au/tutorials/digital_tutorial/part2/pics/count02.jpg
 

Attachments

  • Ripple Counter.jpg
    Ripple Counter.jpg
    38.8 KB · Views: 2,862
Last edited by a moderator:

Similar threads

Replies
6
Views
5K
  • · Replies 3 ·
Replies
3
Views
13K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 7 ·
Replies
7
Views
7K
  • · Replies 2 ·
Replies
2
Views
18K
  • · Replies 2 ·
Replies
2
Views
31K
  • · Replies 31 ·
2
Replies
31
Views
4K
Replies
22
Views
6K
  • · Replies 1 ·
Replies
1
Views
3K