DDMP Unit 1 Updated 2024
DDMP Unit 1 Updated 2024
Syllabus Overview:
Unit-1: INTRODUCTION TO DIGITAL DESIGN
Unit-2: BOOLEAN ALGEBRA AND MINIMIZATION TECHNIQUES
Unit-3: COMBINATIONAL CIRCUIT DESIGN
Unit-4: SEQUENTIAL CIRCUIT DESIGN
Unit-5: MICROPROCESSORS (Intel 8086)
Unit-1: INTRODUCTION TO DIGITAL
DESIGN
UP 0 0 1 2 3 4 5
RESET
AND Gate
1
0
0
Conversion Between Number Bases
Octal(base 8)
Hexadecimal
(base16)
• Learn to convert between bases.
• Already demonstrated how to convert
from binary to decimal.
Converting Binary to Decimal
• To Convert to decimal, use decimal arithmetic to sum the weighted
powers of two:
• Converting 110102 to N10:
N10 = 1 x 24 x 1x 23 + 0 x 22 + 21 + 0 + 20
= 26
Decimal, BCD, Xcess-3, Binary, Octal, Hexa-Decimal, and Gray Codes:
Decimal BCD Xcess-3 Binary Octal Hexa- Gray
Decimal
2. Other bits of the output gray code can be obtained by XORing binary code bit at that
index and previous index
A gray code is a list of ′2𝑛 ′ binary sequences of length ‘n’ such that consecutive sequences in
the list differ in exactly one position.
A gray code is called cyclic if the 1st and last sequence in the list also differ in exactly in one
position.
Primary Motivation for using the gray codes is the computers. Earlier computers were built
using Electro-mechanical switches where the transition from one sequence of 0s and 1s to
another sequence of 0s and 1s will happen in a sequential manner.
Ex: 1 and 2 in 3-bit binary are given as 001 and 010. If the transition has to happen 1-bit at a
time, 1. 001, 2. 011, and 3. 010.
A n-cube 𝑄𝑛 is the graph whose vertices are labelled by the binary sequences of length ‘n’
where two vertices are adjacent if and only if their sequences differ in exactly one bit
position.
Gray Codes:
3. In modern digital communications, Gray codes play an important role in error correction.
4. Binary Reflected Gray Code (BRGC). Ex: 000, 001, 011, 010, 110, 111, 101, 100.
BRGC codes are also a Gray code (Proof is part of Discrete Mathematics theory).
BRGC (Gray codes) finds their applications in range encoding, graph theory, and so
on.
1 1 1 1 1 1 carries
carries
1 1 1 1 0 1
+ 1 0 1 1 1
------------------
1 0 1 0 1 0 0
Binary Subtraction
1 10
0 10 10 0 0 10 borrows
1 0
0 1 1 0 1
- 1 0 1 1 1
------------------------
1 1 0 1 1 0
Binary Multiplication
1
0 1 1 1
X 1 0 1 0
-----------------------
0 0 0 0 0
1 0 1 1 1
0 0 0 0 0
1 0 1 1 1
-----------------------
1 1 1 0 0 1 1 0
Code-Word: Information-bits + redundant bits
together is referred to as a code-
word.
P Information Bits
11000011
01000011
1Added
1 0 0 0 even
0 1 1 parity bit 0 1 Added
0 0 0 0odd
1 1 parity bit
Added even parity bit Added odd parity bit
ASCII Code
• American Standard Code for Information Interchange
• ASCII is a 7-bit code, frequently used with an 8th bit for error detection.
• A – Z (26 codes), a – z (26 codes), 0-9 (10 codes), others (@#$%^&*….)
Addition:
• Using 1’s complement numbers, adding numbers is easy.
• For example, suppose we wish to add +(1100)2 and +(0001)2.
• Let’s compute (12)10 + (1)10.
(12)10 = +(1100)2 = 011002 in 1’s comp.
(1)10 = +(0001)2 = 000012 in 1’s comp.
0 1 1 0 0
Step 1: Add binary numbers + 0 0 0 01
Step 2: Add carry to low-order bit --------------
0 0 1 1 0 1
Add carry 0
--------------
Final 0 1 1 0 1
Result
ARITHMETIC: 1’s Complement
Subtraction:
• Using 1’s complement numbers, subtracting numbers is also easy.
• For example, suppose we wish to subtract +(0001)2 from +(1100)2.
• Let’s compute (12)10 - (1)10.
• (12)10 = +(1100)2 = 011002 in 1’s comp.
0 1 1 0 0
• (-1)10 = -(0001)2 = 111102 in 1’s comp. - 0 0 0 0 1
--------------
Addition:
• Using 2’s complement numbers, adding numbers is easy.
• For example, suppose we wish to add +(1100)2 and +(0001)2.
• Let’s compute (12)10 + (1)10.
• (12)10 = +(1100)2 = 011002 in 2’s comp.
0 1 1 0 0
Step 1: Add binary numbers
Add + 0 0 0 0 1
Step 2: Ignore carry bit
----------------
Final
Result 0 1 1 0 1
Ignore
ARITHMETIC: 2’s Complement
Subtraction:
• For example, suppose we wish to subtract +(0001)2 from +(1100)2.
• Let’s compute (12)10 - (1)10.
(12)10 = +(1100)2 = 011002 in 2’s comp.
(-1)10 = - (0001)2 = 111112 in 2’s comp.
Ignore
ARITHMETIC: 2’s Complement
Subtraction:
Example-2:
• Let’s compute (13)10 – (5)10.
(13)10 = +(1101)2 = (01101)2
(-5)10 = -(0101)2 = (11011)2
• Adding these two 5-bit codes…
01101
carry + 11011
--------------
1 01000
• Discarding the carry bit, the sign bit is seen to be zero, indicating a correct
result. Indeed, (01000)2 = +(1000)2 = +(8)10.
ARITHMETIC: 2’s Complement
Subtraction:
Example-3:
• Let’s compute (5)10 – (12)10.
(-12)10 = -(1100)2 = (10100)2
(5)10 = +(0101)2 = (00101)2
• Adding these two 5-bit codes…
00101
+ 10100
--------------
11001
• Here, there is no carry bit and the sign bit is 1. This indicates a negative result,
which is what we expect. (11001)2 = -(7)10.
Digital Circuits
Digital Circuits
• Digital Circuits and Digital Systems operate on digital data.
• It is important to understand the difference between analog and digital
data (refer to the image below).
• Digital systems/circuits usually operate on digital data which is in the
binary form.
Digital Circuits
Why Binary System.?
• If we use decimal number system for building digital systems,
then we need to generate, manipulate, and store 10 different logic
levels. This will make the system design more complex.
• It is relatively easier to build circuits which can handle only 2
logic levels
• Therefore binary number systems are used in the designing of
digital systems
• It is good to recall your ASCII encoding once.
Digital Circuits
• The major components and the basic building block of any given digital circuit
are logic gates.
Ex: AND, OR, NOT, NAND, etc
• These circuits operate only on two states: 1. High (+5V) and 2. Low (0V).
They take inputs in these two states, and process them again in these two states
and finally provide the output in these two states alone.
• They consume less power compared to the analog circuits
• Digital circuits cannot interact with the real-world data directly.
• Real world data exists only in analog form
• Need to be converted into digital form before given as an input to the
digital system or circuit for processing.
• Note, analog circuits will work based on the analog inputs directly
• Examples of converters: ADC, DAC, etc.
Digital Circuits
• Digital circuits compared to their analog counterparts, less sensitive to the
changes in the input.
Ex: refer to the image below
• Digital circuits are also more immune to noise than their analog counterparts.
Digital Circuits
Accuracy: They are more accurate than analog circuits
Triggering: Digital circuits rely on clock signal for synchronization purposes
Applications: