Digital Logic Design
Digital Logic Design
DIGITAL Logic
design
LECTURE 1
Reference Books 2
45
40
35
temperature 0C
30
25
20
15
10
0
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
time
Digital Representations 8
difference between
Analog and Digital
quantities.
DIGITAL AND ANALOG SYSTEMS 11
Digital systems are generally easier to design. The circuits used in digital
systems are switching circuits, where exact values of voltage or current
are not important, only the range (HIGH or LOW) in which they fall.
Information storage is easy. This is accomplished by special devices and
circuits that can latch onto digital information and hold it for as long as
necessary, and mass storage techniques that can store billions of bits of
information in a relatively small physical space.
Accuracy and precision are easier to maintain throughout the system.
Once a signal is digitized, the information it contains does not
deteriorate as it is processed.
In analog systems, the voltage and current signals tend to be distorted
by the effects of temperature, humidity, and component tolerance
variations in the circuits that process the signal.
Advantages of Digital Techniques 15
To illustrate a typical system that uses this approach Figure 1-1 describes a
precision temperature regulation system.
A user pushes up or down buttons to set the desired temperature in
increments (digital representation).
A temperature sensor in the heated space converts the measured
temperature to a proportional voltage.
This analog voltage is converted to a digital quantity by an analog-to-
digital converter (ADC).
This value is then compared to the desired value and used to determine a
digital value of how much heat is needed.
The digital value is converted to an analog quantity (voltage) by a digital-
to-analog converter (DAC).
This voltage is applied to a heating element, which will produce heat that is
related to the voltage applied and will affect the temperature of the
space.
Limitations of Digital Techniques 19
Digital System 20
Digital system process binary information electronically through
specialized circuits designed for handling digital information.
These circuits operate with two voltage values of +5 volts and 0
volts.
These specialized electronic circuits are known as Logic Gates and
are considered to be the Basic Building Blocks of any Digital circuit.
The commonly used Logic Gates are the AND gate, the OR gate
and the Inverter or NOT Gate.
Other gates that are frequently used include NOR, NAND, XOR and
XNOR.
Each of these gates is designed to perform a unique operation on
the input information which is known as a logical or Boolean
operation.
Logic Gate Symbol and ICs
13
12
11
10
8
7400 NAND Gate IC
GND
4
6
1
3
Digital Systems 22
Discrete elements of information are represented in a digital system
by physical quantities called signals.
Electrical signals such as voltages and currents are the most
common.
Electronic devices called transistors predominate in the circuitry that
implements these signals.
The signals in most present‐day electronic digital systems use just two
discrete values and are therefore said to be binary.
A binary digit, called a bit, has two values: 0 and 1.
Discrete elements of information are represented with groups of bits
called binary codes.
Digital Computer 23
The computer deals with digital information, i.e., it deals with the information that is
represented by binary digits
Digital Computers function more reliably if only two states are used
Application softwares are for the facilitation of user not for system
CPU contains:
Memory of computer contains storage for instructions and data called RAM
Random access memory as CPU can access any location on memory within
a fixed interval of time
Characteristics
Use symbols such as I for 1, II for 2, III for 3, IIII for 4, IIIII for 5, etc
Each symbol represents the same value regardless of its position in
the number
The symbols are simply added to find out the value of a particular
number
Difficulty
It is difficult to perform arithmetic with such a number system
Positional Number Systems 29
Characteristics
Characteristics
A positional number system
Has 10 symbols or digits (0, 1, 2, 3, 4, 5, 6, 7, 8, 9).
Hence, its base = 10
The maximum value of a single digit is 9 (one less than the value of
the base)
Each position of a digit represents a specific power of the base (10)
We use this number system in our day-to-day life
Decimal Number System 32
Example
= 2000 + 500 + 80 + 6
Binary Number System 33
Characteristics
A positional number system
Has only 2 symbols or digits (0 and 1). Hence its base = 2
The maximum value of a single digit is 1 (one less than the value of
the base)
Each position of a digit represents a specific power of the base (2)
This number system is used in computers
Binary Number System 34
Example
101012 = (1 x 24) + (0 x 23) + (1 x 22) + (0 x 21) x (1 x 20)
= 16 + 0 + 4 + 0 + 1
= 2110
Representing Numbers in Different 35
Number Systems
In order to be specific about which number system we are
referring to, it is a common practice to indicate the base
as a subscript.
Thus, we write:
(10101)2 = (21)10
Octal Number System 36
Characteristics
A positional number system
Has total 8 symbols or digits (0, 1, 2, 3, 4, 5, 6, 7).
Hence, its base = 8
The maximum value of a single digit is 7 (one less than
the value of the base
Each position of a digit represents a specific power of the
base (8)
Octal Number System 37
Example
Characteristics
A positional number system
Has total 16 symbols or digits (0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
A, B, C, D, E, F).
Hence its base = 16
The symbols A, B, C, D, E and F represent the
decimal values 10, 11, 12, 13, 14 and 15
respectively
The maximum value of a single digit is 15 (one less than
the value of the base)
Hexadecimal Number System 39
3 011
Binary number table for 2 variables 4 100
5 101
0 00
6 110
1 01
7 111
2 10
3 11
Converting a Number of Another 43
Solution:
Step 1: Convert from base 6 to base 10
(545)6 = 5 x 62 + 4 x 61 + 5 x 60
= 5 x 36 + 4 x 6 + 5 x 1
= 180 + 24 + 5
= (209)10
Converting a Number of Some Base 50
to a Number of Another Base
Shortcut Method for Converting a Binary 51
Number to its Equivalent Octal Number
Shortcut Method for Converting a Binary 52
Number to its Equivalent Octal Number
Shortcut Method for Converting a Binary 53
Number to its Equivalent Octal Number
Method
Step 1: Divide the digits into groups of three
starting from the right
Step 2: Convert each group of three binary digits to
one octal digit using the method of binary to decimal
conversion
Shortcut Method for Converting a Binary 54
Number to its Equivalent Octal Number
Shortcut Method for Converting an Octal 55
Number to Its Equivalent Binary Number
Shortcut Method for Converting an Octal 56
Number to Its Equivalent Binary Number
Example
(562)8 = (?)2
Step 1: Convert each octal digit to 3 binary digits
(5)8= (101)2,(6)8= (110)2,
(2)8= (010)2
Step 2:Combine the binary groups
(562)8= 101 110 010
5 6 2
Method
Step 1: Convert the decimal equivalent of each
hexadecimal digit to a 4 digit binary number
Step 2: Combine all the resulting binary groups
(of 4 digits each) in a single binary number
Shortcut Method for Converting a Hexadecimal 60
Number to its Equivalent Binary Number
Shortcut Method for Converting a Hexadecimal 61
Number to its Equivalent Binary Number
Fractional Numbers 62
Formation of Fractional Numbers in Binary Number 63
System (Example)
Formation of Fractional Numbers in Binary Number 64
System (Example)
Example
= 4 + 2 + 0 + 0.5 + 0 + 0.125
= (6.625)10
Formation of Fractional Numbers in Octal Number 65
System (Example)
Formation of Fractional Numbers in Octal Number 66
System (Example)
Example
(54)10()2 (0.6875)10()2
54 (divide by 2 ) = 27 remainder 0 0.6875 (multiply by 2) = 1.375 = 0.375 carry 1
27 (divide by 2) = 13 remainder 1 0.375 (multiply by 2) = 0.75 = 0.75 carry 0
13 (divide by 2) = 6 remainder 1 0.75 (multiply by 2) = 1.50 = 0.5 carry 1
6 (divide by 2) = 3 remainder 0 0.5 (multiply by 2) = 1.00 = 0.0 carry 1
3 (divide by 2) = 1 remainder 1 Thus the binary equivalent of 0.687510 is
therefore: 0.10112 ← (LSB)
1 (divide by 2) = 0 remainder 1
Thus the binary equivalent of 5410 is
therefore: 1101102 Hence the binary equivalent of the decimal
number: 54.687510 is 110110.10112
EXERCISE PROBLEMS 70