DLD--MODULE--1
DLD--MODULE--1
(ECE2002)
2
Module-2 Syllabus
• Gate Level minimization – SOP and POS forms – The Karnaugh’s map
method – Four and Five variable functions – don’t care conditions.
Combinational Logic Functions: Analysis and design procedure –
Non-arithmetic logic functions – MUX, DEMUX, Code converters, Encoders,
decoders, Parity checker and generator. Arithmetic Circuits – Adders,
subtractors, BCD adder and Multiplier
3
Module-3 Syllabus
4
Module-4 Syllabus
5
Module-5 Syllabus
Hardware Description Language :
6
Text Books
1. M. Morris R. Mano and Michael D. Ciletti , “Digital Design With an Introduction to the
Verilog HDL”,6th Edition, Prentice Hall of India Pvt. Ltd., 2014.
2. Stephen Brown and ZvonkoVranesic, “Fundamentals of Digital Logic with Verilog
Design”, Third Edition, McGraw-Hill Higher Education, 2013.
Reference Book(s):
1. Mandal ”Digital Electronics Principles & Application, McGraw Hill Edu,2013.
2. Comer “Digital Logic & State Machine Design, Oxford, 2012.
3. William Keitz, Digital Electronics-A Practical Approach with VHDL,Pearson,2013
Required Software:
1. Multisim
2. VHDL Simulator (XiLinx/ModelSim)
3. Proteus
7
List of Experiments:
8
Signal
A signal is a function or a data set representing a physical quantity
or variable. Usually, the signal encapsulates information about the
behavior of a physical phenomenon, for example, electrical current
flowing through a resistor, sonar sound waves propagating under
water, or earthquakes. Any Physical
Quantity
Sonar
Sound Current 9
Wave Voltage
Dependent Variable
1D Signal
Audio Speech
Video Image
Independent Variable
2D/3D Signal
Time Space
Signal
Continuous Time Discrete Time Discrete
Continues Value Signal Discrete Time Value Signal
Continuous Time Continues Value Signal [Digital Signal]
Discrete Value Signal
Analog & Digital vs
Continuous & Discrete
▹ The concept of continuous time is often confused with that of analog. The
two are not same.
▹ The same is true of the concepts of discrete and digital.
Continuous Time
Continuous Value
Signal
Discrete Time
Continuous Value
Signal
Quiz:
The following two signals are represented in computer. Identify the
Analog signal and Discrete Signal.
Digital System
A system is a defined by the
type of input and output it
deals with.
System
✔ Since we are dealing with signals, so in our case, our system would be
a mathematical model, a piece of code/software, or a physical device,
or a black box whose input is a signal and it performs some processing
on that signal, and the output is a signal.
Communication System
Business Transaction
Transistor
Source: https://www.youtube.com/watch?v=Xpk67YzOn5w
The World of Digital….
Video
Number System
▹ In a digital system, the system can understand only the optional number
system. In these systems, digits symbols are used to represent different
values, depending on the index from which it settled in the number system.
▹ In simple terms, for representing the information, we use the number
system in the digital system.
Examples of Base in Number Systems
▹
Binary Number System
▹
Octal Number System
▹
Hexadecimal Number System
▹
24
Binary to Decimal Conversion
25
(10110.001)2=(1×24)+(0×23)+(1×22)+(1×21)+(0×20)+
(0×2-1)+(0×2-2)+(1×2-3)
(10110.001)2=(1×16)+(0×8)+(1×4)+(1×2)+(0×1)+
(0×1⁄2)+(0×1⁄4)+(1×1⁄8)
(10110.001)2=16+0+4+2+0+0+0+0.125
(10110.001)2=(22.125 )10
(10110101011.0011)2
1. Firstly, we make pairs of four bits on both sides of the binary point.
111 1010 1011.0011
On the left side of the binary point, the first pair has three bits. To make it a complete pair of
four bits, add one zero on the extreme side.
0111 1010 1011.0011
(152)10=(10011000)2 (152.25)10=(10011000.01)2
Decimal to Octal Conversion
29
Example: (152.25)10
Step 1:
Divide the number 152 and its successive quotients with base 8.
Step 2:
Operation Quotient Remainder
Now, perform the multiplication of 0.25 and
152/8 19 0 successive fraction with base 8.
19/8 2 3
Operation Result carry
2/8 0 2
0.25×8 __.00 2
(152)10=(230)8
(0.25)10=(.2)8
(152.25)10=(230.2)8
Decimal to Hex Conversion
30
Example: (152.25)10
Step 1:
Divide the number 152 and its successive quotients with base 16.
Step 2:
Operation Quotient Remainder
Now, perform the multiplication of 0.25 and
152/16 9 8 successive fraction with base 16.
9/16 0 9
Operation Result Carry
(152)10=(98)16 0.25×16 __.00 4
(0.25)10=(.4)16
(152.25)10=(98.4)16
Octal to Decimal Conversion
31
(152.25)8
Step 1:
We multiply each digit of 152.25 with its respective positional weight, and last we add the
products of all the bits with its weight.
(152.25)8=(1×82)+(5×81)+(2×80)+(2×8-1)+(5×8-2)
(152.25)8=64+40+2+(2×1⁄8)+(5×1⁄64)
(152.25)8=64+40+2+0.25+0.078125
(152.25)8=106.328125
(152.25)8=(001101010.010101)2
So, the binary number of the octal number 152.25
is (001101010.010101)2
Octal to Hex Conversion
33
Example 1: (152.25)8
Step 1:
We write the three-bit binary digit for 1, 5, 2, and 5.
(152.25)8=(001101010.010101)2
So, the binary number of the octal number 152.25 is (001101010.010101)2
Step 2:
1. Now, we make pairs of four bits on both sides of the binary point.
0 0110 1010.0101 01
On the left side of the binary point, the first pair has only one digit, and on the right side, the last
pair has only two-digit. To make them complete pairs of four bits, add zeros on extreme sides.
0000 0110 1010.0101 0100
2. Now, we write the hexadecimal digits, which correspond to each pair.
(0000 0110 1010.0101 0100)2=(6A.54)16
Hex to Binary Conversion
34
Example 1: (152A.25)16
We write the four-bit binary digit for 1, 5, A, 2, and 5.
(152A.25)16=(0001 0101 0010 1010.0010 0101)2
So, the binary number of the hexadecimal number 152.25 is (1010100101010.00100101)2
Hex to Octal Conversion
35
Example 1: (152A.25)16
Step 1:
We write the four-bit binary digit for 1, 5, 2, A, and 5.
(152A.25)16=(0001 0101 0010 1010.0010 0101)2
So, the binary number of hexadecimal number 152A.25 is (0011010101010.010101)2
Step 2:
3. Then, we make pairs of three bits on both sides of the binary point.
001 010 100 101 010.001 001 010
4. Then, we write the octal digit, which corresponds to each pair.
(001010100101010.001001010)2=(12452.112)8
36
Mathematical Operations (Hex)
Addition
Subtraction A8D2 A8D2
Multiplication
-3EAC +3EAC
Division
------------- -------------
Power of 2
37
2KBit
1
2 4KBit
4 1 Nibble 8KBit
8 1 Byte 16KBit
16 1 Word 1Mega Bit
32 2MBit
64 4MBit
128 8MBit
256 1Giga Bit
512 2GBit
1024 1Kilo Bit 4GBit
1 Tera Bit
Binary Number System
38
Only for positive
Numbers For both positive
and Negative
Unsigned Number Numbers
Representation
Signed Number
Representation
Ex:
(+3) = 0011 (-3) = 1011
(+7) = 0111 (-7) = 1111
(+0) = 0000 (-0) = 1000
1’s Complement Form
▹ 1‘s
Binary Unsigned
complement
value interpretation
interpretation
00000000 +0 0
00000001 1 1
⋮ ⋮ ⋮
01111101 125 125
01111110 126 126
01111111 127 127
10000000 −127 128
10000001 −126 129
10000010 −125 130
⋮ ⋮ ⋮
11111101 −2 253
11111110 −1 254
11111111 −0 255
2‘s
Binary Unsigned
2’s Complement Form value
complement
interpretation
interpretation
▹ 00000000 0 0
00000001 1 1
⋮ ⋮ ⋮
01111110 126 126
01111111 127 127
10000000 −128 128
10000001 −127 129
10000010 −126 130
⋮ ⋮ ⋮
11111110 −2 254
11111111 −1 255
Negative Number
Representation
Sign Ones' Two's
Binary Unsigned
magnitude complement complement
0000 0 0 0 0
0001 1 1 1 1
0010 2 2 2 2
0011 3 3 3 3
0100 4 4 4 4
0101 5 5 5 5
0110 6 6 6 6
0111 7 7 7 7
1000 8 −0 −7 −8
1001 9 −1 −6 −7
1010 10 −2 −5 −6
1011 11 −3 −4 −5
1100 12 −4 −3 −4
1101 13 −5 −2 −3
1110 14 −6 −1 −2
1111 15 −7 −0 −1
Complements of numbers
▹
44
45
46 Subtraction with complements
Subtraction with 9’s Complement
47
Boolean algebra is a branch of mathematics that includes methods for manipulating logical
variables and logical expressions.
The Greek philosopher Aristotle founded a system of logic based on only two types of
propositions: true and false.
The English mathematician George Boole (1815–1864) sought to give symbolic form to
Aristotle’s system of logic—hence the name Boolean algebra.
In the mid-twentieth century, Claude Shannon, an electrical engineer and mathematician, applied
Boole’s ideas to digital circuits.
Like algebra, Boolean algebra is based on a set of rules that are derived from a small number of
basic assumptions. Logic values involve elements that take on one of two values, 0 and 1.
Therefore, a logic variable can only be equal to 0 or 1.
A logic function is an expression, that describes the logic operations between its logic variables.
Similarly, a logic function can only be equal to 0 or 1.
Closure :
Any logical operation yields a value in the set {0,1}.
Identity :
(a) X + 0 = X (b) X·1=X
Commutative:
(a) X+Y =Y+X (b) X·Y=Y·X
Distributive:
(a) X·(Y+Z)=(X·Y)+(X·Z) (b) X+(Y·Z)=(X+Y) ·(X+Z)
Complements:
(a) X+X’=1 (b) X·X’=0
Distinct:
0≠1
Theorem 1:
(a) X+X=X (b) X.X=X
Theorem 2:
(a) X+1=1 (b)X·0=0
Theorem 3: Involution :
(X’)’=X
Theorem 4: Associative :
(a) X+(Y+Z)=(X+Y)+Z (b) X· (YZ)=(XY) ·Z
Theorem 5: DeMorgan :
(a) (X+Y)’=X’Y’ (b) (XY)’=X’+Y’
Theorem 6: Absorption :
(a) X+XY=X (b) X· (X+Y)=X
The important property of Boolean algebra is called duality principle and it states that
every algebraic expression deducible from the postulates of Boolean algebra remains valid
if the operators and identity elements are interchanged.
Proof: (X+Y)’=X’Y’
According to the complementing law, P+P’=1 and P·P’=0.
Proof: (XY)’=X’+Y’
According to the complementing law, P+P’=1 and P·P’=0.
Boolean algebra is an algebra that deals with binary variables and logic
operations. A Boolean function described by an algebraic expression consists of
binary variables.
Example: F1=X+Y’Z
A Boolean function can be transformed from an algebraic expression into a
circuit diagram composed of logic gates connected in a particular structure.
Variables = (X, Y, Z)
Literals = (X, Y’, Z)
Terms =(1 NOT term, 1 AND term and 1 OR term)
The operator precedence for evaluating Boolean expressions is (1) parentheses, (2) NOT, (3) AND,
(4) OR
Literals, Variables and Terms
DeMorgan’s theorems for any number of variables resemble the two variable case in form
and can be derived by successive substitutions similar to the method used in the preceding
derivation.
(A+B+C+D+……..F)’ = A’B’C’D’…….F’
(ABCD..F)’ = A’+ B’+ C’+ D’ + ……. + F’
Examples:
Find the complement of the functions F1= X’YZ’ + X’Y’Z and F2= X(Y’Z’ +YZ) by
applying DeMorgan’s theorem:
Logical function
Min term
Max term
Tabular form
Logical Gates
Generally, we use SOP form to calculate the sum of minterms and POS form to calculate
product of maxterms. If your initial expression is given in POS form and you have to
represent it in sum of minterms, you can convert your POS to SOP form to proceed for the
sum of minterms representation.
Exp. You have given the following expression and asked to represent it in sum of minterms
form
F = (A’+B)(A+B’) ------ POS Form
= A’.A+A’.B’+AB+B.B’ -------(Multiply the product)
= A’B’+AB --------(A.A’=0,B.B’=0) (SOP Form)
To convert SOP to POS, we use distributive law
Exp:
Exp
Consensus Theorem or Redundancy Theorem
Shortcut Method:
1) Three variable
F1 = AB + A’C + BC
2) Each Variable comes twice
= AB + A’C + BC(A+A’)
= AB + A’C + ABC + A’BC
3) One variable is
= AB + A’C complemented
F2 = (A + B)(A’ + C)(B + C)
= (A + B)(A’ + C)(B + C + 0) If satisfy, remove the term
= (A + B)(A’ + C)(B + C + AA’)
without the complemented
= (A + B)(A + B + C)(A’ + C)(A’ + C + B)
= (A + B)(A’ + C)
variable
Propagation Delay: The time required for the output of a digital circuit to
change states after a change at one or more of its inputs. The speed of a
digital circuit is specified in terms of the propagation delay time.
Fan-in: Fan-in (input load factor) is the number of input signals that can
be connected to a gate without causing it to operate outside its intended
operating range
Fan-out: Fan-out (output load factor) is the maximum number of inputs
that can be driven by a logic gate.
Speed Power Product: The product of the gate speed or propagation
delay of an electronic circuit and its power dissipation.