Chapter 5
Chapter 5
Chapter 5
Computer system architecture
Computer system architecture is the discipline that defines the conceptual structure and
functional behavior of a computer system, determining the overall organization, the
attributes of the components parts, and how these parts are combined. It involves
instruction set architecture design, microarchitecture design, logic design and
implementation.
Hierarchical structuring of a computer system Architecture
Actually a computer system composed of many layers of software and hardware. But for
simplicity we see the computer in Abstract way. This avoids details and makes the user
to concern about the outer layer that is easy for the user to communicate with the
computer.
Generally modern computers consist of multi-layers or levels. The following figure
shows the different levels.
1
Introduction to computer science by L 2015
In the hierarchical structuring of a computer the logic gate level is above the device level.
These logical elements are primary components of the computer hardware. Given a desired
function, Boolean algebra can be applied to develop a simplified implementation of that
function using interconnection of logical gates.
A gate is an electronic circuit that produces an output signal that is a simple Boolean
operation on its input signals. The basic gates used in digital logic are AND, OR, NOT,
NAND, and NOR. We had also XOR gate for defining Boolean algebra with other gates.
Each gate is defined in three ways: graphical symbols, algebraic notation, and truth table. A
truth table is a table that shows the output of a logical function for all possible
combinations of input values.
Each gate has one/two or more inputs and only one-output signals. The signals are either 0
or 1. When the values at the input are changed, the correct output signal appear almost
instantaneously, delayed by the propagation time of signals through the gate (known as
gate delay)
It is a mathematical abstraction of a physical device to perform the function of a truth table
2
Introduction to computer science by L 2015
Operator Precedence
Parentheses
NOT
AND
OR
3
Introduction to computer science by L 2015
Boolean algebra
The digital circuitry in digital computers and other digital systems is designed, and its
behavior is analyzed, with the use of mathematical discipline known as Boolean algebra.
The name is in honor of an English mathematician George Boole, who proposed the basic
principles of this algebra in 1854.
This Boolean algebra becomes very convenient in two areas:
Analysis: It is an economical way of describing the function of digital circuitry.
Design: given a desired function, Boolean algebra can be applied to develop a
simplified implementation that function.
As any algebra it make use of logical variables, which will have a value true or false (1 or
0), and logical operations.
There are 3 basic Boolean operators NOT (-), AND (.), OR (+).
Complex logic circuits can be constructed using the basic logic circuits. Any logic circuit
can be represented by a Boolean function and vice versa. Generally before constructing any
logical circuit it has to be simplified based on the rules of Boolean equations in order to
minimize the number of required logical gates.
Rules of the Boolean (equation) operators.
x. 0 =0 x+1=1 Null
x. x =x x+x=x Idempotent
x. x’ =0 x + x’=1 Inverse
x. 1 =x x +o =x Identity
x(x +y)=x x + x. y =x Absorption
x .y =y .x x +y = y +x Commutative
4
Introduction to computer science by L 2015
To construct the logic circuit of a Boolean equation first we have to simplify the Boolean
function using the rules of the operators (theorems)
5
Introduction to computer science by L 2015
How to construct Logic Circuit and truth table from Boolean Expression
Example: Boolean Expression
F = x + y’ z
Logic Circuit
x
F
y
z
Truth Table All possible combinations of input variables
X Y Z F
0 0 0 0
0 0 1 1
0 1 0 0
0 1 1 0
1 0 0 1
1 0 1 1
1 1 0 1
1 1 1 1
6
Introduction to computer science by L 2015
Example 2
Example 3
Example 4
7
Introduction to computer science by L 2015
Example 5
Example 6
Construct the Boolean function for the following truth table:
A B C F
0 0 0 0
0 0 1 0
0 1 0 1
0 1 1 1
1 0 0 0
1 0 1 0
1 1 0 1
1 1 1 0
Solution: - SOP considers row 3, 4, and 7.
F (A, B, C) =ABC + ABC +ABC or
POS considers row 1, 2, 5, 6 and 8.
F (A, B, C) = (A+B+C) (A+B+C) (A+B+C) (A+B+C) (A+ B+C)
To construct the logic circuit first simplify the given Boolean function and construct the
network as required using the Boolean function.
Exercise: which method SOP or POS require less number of logical gate to construct logic
circuit?
8
Introduction to computer science by L 2015
Exercise
1. Construct a logical circuit and logical functions using the following truth table
A B F
0 0 1
0 1 0
1 0 1
1 1 0
4. Construct the logic circuit and truth table for the following logic expression.
Y = ABCD + ABCD + ABCD and
L = CBA + CBA + CBA + CBA + CBA
The END
DO WELL FOR
GET WELL