Prepared By,: Mrs.C.RADHA, Associate Professor/Mca, Mec
Prepared By,: Mrs.C.RADHA, Associate Professor/Mca, Mec
Mrs.C.RADHA,
ASSOCIATE PROFESSOR/MCA,
MEC.
Objectives:
To impart the knowledge in the field of digital electronics
To impart knowledge about the various components of a computer
and its internals.
To design and realize the functionality of the computer hardware with
basic gates and other components using combinational and sequential
logic.
To understand the importance of the hardware-software interface
UNIT-I DIGITAL FUNDAMENTALS
Number Systems and Conversions – Boolean Algebra and Simplification
– Minimization of Boolean Functions – Karnaugh Map, Logic Gates –
NAND – NOR Implementation.
Computer organization
physical aspects of computer systems.
E.g., circuit design, control signals, memory types.
How does a computer work?
Computer architecture
Logical aspects of system as seen by the programmer.
E.g., instruction sets, instruction formats, data types,
addressing modes.
How do I design a computer?
Why study computer organization and architecture?
Concerned with the way hardware components are Concerned with the structure and behaviour of a
connected together to form a computer system. computer system as seen by the user.
Acts as the interface between hardware and Deals with the components of a connection in a
software. system.
Helps us to understand the functionalities of a Tells us how exactly all the units in the system are
system. arranged and interconnected.
A programmer can view architecture in terms of Whereas Organization expresses the realization of
instructions, addressing modes and registers. architecture.
Base N
N Digits: 0, 1, 2, 3, 4, 5, …, N-1
Example: 1045N
• Positional Number System
n 1 4 3 2 1 0
N N N N N N
d n 1 d 4 d3 d 2 d1 d 0
• Digit do is the least significant digit (LSD).
• Digit dn-1 is the most significant digit (MSD).
• The most common number systems used in digital
technology. They are,
Decimal number system
Binary number system
Octal number system
Hexadecimal number system
Decimal Number System
Base 16 system
Uses 16 symbols (digits 0-9 & letters A,B,C,D,E,F)
Groups of four bits represent each base 16 digit
0 0000 0 0
1 0001 1 1
2 0010 2 2
3 0011 3 3
4 0100 4 4
5 0101 5 5
6 0110 6 6
7 0111 7 7
8 1000 10 8
9 1001 11 9
10 1010 12 A
11 1011 13 B
12 1100 14 C
13 1101 15 D
14 1110 16 E
15 1111 17 F
CONVERSIONS
Conversion of a number system are, decimal to any
base , any base to decimal, binary to any base, any base
to binary, octal to hexa, hexa to octal.
Decimal to any base conversion
a) Decimal to binary conversion
i) Converting a decimal number by 2 until quotient of
o is obtained.
ii) Binary number is obtained by taking reminder after
each division in reverse order. (double-dabble
method)
Example: 89.625 Fraction Part
Integer Part
Binary number is obtained by multiplying number
continuously by 2, recording a carry each time is
known as fraction conversion.
b) Decimal to Octal conversion
Procedure is same as that of double dabble method
Example: (1032.6875)10
(1032.6875)10→(?)8
For Real Part-
We convert the real part from base 10 to base 8 using
division method same as above.
So, (1032)10 = (2010)8
0.6875 x 8 5 0.5
0.5 x 8 4 0.0
=2619
(532)8 = (101011010)2
b) Hexa to Binary
Reverse method of binary to hexa conversion.
Example:
(2D6)16
2 D 6
(2D6)= (001011010110)2
Hexadecimal Conversion
a) Hexa to Octal
Convert the given hexa decimal number to binary
equivalent and then from binary to octal.
Example:
(5C2)16
(Hexa to Binary) 5 C 2
0101 1100 0010
(Binary to Octal) 010 111 000 010
2 7 0 2
(5C2)= (2702)8
b) Octal to Hexa
Convert octal to binary number and binary into
equivalent hexadecimal number.
Example:
(321)8
Octal to Binary 3 2 1
011 010 001
Binary to Hexa 1101 0001
D 1
(321)8 = (D1)16
BOOLEAN ALGEBRA
The boolean algebra is used to simplify the design the
logic circuits and involves lengthy mathematical
operations.
Binary logic deals with two values 0 and 1.(0-False, 1-
True)
Karnaugh Map- Simplification of boolean equation
upto four equations. (Difficult if more than five input
variables).
Quine Mcclusky method- Tabular method of
minimization(reduces the requirement of hardware)
Boolean Logic Operations
A B Y=A.B
0 0 0
0 1 0
1 0 0
1 1 1
Logical OR
Y=A+B
Truth Table
Input Output
A B Y=A+B
0 0 0
0 1 1
1 0 1
1 1 1
Logical NOT (Inverter)
Convert logical 1 to 0 and vice versa.
Truth Table
Input Output
A Y
0 1
1 0
Basic Laws of Boolean Algebra
Logical operations expressed and minimized
mathematically using the rules, laws and theorems of
boolean algebra.
Boolean Addition:
A+0=A
A+1=1
A+A=A
A + Ā =1
Ā= Ā
1+ Ā=1
Boolean Multiplication:
A.1=A
A.0=0
A.A=A
A.Ā =0
((A)’)’=A
Properties of Boolean Algebra
Commutative Properties
Associative Properties
Idempotent Properties
Identity Properties
Null Properties
Distributive Properties
Negation Properties
Double Negation Properties
Absorption Properties
Demorgan’s Theorem
1 ) Commutative Properties
Boolean Addition
A+B=B+A
Proof
A B A+B B+A
0 0 0 0
0 1 1 1
1 0 1 1
1 1 1 1
Boolean Multiplication
A.B=B.A
Proof
A B A.B B.A
0 0 0 0
0 1 0 0
1 0 0 0
1 1 1 1
2) Associative Properties
A+(B+C)=(A+B)+C
Proof
A B C A+B B+C (A+B)+C A+(B+C)
0 0 0 0 0 0 0
0 0 1 0 1 1 1
0 1 0 1 1 1 1
0 1 1 1 1 1 1
1 0 0 1 0 1 1
1 0 1 1 1 1 1
1 1 0 1 1 1 1
1 1 1 1 1 1 1
Similarly, the associative law of multiplication is given
by,
A.(B.C)=(A.B).C
3) Distributive Properties
i) Boolean Addition
It is distributive over boolean multiplication.
A+BC=(A+B).(A+C)
Proof
LHS:
A+BC= A.1+BC [Since A.1=A]
=A.(1+B)+BC [Since 1+B=1]
=A.1+AB+BC
=A(1+C)+AB+BC [Since 1+C=1]
=A.1+AC+AB+BC
=A+AC+AB+BC
=A.A+AC+AB+BC [Since A.A=A]
=A(A+C)+B(A+C)
=(A+C)(A+B)
=RHS
ii) Boolean Multiplication
Distributive over boolean addition
A.(B+C)=A.B+A.C
Proof
RHS
A.B+A.C =A.B.1+A.C.1
=A.B(1+C)+A.C(1+B) [Since 1+C=1,1+B=1]
=A.B+ABC+A.C+A.B.C
=A.B+A.C+ABC [Since A+A=A]
=AB(1+C)+AC [Since 1+C=1]
=AB+AC
=A.(B+C)
=LHS
4) Idempotent Properties
i) A+A=A
Proof
If A=0 then 0+0=0=A
If A=1 then 1+1=1=A
ii) A.A = A
Proof
If A=0 then 0.0=0=A
If A=1 then 1.1=1=A
5) Identity Properties
i) A.1=A
Proof
If A=0 then 0.1=0=A
If A=1 then 1.1=1=A
ii) A+1 = 1
Proof
If A=0 then 0+1=1
If A=1 then 1+1=1
6) Null Properties
i) A.0=0
Proof
If A=0 then 0.0=0
If A=1 then 1.0=0
ii) A+0 = A
Proof
If A=0 then 0+0=0=A
If A=1 then 0+1=1=A
7) Negative Properties
i) A.A’ = 0
Proof
If A=0 then 0.1=0
If A=1 then 1.0=0
ii) A + A’ = 1
Proof
If A=0 then 0+1=1
If A=1 then 1+0=1
8) Double Negation Properties
i) ((A)’)’=A
Proof
If A=0 then (A)’= 1, ((A)’)’= 0=A
If A=1 then (A)’=0, ((A)’)’=1=A
9) Absorption Properties
i) A + AB = A
Proof
LHS: A(1+B)=A.1 [Since 1+B=1]
=A [Since 1.A=A]
=RHS
ii) A(A+B)=A
Proof
LHS: A(A+B)=A(A+B)
=A.A+AB [Since A.A=A]
=A+AB
=A(1+B) [Since 1+B=1]
=A
=RHS
iii) A+A’B=A+B
Proof
LHS: A+A’B=(A+A’)(A+B) [Since A+BC=(A+B)(A+C)]
=1(A+B) [Since A+A’=1]
=A+B
=RHS
10) Demorgan’s Theorem
First Theorem
States that complement of a product is equal to be
sum of the complements.
(A.B)’ = A’ + B’
• Second Theorem
States that complement of a sum equal to product of
the complements.
(A+B)’ = A’.B’
DeMorgan’s First Theorem using Truth Table
(A.B)’ = A’ + B’
DeMorgan’s Second Theorem using Truth Table
(A+B)’ = A’.B’