Skip to content

Latest commit

 

History

History
124 lines (85 loc) · 3.95 KB

File metadata and controls

124 lines (85 loc) · 3.95 KB

Logic Gates

Construct truth tables for the following logic gates:

  • NOT
  • AND
  • OR
  • XOR
  • NAND
  • NOR

Types of gates

Name Truth Table Shape
NOT
AQ
01
10
AND
ABQ
000
010
100
111
OR
ABQ
000
011
101
111
XOR
ABQ
000
011
101
110
NAND
ABQ
001
011
101
110
NOR
ABQ
001
010
100
110

Flip Flops

A flip-flop is a type of circuit which contains two states is often used to store state information. It can only store one bit.

S-R Flip Flop

An S-R Flip Flop is a flip flop which has a set and reset function.

Truth Table

Anytime a flip-flop is set, Q goes high.

Anytime a flip-flop is reset, Q goes low.

S R Q !Q
0 0 Q !Q
1 0 1 0
0 1 0 1
1 1 X X

The 1,1 input has undetermined output.

D-type Flip Flop

Be familiar with the use of the edge-triggered D-type flip-flop as a memory unit.

A D-type flip flop uses an enabler to be able to easily manage the stored state. If the enabler is low then nothing will change in the state, however if the enable is high then the state man be modified.

Enabler X Q
0 0 Q
0 1 Q
1 0 0
1 1 1

Edge triggers

In a positive edge-triggered D-type flip flop, when the clock goes high then Q can change however if D changes when the clock is already high, then the value doesn't change.

Symbol for positive edge trigger

In a negative edge-triggered D-type flip-flop, when the clock is going low then Q can change however at any other time Q cannot change.

Symbol for negative edge trigger

Uses

A D-type flip flop can be used in:

  • counters
  • shift registers
  • other single memory units

Adders

Recognise and trace the logic of the circuits of a half-adder and a full-adder.

Half-adder

Construct the circuit for a half-adder.

A half adder can take in two bits and output the sum of them including the carry bit.

Half-adder

Truth Table for half-adder

A B C S
0 0 0 0
0 1 0 1
1 0 0 1
1 1 1 1

Full-adder

The full adder is an extension of the half adder as it allows for an input carry bit to be used.

Full-adder

Truth Table for full-adder

A B C in C out S
0 0 0 0 0
0 0 1 0 1
0 1 0 0 1
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

Additional Information

Knowledge of internal operation of this flip-flop is not required.