Lecture DLD
Lecture DLD
[email protected]
1. “ Digital Design” Fifth Edition By M.
Morris Mano and Michael D.Ciletti
2
DLD - DIGITAL LOGIC DESIGN
3
4
🠶 Digital
🠶 Concerned with the interconnection among digital components and modules
🠶 Best Digital System example is General Purpose
Computer
🠶 Logic Design
🠶 Deals with the basic concepts and tools used to design digital hardware
consisting of logic circuits
🠶 Circuits to perform arithmetic operations (+, -, x, ÷)
5
🠶 Digital Signal : Decimal values are difficult to represent in electrical systems. It is easier to
use two voltage values than ten.
on off
Power switches have labels “1” for on and “0” for off.
6
Continuous Quantity
🠶 Intensity of Light
🠶 Temperature
🠶 Velocity
Digital Quantity
🠶 Key Characteristics:
🠶 Discreteness: Digital quantities take on specific, well-defined values. For
example, a digital signal can be either high (usually represented by 1)
or low (usually represented by 0).
🠶 Binary Representation: Most digital systems use a binary representation,
where each value corresponds to a combination of bits (binary digits). These
bits can be either on (1) or off (0).
🠶 Boolean Logic: Digital systems operate based on Boolean logic, which
involves logical operations like AND, OR, NOT, and XOR. These operations
manipulate binary values to make decisions or perform calculations.
Signal
A physical quantity which vary with respect to time.
Analog and Digital Signal 12
🠶 Analog system
🠶 The physical quantities or signals may vary continuously over a specified range.
🠶 Any real life signal e.g. human voice, temperature, dimmer switches
🠶 Analogue signal
The signal continuously vary with respect to time.
🠶 Digital system
🠶 The physical quantities or signals can assume only discrete values.
🠶 Greater accuracy
X(t) X(t)
t t
Analog signal Digital signal
🠶 Analogue to Digital Conversion
Analogue System
🠶 Digital to analogue converter
Analogue to Digital Conversion and Reconstruction of Analogue Signal
Example:
Three parts of Analogue to digital Converter
🠶 Sampling
Sampling is the process of converting an analog signal into a discrete-time
signal.
🠶 Quantization
The conversion of a discrete-time continuous-valued signal into a discrete-time
discrete-value signal is called quantization. In the quantization process, each
signal sample is represented by a value chosen from the finite set of possible
values. The possible values are collectively called quantization levels.
🠶 Coding or Encoding
The process in which the discrete value samples are represented by an n-bit
binary sequence or code is called coding.
Quantization and Coding
Reconstruction of Analogue Signal
🠶 Binary Digits
Each of the two digits in the binary system, 1 and 0, is called a bit, which
is a contraction of the words binary digit. In digital circuits, two different
voltage levels are used to represent the two bits. Generally, 1 is
represented by the higher voltage, which we will refer to as a HIGH, and a 0
is represented by the lower voltage level, which we will refer to as a LOW.
This is called
positive logic.
HIGH = 1 and LOW = 0
Negative logic.
HIGH = 0 and LOW = 1
Logic Levels:
The voltages used to represent a 1 and a 0 are called logic levels.
🠶 Digital Waveforms
Digital waveforms consist of voltage levels that are changing back and forth
between the HIGH and LOW levels or states.
21
Number Systems
Four Types of Number Systems
1) Binary systems
2) Decimal systems
3) Octal systems
4) Hexadecimal systems
24
d2*B2+d1*B1+d0*B0+d-1*B-1+d-2*B-2
(512.74)10
25
(512.74)8
26
(101.01)2
1011
11000101
27
(1E5.7A)16
28
The Power of 2
n 2n n 2n
0 20=1 8 28=256
1 21=2 9 29=512
2 22=4 10 210=1024 Kilo
3 23=8 11 211=2048
4 24=16 12 212=4096
5 25=32 20 220=1M Mega
Conversion
🠶 Divide the number by the ‘Base’ (=2)
🠶 Take the remainder (either 0 or 1) as a coefficient
🠶 Take the quotient and repeat the division
MSB LSB
Decimal (Fraction) to Binary 34
Conversion
🠶 Multiply the number by the ‘Base’ (=2)
🠶 Take the integer (either 0 or 1) as a coefficient
🠶 Take the resultant fraction and repeat the division
MSB LSB
35
Example: (0.3125)10
Integer Fraction Coefficient
0.3125 * 8 = 2 . 5 a-1 = 2
0.5 *8= 4 . 0 a-2 = 4
Answer: (0.3125)10 = (0.a-1 a-2 a-3)8 = (0.24)8
🠶 Binary to decimal Conversion
For example
1101.011
🠶 20=1
🠶 21=2
🠶 22=4
🠶 23=8
🠶 Now for fraction
🠶 2-1=1/2
🠶 2-2=1/4
🠶 2-3=1/8
37
( 01 0 1 1 0 . 0 1 )2 4 100
5 101
6 110
( 2 6 . 2 )8 7 111
Binary − Hexadecimal
Conversion
🠶 16 = 2 4
Hex
0
Binary
0000
🠶 Each group of 4 bits represents a hexadecimal 1 0001
digit 2 0010
3 0011
4 0100
5 0101
Assume Zeros 6 0110
7 0111
Example: 8 1000
( 1 0 1 1 0 . 0 1 )2 9 1001
A 1010
B 1011
C 1100
D 1101
(1 6 . 4 )16 E 1110
F 1111
Example:
( 2 6 . 2 )8
( 0 1 0 1 1 0 . 0 1 0 )2
(1 6 . 4 )16