HND in Computing and Software Engineering: Lesson 03 - Combinational Circuits
HND in Computing and Software Engineering: Lesson 03 - Combinational Circuits
Engineering
SEC4101: Fundamentals in Computer Systems
Level: 4
Credit Value: 10
2 10/13/2020
Unit Learning Outcomes
3 10/13/2020
Reference Materials
Williams, R., Computer Systems Architecture - A Networking Approach,
Prentice Hall (2nd Ed), 2006.
Clements, A., The Principles of Computer Hardware, Oxford University
Press (4th Ed), 2006.
Tanenbaum, Andrew, S., Modern Operating Systems, Prentice Hall (4th Ed),
2014..
4 10/13/2020
Assessment Strategy
Examination: Learning Outcome 1, & 2.
Exam will cover 70% of the total marks for the module.
Exam which contain multiple choice and essay questions.
5 10/13/2020
Learning Outcome 01
6 10/13/2020
Integrated Circuits (ICs)
An Integrated Circuit is a small silicon semiconductor
crystal(chip), containing the electronic components for
digital gates.
Various gates are interconnected inside the chip to form the
required circuits.
Chip is mounted in a ceramic or plastic container and
connections are welded by thin gold wires to the external
pins to form the integrated circuit.
7
Integrated Circuits
8
Integrated Circuits (ICs)
The IC pins provide access to the input and output terminals of individual
gates as well as power supply to the whole device.
9
Integrated Circuits (Contd.)
ICs are roughly classified based on the number of gates they contain:
10
10
Integrated Circuits (Contd.)
LSI (Large Scale Integrated) circuit: has 200 to few thousand gates
in a single package. They include digital systems such as processors,
memory chips and programmable modules.
11
Combinational Circuits
A connected arrangement of logic gates with a set of inputs
and outputs
At any given time, the binary values of the outputs are a
function of the binary combination of the inputs.
This circuits are employed in digital computers for generating
binary control decisions and for providing digital components
required for data processing.
12
Combinational Circuits
13
Designing Combinational Circuits
In general we have to do following steps:
1. Problem description
2. Input/output of the circuit
3. Define truth table
4. Simplification for each output
5. Draw the circuit
14
Combinational Circuits
To demonstrate the design of combinational circuits, two simple
arithmetic circuits can be given
• Half-Adder
• Full-Adder
• Half-Adder
A combinational circuit that performs the arithmetic addition of two
bits is called half adder.
15
Combinational Circuits
– Half-Adder
Input variables of the Half-Adder
• Augend and addend bits.
The Output variables
• sum and carry
It is necessary to specify the two output variables because sum of 1 +1 is
binary 10. which is two digits.
116
16
Exclusive-OR
The XOR ( exclusive-OR ) gate acts in the same way as the logical
"either/or."
The output is "true" if either, but not both, of the inputs are "true."
The output is "false" if both inputs are "false" or if both inputs are "true."
Another way of looking at this circuit is to observe that the output is 1 if
the inputs are different, but 0 if the inputs are the same.
17
Exclusive-OR
0 0 0
0 1 1
1 0 1
1 1 0
18
AND Gate
INPUT
INPUT OUTPUT
OUTPUT
A F = A.B
B
A
A B
B F=A.B
F=A.B
Inputs Output
False as one
0 0 0 or more
A B inputs are
0 1 0 false
1 0 0
True as all
1 1 1 inputs are true
19
Combinational Circuits: Half Adder
Half Adder : The sum is XOR operation and the carry an
AND
Sum= A’B+AB’
A+ B
Carry=AB
Figure 4-23 (a) Truth table for 1 bit addition. (b) A circuit for a half adder
20
Combinational Circuits – Full Adder
1. A full adder is a combinational circuit that forms the
arithmetic sum of three input bits.
2. It consists three inputs and two outputs.
3. Define a truth table.
Input Output
x y z C S x
y
0 0 0 0 0 c
0 0 1 0 1 z
0 1 0 0 1
0 1 1 1 0 s
1 0 0 0 1
1 0 1 1 0
1 1 0 1 0
1 1 1 1 1
23
Maps of Full-Adder
24
General Digital System Diagram
25
Synchronous and Asynchronous Sequential Logic
Synchronous
• the timing of all state transitions is controlled by a common clock
• changes in all variables occur simultaneously
Asynchronous
• state transitions occur independently of any clock and normally
dependent on the timing of transitions in the input variables
• changes in more than one output do not necessarily occur
simultaneously
26
226
Synchronous and Asynchronous Sequential Logic
(Contd.)
Clock
• A clock signal is a square wave of fixed frequency Often, transitions
will occur on one of the edges of clock pulses
• Clock signals are used to maintain the desired timing in the circuits.
• Clock circuits emit pulse trains of precise repetition interval and width.
• Sometimes it is necessary to have one clock pulse train trail another by a
fixed time.
• A circuit with the appropriate delay may be inserted to achieve the
desired phase shift
27
Clock Signals
28
Flip-Flops (Latch)
A flip-flop or latch is a circuit that has two stable states
and can be used to store state information.
This circuit can be made to change state by signals
applied to one or more control inputs and will have one or
two outputs
Flip-flops are the fundamental element of sequential
circuits.
• (gates are the fundamental element for combinational circuits)
Flip-flops is a binary cell capable of storing one bit
information and basic storage element in sequential logic
29
Flip-Flops
Flip-flops have two outputs
• One for the normal value (Q)
• One for the complement value the bit stored it (Q).
Flip-flops can be either simple (transparent or asynchronous)
or clocked (synchronous)
the transparent ones are commonly called latches.[
The word latch is mainly used for storage elements
The clocked devices are described as flip-flops.
30
Flip-Flops(Contd.)
Usage: Flip-flops and latches are a fundamental building block of digital
electronics systems used in computers, communications, and many other
types of systems.
31
S-R Flip-Flops
A RS-flip-flop is the simplest possible memory element.
It is constructed by feeding the outputs of two NOR gates back to the
other NOR gates input.
32
S-R Flip-Flops
S=0 and R=0: Assume the flip flop is set (Q=0 and Q=1), then the
output of the top NOR gate remains at Q=1 and the bottom NOR gate
stays at Q=0.
Similarly, when the flip flop is in a reset state (Q=1 and Q=0), it will
remain there with this input combination.
Therefore, with inputs S=0 and R=0, the flip flop remains in its state.
33
S-R Flip-Flops
S=0 and R=1: Similar to the arguments above, the outputs become Q=0
and Q=1.
We say that the flip flop is reset.
34
34
S-R Flip-Flops
S=0 and R=0: Assume the flip flop is set (Q=0 and Q=1), then the
output of the top NOR gate remains at Q=1 and the bottom NOR gate
stays at Q'=0.
Similarly, when the flipflop is in a reset state (Q=1 and Q'=0), it will
remain there with this input combination.
Therefore, with inputs S=0 and R=0, the flipflop remains in its state.
S=1 and R=1: This input combination must be avoided.
35