Revise Computingrevisecomputing.co.uk
Free student revisionSee questionsFor schoolsSchool enquiry
Free revisionSee questionsFor schoolsSchool enquiry
Knowledge/A Level/H446/01 Computer systems/Boolean Algebra/The logic associated with D type flip flops…

The logic associated with D type flip flops, half and full adders

1.4.3 Boolean Algebra

Boolean Algebra — Note 5 of 5

Candidates need to understand the purpose and principles of D type flip flops and how and where they are used in a computer. They should be able to recognise how they can be triggered by a clock pulse (see practice paper 2 for an example). Candidates are not expected to memorise the logic gates that make up a D-type flip flop. Candidates need to understand the purpose and function of an adder circuit, and the difference between a half and full adder. They should be able to recognise and draw the logic gates and truth tables for full and half adders.

What you need to know

Logic gates can be combined into circuits with useful jobs. Adders carry out binary addition inside the ALU, and D-type flip-flops store a single bit, forming the basis of registers and memory.

What to know

  • A full adder can be built from two half adders and an OR gate.

Key terms

Exam tipCommon mistake

Half adder

Adds two bits, giving a Sum and a Carry. Sum = A ⊻ B; Carry = A ∧ B.

Full adder

Adds two bits PLUS a carry in, giving a Sum and a Carry out. Sum = A ⊻ B ⊻ Cin; Cout = (A ∧ B) ∨ (Cin ∧ (A ⊻ B)).

  • Full adders can be chained together, with each carry out feeding the next carry in, to add multi-bit binary numbers.
  • Exam tip: You should be able to draw the logic gates and truth tables for half and full adders.
D-type flip-flop

A circuit that stores one bit. On each rising edge of the clock pulse, the output Q takes the value of the data input D, and keeps it until the next clock pulse.

  • D-type flip-flops are used to build registers and memory, and can be used as counters and frequency dividers.
  • You need to recognise how a flip-flop is triggered by the clock, but you do NOT need to memorise the logic gates inside a D-type flip-flop.

Code examples

Half adder and full adder truth tables
text
Half adder          Full adder
A B | C S           A B Cin | Cout S
0 0 | 0 0           0 0  0  |  0   0
0 1 | 0 1           0 0  1  |  0   1
1 0 | 0 1           0 1  0  |  0   1
1 1 | 1 0           0 1  1  |  1   0
                    1 0  0  |  0   1
                    1 0  1  |  1   0
                    1 1  0  |  1   0
                    1 1  1  |  1   1
← Previous noteUsing logic gate diagrams and truth tables1.4.3 Boolean AlgebraNext topic →The Data Protection Act 19981.5.1 Computing Related Legislation

Back to Boolean Algebra

Boolean Algebra

Note 5 of 5

  1. 1Define problems using Boolean logic
  2. 2Manipulate Boolean expressions, including the use of Karnaugh maps
  3. 3De Morgan's Laws, distribution, association, commutation and double negation
  4. 4Using logic gate diagrams and truth tables
  5. 5The logic associated with D type flip flops, half and full adders
Topic overview