0% found this document useful (0 votes)
3 views56 pages

CH1 - Computer Organization

The document provides an overview of computer organization, design, and architecture, detailing the roles of hardware components and their interconnections. It covers essential concepts in digital logic circuits, Boolean algebra, and simplification techniques like Karnaugh maps. Additionally, it introduces combinational circuits and basic digital arithmetic circuits such as half-adders and full-adders.

Uploaded by

abel89935024
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views56 pages

CH1 - Computer Organization

The document provides an overview of computer organization, design, and architecture, detailing the roles of hardware components and their interconnections. It covers essential concepts in digital logic circuits, Boolean algebra, and simplification techniques like Karnaugh maps. Additionally, it introduces combinational circuits and basic digital arithmetic circuits such as half-adders and full-adders.

Uploaded by

abel89935024
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 56

Computer Organization

&
Architecture
1.1 Introduction

➢ Computer Organization, Computer Design, Computer Architecture

➢ Computer Organization :

✓ is concerned with the way the hardware computer operate and the way they are
connected together to form the computer system.

✓ The various components are assumed to be in place and the task is to investigate the
organizational structure to verify that the computer parts operate as intended.
CONT’D…

➢ Computer Design:

✓ is concerned with the hardware design of the computer.

✓ Once the computer specification is formulated, it is the task of the designer to develop
hardware for the system.

✓ It is concerned with the determination of what hardware should be used and how the parts
should be connected.

✓ It is the aspect of computer hardware and sometimes referred to as computer implementation.


CONT’D…

➢ Computer Architecture:

✓ is concerned with the structure and behavior of the computer as seen by the user.

✓ It includes the information formats, the instruction set and techniques for addressing memory.
1.2 Digital Logic Circuits

➢ This chapter introduces the fundamental knowledge needed for the design of digital systems
constructed with the individual gates and flip – flops.

➢ It covers Boolean algebra, combinational circuits and sequential circuits.

➢ This provides the necessary background for understanding the digital circuits to be presented.
1.3 Digital Computers

➢ Digital computers use the binary number system, which has two digits, 0 and 1

➢ A binary digit is called a bit.

➢ Bits are grouped together as bytes and words to form some type of representation within
the computer.

➢ A sequence of instructions for the computer is known as program.

➢ Block diagram of a digital computer as shown fig 1.1


CONT’D…

Fig 1.1
CONT’D…

➢ The hardware of the computer is usually divided into three major parts.

➢ The Central processing Unit (CPU): contains an arithmetic and logic unit for
manipulating data, a number of registers for storing data, and control circuits for fetching
and executing instructions.

➢ The memory of a computer; contains storage for instructions and data, it is called a
Random Access Memory (RAM) ,the CPU can access any location in memory at random
and retrieve the binary information within a fixed interval of time.
CONT’D…

➢ The input and output processor: contains electronic circuit for communication and
controlling the transfer of information between the computer and the outside world.

➢ The input and output device: connected to the computer include keyboards, printers,
terminals, magnetic disk drives and other communication devices.
1.4 Logic Gates

➢ Gates are the fundamental building block of all digital logic circuits.

➢ Logical functions are implemented by the interconnection of gates.

➢ Binary information is represented in digital computers using electrical signals.

➢ These signals can be represented by voltage to specify one of two possible states.

✓ For example, if a wire contains a signal of 3 volts, it is considered to contain the digital value 1.
CONT’D…

➢ Likewise, if the wire contains 1.5 volts, then it represents the digital value 0.

➢ The manipulation of binary information in a computer is done using logic circuits called gates.

Examples: AND, OR, Inverter, Buffer, NAND, NOR, X-OR, X-NOR

➢ Each gate is defined in three ways: graphic symbol, algebraic notation/function, and truth
table
Fig 1.2
A. AND Gate

The truth table of


AND gate

B. OR Gate
A
X=A+B
B

The truth table of OR


gate
C. Inverter

X = A’

D. Buffer

X=A

E. NAND
F. NOR
A

G. Exclusive-OR (XOR)

A
x = A⊕ B
B or
x=A’B+AB’

H. Exclusive-NOR

X = (A⊕ B)’
1.5 Boolean Algebra

➢ Boolean algebra is an algebra that deals with binary variables and logic operations.

➢ Variables are designated by letters such as A, B, x, and y.

➢ A Boolean function can be expressed algebraically with binary variables, the logic
operation symbols, parentheses and equal sign, and it can represent by: truth table,
logic diagram & algebraic expression.
CONT’D…

➢ The result of a Boolean function is either 0 or 1.

➢ Example: Consider the following Boolean function: F = xy + z‘

➢ The function F is equal to 1 if either both x and y are 1 or z' is 1; F is equal to 0


otherwise.

➢ NB: z' = 1 is equivalent to saying z = 0 since z' is the complement of z.


1.6 Basic Identities of Boolean algebra

(1) x+0=x (2) x * 0 = 0


(3) x+1=1 (4) x * 1 = x
(5) x+x=x (6) x * x = x
(7) x + x' = 1 (8) x * x' = 0
(9) x+y=y+x (10) xy = yx
(11) x + (y + z) = (x + y) + z (12) x(yz) = (xy)z
(13) x(y + z) = xy + xz (14) x + yz = (x + y)(x + z)
(15) (x + y)' = x'y' (16) (xy)' = x' + y‘
(17) (x')' = x
1.7 De-Morgan’s Theorem

➢ This theorem is very important in dealing with NOR and NAND gates.

➢ It states that a NOR gate that performs the (x+y)’ function is equivalent to the function x’y’.

➢ Similarly a NAND function (xy)’ can be expressed by (x’+y’).

➢ For this reason the NOR and NAND gates have two distinct graphic symbols.
OR invert invert AND

➢ The invert AND symbol for the NOR gate follows from the De-Morgan’s thermo and from the convention that
small circles denote complementation.
➢ Similarly the NAND gates have two distinct symbols as shown below.

AND-invert
x
y
z

Invert OR
x
Y
z
1.8 Complement of a function
➢ The complement of a function F when expressed in a truth table is obtained by interchanging 1’s

and 0’s in the values of F in the truth table.

➢ When the function is expressed in algebraic form the complement of the function can be derived

by means of De-Morgan’s Theorem.

➢ The general form of DE Morgan's theorem can be expressed as follows:

(x1+x2+x3+….Xn) = x1’x2’x3’…xn’

(x1x2x3…xn)’ =x1’+x2’+x3’+…+xn’
CONT’D…

➢ By changing all OR operation to AND operation and all OR operations and then complementing

each individual letter variable we can derive a simple procedure for obtaining the complement of

an algebraic expression.

Example: F = AB+C’D’+B’D F’=(A’+B’)(C+D)(B+D’)

➢ NB: The complement expression is obtained by interchanging AND and OR operations and

complementing each individual.


1.9 Map Simplification

➢ In addition to using Boolean algebra to simplify a Boolean function, we use map

simplification techniques/methods.

➢ The map method is also known as the Karnaugh map or K-map.

➢ Each combination of the variables in a truth table is called a min-term.

➢ There are 2n min-terms for a function of n variables.

➢ The Boolean algebra can be simplified using the following two methods:

1. Sum-of- Products simplifications (SOP)

2. Product-of-sum simplifications (POS)


Sum-of-Products Simplification (SOP)

➢ A Boolean function represented by a truth table is plotted into the map by inserting 1's into those
squares where the function is 1.

➢ Boolean functions can then be simplified by identifying adjacent squares in the Karnaugh map that
contain a 1.

➢ A square is considered adjacent to another square if it is next to, above, or below it.

➢ In addition, squares at the extreme ends of the same horizontal row are also considered adjacent.

➢ The same applies to the top and bottom squares of a column.


CONT’D…
➢ The objective is to identify adjacent squares containing 1's and group them together.

➢ Groups must contain a number of squares that is an integral power of 2.

➢ Groups of combined adjacent squares may share one or more squares with one or more groups.

➢ Each group of squares represents an algebraic term, and the OR of those terms gives the
simplified algebraic expression for the function.

➢ To find the most simplified algebraic expression, the goal of map simplification is to identify the least
number of groups with the largest number of members.
CONT’D…

Example: We will simplify the Boolean function. F (A,B,C) = Σ(3,4,6,7)

➢ There are four squares marked with 1’s, one for each min-term that produces 1 for the function.

➢ These squares belong to min-term 3,4,6,7 and are recognized from the figure b.

➢ Two adjacent squares are combined in the third column.

➢ This column belongs to both B and C produces the term BC.

➢ The remaining two squares with 1’s in the two corner of the second row are adjacent and belong to row

columns of C’, so they produce the term AC’.


CONT’D…
➢ The simplified expression for the function is the or of the two terms:

F = BC + AC’

➢ The second example simplifies the following Boolean function:

F(A,B,C) = Σ(0,2,4,5,6)

➢ The five min-terms are marked with 1’s in the corresponding squares of the three variable maps.

➢ The four squares in the first and the fourth columns are adjacent and represent the term C’.

➢ The remaining square marked with a 1 belongs to min-term 5 and can be combined with the square
of min-term 4 to produce the term AB’.

➢ The simplified function is :


CONT’D…

Map for F(A,B,C) = Σ(0,2, 4, 5, 6)

The simplified expressions of the function is :


F = C’+AB’
Maps for F(A,B,C,D)=Σ(0,1,2,6,8,9,10)

Fig 1.4
CONT’D…

➢ The area in the map covered by this four variable consists of the squares marked with 1’s in fig 1.4.

➢ The function contains 1’s in the four corners that when taken as groups give the term B’D’.

➢ This is possible because these four squares are adjacent when the map is considered with the top

and bottom or left and right edges touching.


CONT’D…

➢ The two 1’s on the bottom row are combined with the two 1’s on the left of the bottom row

to give the term B’C’.

➢ The remaining 1 in the square of min-term 6 is combined with the min-term 2 to give the

term A’CD’.

➢ So the simplified function is:

F = B’D’ + B’C’ + A’CD’


Product-of-Sums Simplification (POS)

➢ This approach is similar to the Sum-of-Products simplification, but identifying adjacent squares

containing 0’s instead of 1’s forms the groups of adjacent squares.

➢ Then, instead of representing the function as a sum of products, the function is represented as

a product of sums.

Examples: F(A,B,C,D) = Σ(0,1,2,5,8,9,10)

➢ The 1’s marked in the map of fig 1.5 represents the min-terms that produces a 1 for the

function,
CONT’D…

➢ The squares marked with 0’s represent the min-term not included in F and therefore denote the

complement of F.

➢ Combining the squares with 1’s gives the simplified function in sum-of-products form:

F = B’D’ +B’C’+A’C’D

➢ If the squares marked with 0’s are combined as shown in the diagram, we obtain the simplified

complement function:
F’=(A’+B’)(C’+D’)(B’+D)

Fig 1.5
Fig 1.6
Fig 1.7
1.10 Variable Maps

fig 1.3
CONT’D…

➢ The variable names are listed across both the sides of the diagonal line into the corner of the map.

➢ The 0’s and the 1’s marked along each row and each column designate the value of the variables.

➢ Each variable under the brackets contain half of the squares in the map where that variable

appears unprimed.
CONT’D…

➢ The min-term represented by a square is determined from the binary assignment of the

variable along the left top edges in the map.

➢ Here the min-term 5 in the three variable maps are 101 of the second column.

➢ This min-term represents a value for the binary variables A, B and C with A and C being

unprimed and B being primed.


1.11 Don't Care Conditions

➢ It doesn't matter whether a function produces a 0 or 1 for a given min-term.

➢ When this condition occurs, an X is used in the map to represent the don't care condition.

➢ Then, when performing map simplification, a square containing an X can be used in both the

Sum-of-Products approach and the Product-of-Sums approach.

➢ When choosing adjacent squares for the function in the map, the x’s may be assumed to be

either 0 or 1, whichever gives the simplest expression


CONT’D…

➢ In addition an x need not to be used at all if it does not contribute to the simplification of
the function.

➢ In each case the choice depends only on the simplification that can be achieved.

➢ As example consider the following Boolean function together with the don’t care min-terms:

✓ F(A,B,C) = Σ0,2,6)

✓ d(A,B,C) = Σ(1,3,5)
CONT’D…

➢ The min-term listed with F produce a 1 for the function.

➢ The don’t care min-terms listed with d may produce either a 0 or 1 for the function.

➢ The remaining min-terms 4,7 produce a 0 for the function.

➢ The 1’s and x’s are combined in any convenient manner so as to enclose the maximum

number of adjacent squares.


CONT’D…

➢ It is not necessary to include the don’t care min-terms 1 and 3 with the 1’s in the first row
we obtain the term, BC’.

The simplified expression is:

F = A’ + BC’

But if we don’t use the X’s the simplified expression would be:

F=A’C’+BC’ it needs two ANDs gate and one OR gates.


Combinational Circuits

➢ A combinational circuit is 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 values of the inputs.

➢ The design of a combinational circuit starts from a verbal outline of the problem and ends in a logic

circuit diagram.
CONT’D…

➢ The procedure involves the following steps:

✓ The problem is stated.

✓ The input and output variables are assigned letter symbols.

✓ The truth table that defines the relationship between inputs and outputs is derived.

✓ The logic diagram is drawn


Half-Adder
➢ The most basic digital arithmetic circuit.
➢ Performs the addition of two binary digits.
➢ The input variables of a half-adder are called the augends and the addend.
➢ The output variables of a half-adder are called the sum and the carry.

Fig 1.8 half adder


S = x’y+xy’=x ⊕ y
C=xy
Full-Adder
➢ A full-adder performs the addition of three binary digits.
➢ Two half-adders can be combined to form a full-adder.
➢ Full adder has three inputs and two outputs
➢ The full adder circuit contains two half adders and an OR gate.
CONT’D…

NB: Additional examples of combinational circuits:


➔ Decoders
➔ Encoders
➔ multiplexers(MUL)
Decoders

➢ A binary code of n bits is capable of representing up to 2n distinct elements of the coded information

➢ A decoder is a combinational circuit that converts binary information from the n coded inputs to a

maximum of 2n unique outputs

➢ A decoder has n inputs and m outputs, where m ≤ 2n, and are called n-to-m-line decoders

➢ Each output represents one of the combinations of the input variables

➢ An enable input controls operation of the decoder


Fig 1.20 3-to- 8 line Decoder
Truth table for 3-to- 8 line Decoder

➢Some decoders use NAND gates rather than AND gates causing the outputs to be in their
complemented form
➢ The circuit would then be enabled when E = 0
Fig 1.21 2-to-4 line decoder with NAND gates

NB:
➢ It is possible to combine two or more decoders with enable inputs to form a larger decoder
➢ The enable inputs are a convenient feature for decoder expansion
Fig 1.22 A 3X8 Decoder constructed with 2 X 4 Decoders

You can check the relationship by using the truth tables.


Encoders
✓An encoder is a digital circuit that performs the inverse of a decoder
✓ An encoder has 2n (or less) input lines and n output lines
✓The output lines generate the binary code corresponding to the input value
Truth tables for Octal to Binary Encoder
Cont…
❖An encoder can be implemented with OR gates
A0 = D1 + D3 + D5 + D7
A1 = D2 + D3 + D6 + D7
A2 = D4 + D5 + D6 + D7

Multiplexers
➢ A multiplexer (MUX) is a combinational circuit with 2n input data lines, n input select lines,
and one output line
➢ The input selection lines determine which input data line is selected for the output
Fig 1.23 4-to-1 line Multiplexers
➢ The MUX is also called a data selector
Function table for 4-to- 1 line Multiplexers

You can check from fig 1.23

You might also like