CA - OS-Chapter 1-Students
CA - OS-Chapter 1-Students
CHAPTER ONE
12/10/2023
CH-1 Contents
3
12/10/2023
Overview of Computer Organization and
Architecture
4
Key Terms
Signal
Analog Signal vs Digital Signal
Analog System vs Digital System
12/10/2023
5
12/10/2023
6
12/10/2023
7
Computer Architecture
Logical aspects of a computer system
Focuses on the structure and behavior of a computer
system
It is operational attributes are linked together and to realize
the architectural specifications
What the computer does?
Example: instruction set and format, the number of
bits used to represent different data types, I/O
mechanisms, and techniques for addressing memory.
12/10/2023
10
Computer Organization
Physical aspect of a computer system
It concerned with the way the hardware are
connected together to form the computer system
Study on how various circuits and components fit together
to create a working computer
How the computer does it?
Example: circuit design, control signal, interface
between the computer and peripherals, and the
memory technology used
12/10/2023
11
12/10/2023
CH-1 Contents
12
12/10/2023
Logic gates and Boolean Algebra
13
12/10/2023
18
AND Gate
12/10/2023
19
OR Gate
12/10/2023
20
NOT Gate
12/10/2023
21
Combined Gates
It is practical to combine functions of the basic gates
into more complex gates, (for instance in order to save
space in circuit diagrams).
There are four combined gates
NAND gate
NOR gate
XOR gate
XNOR gate
12/10/2023
22 12/10/2023
Boolean algebra
23
12/10/2023
24
F= x+y’z
a) Represent the above function using truth table
b) Draw the logical diagram
12/10/2023
28 12/10/2023
Exercise-1
29
1. F= (B+C)+(AB)’(A’ +C)’
a) Represent the above function using truth table
b) Draw the logical diagram
2. F= A’C + AB’C + ABC’
a) Represent the above function using truth table
b) Draw the logical diagram
3. F= AB’C’D + A’BCD’
a) Represent the above function using truth table
b) Draw the logical diagram
12/10/2023
Exercise-2
Write the algebraic function?
30
12/10/2023
Boolean Laws
31
12/10/2023
33
12/10/2023
34
12/10/2023
35
12/10/2023
Simplifying Boolean functions
37
12/10/2023
Example-2
38
12/10/2023
Solution : Example-2
39
12/10/2023
Exercise-3:
Simplify using Boolean Algebra
40
1. (X+Y) +(X+Y)Z
2. AB’(AB’ +B’C)
3. AB’C + B’
4. B+AB’C’D
5. Y’(X+Y+Z)
6. (X+Y)((X+Y)’+Z)
7. AB +(AB)’CD’
8. ABC +AB’C
9. (AD+B+C)(AD+(B+C)’)
12/10/2023
41
12/10/2023
42
12/10/2023
43
ABC’ 110 m6
A’BC 011 m3
ABC 111 m7
12/10/2023
46
MAXTERMS
If a sum term of a function of n variables contains each of
the n variables exactly one time in complemented or
uncomplemented form, the sum term is called a
MAXTERM.
If a function is represented as a product of sum terms, each
of which is a maxterm, the function is said to be in
canonical product of sum (canonical POS) form.
For example
fi(A, B, C)= (A+B+C) (A+B+C’) (A’+B+C)(A’+B+C’)
12/10/2023
47
A’+B+C 100 M4
A’+B+C’ 101 M5
12/10/2023
Exercises-4
48
12/10/2023
49
Canonical form
There are two form of Boolean expression: SOP and
POS.
Boolean function can be expressed as Canonical Form
The canonical form of a boolean function is unique, which
means that there is only one possible canonical form for a
given function.
The canonical form of a boolean function provides a clear
and unambiguous representation of the function
The canonical form of a boolean function can represent any
possible boolean function, regardless of its complexity.
12/10/2023
50
12/10/2023
51
12/10/2023
52
12/10/2023
Exercise-5
53
12/10/2023
Karnaugh map or K-map
54
12/10/2023
55
12/10/2023
56
Minimization by K - Maps
A grid of squares, each square represents one minterm.
The minterms are ordered according to Gray Code
(00, 01, 11,10)
Only one variable changes between adjacent squares
Squares on edges are considered adjacent to squares on
opposite edges
12/10/2023
57 12/10/2023
58
12/10/2023
Example-3
59
12/10/2023
Exercise-6
60
12/10/2023
Rules of K-map Simplification
61
1. No zeros allowed
2. No diagonals
3. Only power of 2 number of cells in each group
4. Groups should be as large as possible
5. Every one must be in at least one group
6. Overlapping allowed
7. Wrap around allowed
8. Fewest number of groups possible
12/10/2023
62 12/10/2023
63 12/10/2023
64 12/10/2023
65 12/10/2023
66 12/10/2023
Minimization techniques
67
12/10/2023
69
12/10/2023
70
12/10/2023
Example-4: Simplification using K-Map
71
12/10/2023
Step to simplify using K-Map
72
1
1. Identify Important Information
Identify the number of variables
Writing the Boolean expression in SOP form
Identify the MINTERMs from the given function
Number of variable
Three (3) … A, B and C
List of MINTERMs
Min-term Minterm code Minterm number
A’B’C 001 m1
A’BC 011 m3
AB’C 101 m5
ABC 111 m7
ABC’ 110 m6
12/10/2023
Step to simplify using K-Map
73
2
2. Draw the Map
Identify the number of squares
Row x Column
Assign codes for Rows and Columns
N.B. follow the order of the variable in the given function
12/10/2023
Step to simplify using K-Map
74
3
3. Filling out the K-Map
For each MINTERM, write a 1 in all the squares which
are included in the terms list, 0 elsewhere
12/10/2023
Step to simplify using K-Map
75
4
4. Selecting adjacent squares
Number of selected squares should be SQUARE of 2
Maximum number of squares
12/10/2023
Step to simplify using K-Map
76
5
5. Simplify each selected squares
Moving on the left side & top side and simplify
ANDing the left side & top side simplified expression
ORing each result
From the RED (4 adjacent squares)
C
12/10/2023
Exercise-7: Simplification using K-Map
77
12/10/2023
CH-1 Contents
78
12/10/2023
Combinational and Sequential Circuits
79
Combinational Circuits
When logic gates are connected together to produce a
specified output for certain specified combination of the
input variable, with no storage involved, the resulting
circuit is called a combinational logic circuits
(combinational circuits).
Combinational Logic Circuits are classified into three
major parts as
Arithmetic and Logic functions,
Date transmission
Code converters
12/10/2023
81
12/10/2023
82
Sequential Circuits
When the output of a circuit depends on the present input and
past output then these logic are termed as Sequential logics
and respective circuits are known as Sequential circuits.
This requires a memory element in order to store the past
output.
Sequential Logic Circuits are classified into three major parts
as
Event driven,
Clock drive
Pulse driven
12/10/2023
85
12/10/2023
86
Memory Elements
A memory stores data – usually one bit per element
A snapshot of the memory is called the state
A one bit memory is often called a bi-stable, i.e., it has 2
stable internal states
Latches and Flip-flops are particular implementations of
bi-stables
12/10/2023
87
12/10/2023
88
Flip-Flops
The storage elements employed in clocked sequential
circuits are called flip-flops.
A flip-flop is a binary cell capable of storing one bit of
information.
It has two outputs, one for the normal value and one for
the complement value of the bit stored in it.
A flip-flop maintains a binary state until directed by a clock
pulse to switch states.
12/10/2023
89
12/10/2023
90 12/10/2023
91 12/10/2023
92 12/10/2023
93 12/10/2023
94
Application of IC
Timers
Counters
Multiplexers
Calculator chips
Memory chips
Clock chips
Microprocessor
Microcontroller
Temperature chips…
12/10/2023
CH-1 Contents
98
12/10/2023
Programmable Logic Devices
99
12/10/2023
101
12/10/2023
102
12/10/2023
103
12/10/2023
104
12/10/2023
105
12/10/2023
106
12/10/2023
107
12/10/2023
108
12/10/2023
CH-1 Contents
109
12/10/2023
Machine level representation of data
110
12/10/2023
112
12/10/2023
113
12/10/2023
114
12/10/2023
115
12/10/2023
117
2. Signed Integers
A. Sign-and-Magnitude
In daily usage, signed integers are represented by a plus or
minus sign and a value.
In the computer, the uses of 0’s and 1’s take place.
0 : plus ( positive)
1 : minus (negative)
The leftmost bit in a binary number is considered the sign
bit.
The remaining (n-1) bits are used for magnitude.
12/10/2023
Example-5
118
12/10/2023
120
12/10/2023
121
12/10/2023
124
12/10/2023
125
Which signed
integer’s
representation that
the computer used?
12/10/2023
129
12/10/2023
Exercise-9
130
12/10/2023
131
12/10/2023
133
12/10/2023
134
12/10/2023
135
12/10/2023
136
Exponent Biasing
Usually signed integers are stored as two’s complement.
However, exponent in IEEE-754 floating point standard is
stored as offset binary.
It also has many other names, like biased exponent or offset-k,
where k denotes an offset.
The exponent is biased by 2e-1 -1, where e is the number of bits
used for the exponent field (if e=8, then 28-1 -1= 128 -1=127).
Biasing is done because exponents have to be signed values in
order to able to represent both tiny and huge values, but
two’s complement, the usual representation for signed values,
would make comparison harder.
12/10/2023
138
12/10/2023
139
Single Precision
The IEEE single precision floating point standard
representation requires a 32 bit word, which may be
represented as numbered from 0 to 31, left to right.
The first bit is the sign bit, ‘S’, the next eight bits are
the exponent bits, ‘E’, and the final 23 bits are the
fraction ‘F’.
12/10/2023
140
12/10/2023
Exercise-10:
142
12/10/2023
143
12/10/2023
Exercise-11:
145
12/10/2023
146
Questions?
12/10/2023
147
Thank You
12/10/2023