Unit 1
Unit 1
Design
1
Unit 1
Fundamentals of Digital Design
2
Digital and Analog Basic Concepts:
Analog Signals
•Amplitude
Distance above reference line
•Cycle
One complete wave
•Frequency
Cycles per second .Hertz is the unit used for expressing
frequency. Frequency: 1
F T H z
Period
(T)
Amplitude
(peak)
Amplitude
(peak-to-peak)
3
Example of Analog Signals
⚫ An analog signal can be any time-varying signal.
⚫ Minimum and maximum values can be either positive
or negative.
⚫ They can be periodic (repeating) or non-periodic.
⚫ Sine waves and square waves are two common analog
signals.
⚫ Note that this square wave is not a digital signal
because its minimum value is negative.
0 volts
Amplitude
Frequency:
A measure of the number of occurrences
of the signal per second. (Hertz, Hz)
Time High (tH):
The time the signal is at 5 v.
Time Low (tL): Period (T)
The time the signal is at 0 v.
Duty Cycle:
The ratio of tH to the total period (T). Frequency:
Rising Edge:
1 t
A 0-to-1 transition of the signal. F T Hz DutyCycle TH 100%
Falling Edge:
A 1-to-0 transition of the signal.
5
Example of Digital Signals
⚫ Digital signal are commonly referred to as square waves
or clock signals.
⚫ Their minimum value must be 0 volts, and their maximum
value must be 5 volts.
⚫ They can be periodic (repeating) or non-periodic.
⚫ The time the signal is high (tH) can vary anywhere from 1% of
the period to 99% of the period.
5 volts
0 volts
6
Differences of Analog and Digital Signals
Analog Signals Digital Signals
⚫ Continuous both time ⚫ Discrete in time
and amplitude and quantized in amplitude
⚫ Infinite range of values ⚫ Finite range of values
⚫ More exact values, ⚫ Not as exact as analog,
but
more difficult to work with but easier to work with
⚫ Storing such a ⚫ Storing such a
requires signal amount
large of requires less signal
amount
⚫ memory
Processing requires large ⚫memory
Processing of
requires
processing power or more processing power low
time or time less
⚫ Transmitting requires ⚫ Transmitting requires a
a bandwidth
6 large less bandwidth than analog
Number Systems
⚫ A number system defines how a number can
be represented using distinct symbols.
⚫ The number the numeral represents is called its
value.
⚫ A number can be represented differently in different
systems
⚫ For example, the two numbers (2A)16 and (52)8 both
Used by Used in
System Base Symbols humans? computers?
Octal 8(O) 0, 1, … 7 No No
Hexa- 16(H) 0, 1, … 9, No No
decimal A, B, … F
9
Decimal numbers
⚫ In the decimal number systems each of the ten digits, 0 through 9,
the quantity represented and can be assigned a weight. The weights for
whole numbers are positive powers of ten that increases from right to left,
⚫ For fractional numbers, the weights are negative powers of ten that
1
0
Decimal numbers
Base
10
Decimal numbers
⚫ Example: the value 725.194 is represented in expansion form as follows:
11
Binary Numbers
• Most modern computer system using binary logic. The
computer represents values(0,1) using two voltage levels
(usually 0V for logic 0 and either +3.3 V or +5V for logic 1).
• The Binary Number System uses base 2 includes only the digits
0 and 1 . The position of a 1 or 0 in a binary number
indicates its weight, or value within the number, just as the
position of a decimal digit determines the value of that digit.
• With 4 digits position we can count from zero to 15. In general,
with n bits we can count up to a number equal to 2ⁿ - 1.
• Largest decimal number = 2 𝑛 - 1
12
Binary Numbers
• A binary number is a weighted number. The right-most bit is the
least significant bit (LSB) in a binary whole number and has a
weight of 2º =1. The weights increases from right to left by a
power of two for each bit. The left-most bit is the most
significant bit (MSB); its weight depends on the size of the
binary number.
• The weighted values for each position are : Base
32 16 8 4 2 1 0.5 0.25
Quantities/Counting (2 of 3)
Hexa-
Decimal Binary Octal decimal
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
18
Number Representation in different systems
Quantities/Counting (3 of 3)
Hexa-
Decimal Binary Octal decimal
16 10000 20 10
17 10001 21 11
18 10010 22 12
19 10011 23 13
20 10100 24 14
21 10101 25 15
22 10110 26 16
23 10111 27 17 Etc.
19
Number System Conversions
⚫The possibilities:
Decimal Octal
Binary Hexadecimal
20
Quick Example
Base
21
Decimal to Decimal
Decimal Octal
Binary Hexadecimal
22
Decimal to decimal
Weigh
t
Base
23
Fractions
24
Binary to Decimal
Decimal Octal
Binary Hexadecimal
25
Binary to Decimal
⚫ Technique
⚫ Multiply each bit by 2n, where n is the “weight” of the
bit
⚫ The weight is the position of the bit, starting from 0
on the right
⚫ Add the results
26
Example
Bit “0”
1010112 => 1 x = 1
20
1 x = 2
0 x 21 = 0
1 x = 8
0 x 22 = 0
1 x 23 = 32
24 4310
27
25
Binary to Decimal
1101 = 1 x 23 + 1 x 22 + 0 x 21 + 1 x 20
=1x8+1x4+0x2+1x1
=8+4+0+1
(1101)2 = (13)10
28
Binary to decimal (Fractions)
20
21
2.6875 29
Octal to Decimal
Decimal Octal
Binary Hexadecimal
30
Octal to Decimal
⚫ Technique
⚫ Multiply each bit by 8n, where n is the “weight” of the
bit
⚫ The weight is the position of the bit, starting from 0
on the right
⚫ Add the results
31
Example
7248 => 4 x 0 = 4
8
2 x = 16
7 x 81 = 448
46810
82
32
Octal to Decimal
137 = 1 x 82 + 3 x 81 + 7 x 80
= 1 x 64 + 3 x 8 + 7 x 1
= 64 + 24 +7
(137)8 = (95)10
33
Hexadecimal to Decimal
Decimal Octal
Binary Hexadecimal
34
Hexadecimal to Decimal
⚫ Technique
⚫ Multiply each bit by 16n, where n is the “weight” of the
bit
⚫ The weight is the position of the bit, starting from 0
on the right
⚫ Add the results
35
Example
36
Hex to Decimal
BAD = 11 x 162 + 10 x 161 + 13 x 160
= 11 x 256 + 10 x 16 + 13
x1
= 2816 + 160 + 13
(BAD)16 = (2989)10
37
Number System Conversions
⚫ Decimal to Base-k [Successive division]
38
Number System Conversions
39
Decimal to Binary
Decimal Octal
Binary Hexadecimal
40
Example
12510 = ?2 2 125
2 62 1
2 31
2 0
2 15
2 1
2 7
1
3
1
1
1
0
1
12510 = 11111012
41
Decimal to Binary
2 13 1 LSB
2 6 0
2 3 1
2 1 1 MSB
0
(13)10 = (1101)2
42
Fractions
⚫ Decimal to binary .14579
x
3.14579 2
0.29158
x 2
0.58316
x
2
1.16632
x 2
0.33264
x
2
11.001001... 0.66528
x
2
1.33056
etc. 43
Decimal to Octal
Decimal Octal
Binary Hexadecimal
44
Example
123410 = ?8
8 1234
154 2
8 19
8 22 3
8 0 2
123410 = 23228
45
Decimal to Hexadecimal
Decimal Octal
Binary Hexadecimal
46
Example
123410 = ?16
16 1234
16 77 2
16 4 13 = D
0
123410 = 4D216
47
Decimal to Hex
16 2989 13 LSP
16 186 10
16 11 11
0 MSP
(2989)10 = (BAD)16
48
Binary to Octal
Decimal Octal
Binary Hexadecimal
49
Binary to Octal
⚫ Technique
1. Divide the binary digits into groups of three (starting from the right).
1. Divide the binary digits into groups of three (starting from the radix
point).
50
Example
10110101112 = ?8
1 011 010 111
1 3 2 7
10110101112 = 13278
51
Binary to Hexadecimal
Decimal Octal
Binary Hexadecimal
52
Binary to Hexadecimal
⚫ Technique
⚫ Binary to Hexadecimal [Integers]
1. Divide the binary digits into groups of four (starting from the right).
2. Convert each group of four binary digits to one hexadecimal digit
53
Example
10101110112 = ?16
10 1011 1011
2 B B
10101110112 = 2BB16
54
Octal to Hexadecimal
Decimal Octal
Binary Hexadecimal
55
Octal to Hexadecimal
⚫ Technique
⚫ Use binary as an intermediary
56
Example
10768 = ?16
1 7 6
0
001 000 111 110
2 3 E
10768 = 23E16
57
Hexadecimal to Octal
Decimal Octal
Binary Hexadecimal
58
Hexadecimal to Octal
⚫ Technique
⚫ Use binary as an intermediary
59
Example
1F0C16 = ?8
1 0 C
F
0001 1111 0000 1100
1 7 4 1 4
1F0C16 = 174148
60
Octal to Binary
Decimal Octal
Binary Hexadecimal
61
Octal to Binary
⚫ Technique
⚫ Convert each octal digit to a 3-bit equivalent
binary representation
62
Example
7058 = ?2
7 0 5
7058 = 1110001012
63
Hexadecimal to Binary
Decimal Octal
Binary Hexadecimal
64
Hexadecimal to Binary
⚫ Technique
⚫ Convert each hexadecimal digit to a 4-bit
equivalent binary representation
65
Example
10AF16 = ?2
1 0 A F
10AF16 = 00010000101011112
66
LOGIC GATES
⚫ A logic gate is an elementary building block of a digital
circuit.
⚫ Logic gates can be created using transistor technology, that
67
AND GATE
For AND gate, if both the inputs are 1 the output is
1; otherwise, the output is 0.
68
OR GATE
OR Gate: For OR gate, if both the inputs are 0 the output is
0; otherwise, the output is1.
69
NOT GATE
NOT Gate: A NOT gate accepts one input signal (0 or 1)
and returns the complementary (opposite) signal as output.
70
NAND GATE
NAND Gate: For NAND (“NOT of AND”) gate, if both the
inputs are 1, the output is 0; otherwise, the output is 1.
71
NOR GATE
NOR Gate: The NOR (“NOT of OR”) gate, if both the
inputs are 0, the output is 1; otherwise, the output is 0.
72
XOR GATE
XOR Gate: For XOR gate, if both the inputs are same, the
output is 0; otherwise, the output is 1.
73
XNOR GATE
XNOR Gate: For XNOR gate, if both the inputs are
same, the output is 1; otherwise, the output is 0.
74
PROPERTIES OF BOOLEAN
ALGEBRA
75
BASIC RULES OF BOOLEAN ALGEBRA
76
Proof For A+𝐴 B =
A+B
A+𝐴B = A.1 + 𝐴
B
= A(1+B) + 𝐴 B
= A + AB + 𝐴 B
= A + B (A + 𝐴)
77
Proof For (A+B)(A+C) = A+BC
78
DeMorgan’s
Theorems
(i)
(ii)
79
EXAMPLES
1. Implement the Boolean Expression
using basic Gates
80
2. Simplify the boolean expression
and realize using basic gates.
81
3. Write the boolean expression for the given logic diagram
82
Simplifying Boolean expressions using NAND
only and NOR only
83
84
Definition of Combinational Logic
• Combinational Logic deals with the techniques
of “combining” the basic gates into circuits
that performs some desired function.
• Examples – Adders, Subtractors, Decoders.
Encoders, Multipliers etc
• Logic circuits without feedback from output
to input.
• Logic circuits that contain no memory
85
86
General Logic Design Sequence
87
Problem statements to Truth Table
88
89
90
Combinational Logic Specification
• Three ways
1. Logic Diagram: Graphical representation
2. Truth Table: A list that shows all the output states in tabular
form for each possible combination of input variable.
3. Boolean Equations: Algebraic expression showing the
operation of the logic circuit for each input variable.
98
Boolean Equations
99
Minterms
• A minterm is a special product of literals, in which each
input variable appears exactly once.
• A function with n variables has 2n minterms
• Each minterm is true for exactly one combination of
inputs
Minterm Is true when… Shorthand
x’y’z’ x=0, y=0, z=0 m0
x’y’z x=0, y=0, z=1 m1
x’yz’ x=0, y=1, z=0
m2
x’yz x=0, y=1, z=1 m3
xy’z’ x=1, y=0, z=0 m4
xy’z x=1, y=0, z=1 m5
xyz’ x=1, y=1, z=0 m6 100
Maxterms
• A maxterm is a special sum of literals, in which each
input variable appears exactly once.
• A function with n variables has 2n maxterms
• Each maxterm is false for exactly one combination of
inputs
Maxterm Is false when… Shorthand
x+y+z x=0, y=0, z=0 M0
x + y + z’ x=0, y=0, z=1 M1
x + y’ + z x=0, y=1, z=0 M2
x + y’ + z’ x=0, y=1, z=1 M3
x’ + y + z x=1, y=0, z=0 M4
x’ + y + z’ x=1, y=0, z=1 M5
x’ + y’ + z x=1, y=1, z=0 M6
x’ + y’ + z’ x=1, y=1, z=1 M7
101
Relation of Minterm to Maxterm
103
Conversion to Canonical Form
• SOP to canonical:
• Identify the missing variable in each AND term
• AND the missing term and its complement with
the original AND term
• Expand the term by distribution property
• POS to canonical:
• Identify the missing variable in each OR term
• OR the missing term and its complement with the
original OR term
• Expand the term by distribution property
104
105
106
107
108
123
124
127
Prime Implicants and Essential Prime
Implicants
130
131
Minimal sum obtained
132
BCD to Excess-3 Conversion
W=A+BC+BD=A+B(C+D)
X=B’C+B’D+BC’D’=B’(C+D)+BC’D’
Y=CD+C’D’
Z=D’
Logic Diagram
Show the grouping of Maxterms. Mention Prime Implicates
and Essential prime implicates. Also Find the Minimal
Product .
J = f (x,y,z) = ∏ (0,3,4,7)
145
Minimal Product
146
147
Minimal Product
148
Quine-McCluskey Tabular Method
• simplify the following Boolean function,
f(W,X,Y,Z)=∑m(2,6,8,9,10,11,14,15) using Quine-
McClukey tabular method.
149
150
151
152
153
End of Unit1
25/06/2024 154