Dlcov 1
Dlcov 1
me/jntua
Presented by
Mr. K.M.D.Rajesh babu,
Assistant Professor,
Department of ECE, Vemu Institute of Technology
MODULE–III
NUMBERSYSTEMS
Number systems: Complements of Numbers,
Codes- Weighted and Non-weighted codes and its
Properties, Parity check code and Hamming code.
Symbols are 0,1 Symbols are Symbols are from Symbols are from
0,1,2,3,4,5,6 and7 0-9 0-9 and
A,B,C,D,E,F
Octal to Binary
Binary to Octal
Hexa to Binary
Binary to Hexa
Oct
Dec Bin
Hexa
Oct
Dec Bin
Hexa
Complements
2.The sum of the weights of these binary bits, whose value is 1 is equal to
the decimal digit which they represent.
3.Inother words, if w1, w2, w3 and w4 are the weights of the binary
digits, and x1, x2, x3 and x4 are the corresponding bit values, then the
decimal digit N=w4x4 + w3x3+w2x2+w1x1 is represented by the
binary sequence x4x3x2x1.
Presented by
Mr. K.M.D.Rajesh babu,
Assistant Professor,
Department of ECE, Vemu institute of Technology
Parity bits
Decimal Message Parity bits Parity bits
no. bits (even) (odd)
0 000 0 1
1 001 1 0
2 010 1 0
3 011 0 1
4 100 1 0
5 101 0 1
6 110 0 1
7 111 1 0
Hamming code
• It is an error detection and correction code
• Invented by Richard W. Hamming
• Steps involved in the Hamming code
1. Selecting the number of redundant bits
2. Choosing the location of redundant bits
3. Assigning the values to redundant bits
4. How to detect and correct the error in the hamming code?
2𝑃 ≥ 𝑛 + 𝑃 + 1
For example msg bits n=4
Let p=2
22 ≥ 4 + 2 + 1
4≥ 7(condition fail)
Let p=3
23 ≥ 4 + 2 + 1
8≥8(condition true)
So select 3 parity bits for 4 bit message to create hamming code
Bit Location 7 6 5 4 3 2 1
Bit designation D4 D3 D2 P3 D1 P2 P1
Bit Location 7 6 5 4 3 2 1
Bit designation D4 D3 D2 P3 D1 P2 P1
(data bits)
(parity bits)
𝑃1 = 3 𝑥𝑜𝑟 5 𝑥𝑜𝑟7
𝑃2 = 3 𝑥𝑜𝑟 6 𝑥𝑜𝑟7
𝑃3 = 5 𝑥𝑜𝑟 6 𝑥𝑜𝑟7
www.android.previousquestionpapers.com | www.previousquestionpapers.com | https://telegram.me/jntua
www.android.universityupdates.in | www.universityupdates.in | https://telegram.me/jntua
Bit Location 7 6 5 4 3 2 1
Bit designation D4 D3 D2 P3 D1 P2 P1
Binary 01
111 110 101 100 011 001
representation 0
(data bits)
(parity bits)
Presented by
Mr. K.M.D.Rajesh babu,
Assistant Professor,
Department of ECE, Vemu Institute of Technology
• Consensus
AB+A’C+BC=AB+A’C
(A+B) (A’+C) (B+C)=(A+B) (A’+C)
• Transposition theorem
(A+B)(A+C)= A + BC
ത+ 𝐶)(𝐷
• 𝐹 = 𝐴 + (𝐵 ഥ+ 𝐵𝐸ത)
• NAND logic
• 𝐹 = 𝐴𝐵 + 𝐸 (𝐶 + 𝐷)
3 variable function
𝒎𝟎 𝒎𝟏 𝒎𝟑 𝒎𝟐 𝒘 ′ 𝒙 ′ 𝒚′ 𝒛 ′ 𝒘′ 𝒙′ 𝒚′ 𝒛 𝒘′ 𝒙 ′ 𝒚 𝒛 𝒘′ 𝒙′ 𝒚 𝒛′
𝒎𝟒 𝒎𝟓 𝒎𝟕 𝒎𝟔 𝒘 ′ 𝑥 𝒚′ 𝒛 ′ 𝒘′ 𝑥 𝒚′ 𝒛 𝒘′ 𝑥 𝒚 𝒛 𝒘′ 𝑥 𝒚 𝒛 ′
𝒎𝟖 𝒎𝟗 𝒎𝟏𝟏 𝒎𝟏𝟎 w 𝒙′ 𝒚′ 𝒛′ 𝒘 𝒙′ 𝒚′ 𝒛 𝒘 𝒙′ 𝒚 𝒛 𝒘 𝒙′ 𝒚 𝒛′
DETERMINATION OF PRIME
IMPlICANTS
• List of minterms that specify the function in first coloumn.
• The process compares each min term with every other minterm.
If two min terms differ in only one variable, that variable is
removed and remaining variables are considered.
Step2: Any two min terms that differ from each other by only one
variable can be combined,
and the unmatched variable removed. The minterms in one
section are compared with
those of the next section down only.
Step 3: The terms of column (b) have only three variables. The
searching and comparing Don’t write or
place any image
process is repeated for the terms in column (b) to form
in this area
the two-variable terms of column (c).
Step 4: The unchecked terms in the table form the prime implicant
www.android.previousquestionpapers.com | www.previousquestionpapers.com | https://telegram.me/jntua
www.android.universityupdates.in | www.universityupdates.in | https://telegram.me/jntua
Simplify the following Boolean function by using the tabulation method: F(w, x, y, z) =
σ ( 0, 1,2,8,10,11,14, I5)
Quine-McCluskey minimization
a method
b c
w x y z w x y z w x y z
0- 0 0 0 0 (0,1)- 0 0 0- (0, 2 8,10) - 0 - 0
(0, 8 2,10) - 0 - 0
1- 0 0 0 1 (0,2)- 0 0 -0
2- 0 0 1 0 (0,8)- - 0 00 (10,11,14,15) 1 - 1–
(10, 14, 11, 15) 1 - 1 -
8- 1 0 0 0
10-1 0 1 0 (2,10) - 010 F= W’ X’Y’ + X’Z’+ WY
(8, 10) 10-0
11-1 0 1 1 (10,11) 101–
14-1 1 1 0 (10,14) 1–10
15-1 1 1 1 (11,15) 1 - 1 1
www.android.previousquestionpapers.com | www.previousquestionpapers.com | https://telegram.me/jntua
www.android.universityupdates.in | www.universityupdates.in | https://telegram.me/jntua
Quine-McCluskey minimization
method
Don’t write or
place any image
in this area
Quine-McCluskey minimization
method
Simplify the following Boolean function by using the tabulation method: F(w, x, y, z) =
σ (1,4,6,7,8,9, 10, 11, 15)
Don’t write or
place any image
in this area
Quine-McCluskey minimization
method
Don’t write or
place any image
in this area
Cominational Logic
Circuits
Logic circuits for digital systems may be combinational or sequential
Don’t write or
place any image
in this area
DESIGN PROCEDURE
ADDERS
• Digital computers perform the basic arithmetic
operation is the addition of two binary digits.
• A combinational circuit that performs the addition of
two bits is called a half-adder. Performs the addition of
three bits is Full-adder.
Half-Adder.
1. Define problem: Addition of two binary digits.
2. Define i/o variables: input variables are 2 and
Don’t write or
output are 2 place any image
in this area
3. Assign x, y as input and Sum, Carry are output
variables .
www.android.previousquestionpapers.com | www.previousquestionpapers.com | https://telegram.me/jntua
www.android.universityupdates.in | www.universityupdates.in | https://telegram.me/jntua
4. Define TT
x y Sum
carry
0 0 0 0
0 1 1 0
1 0 1 0
1 1 0 1
Don’t write or
place any image
in this area
4. Truth table
xyz S C
000 0 0
001 1 0
010 1 0
011 1 1
100 1 0
101 0 1
110 0 1
Don’t write or
111 1 1 place any image
in this area
Don’t write or
S = x’y’z+ x’yz’+xy’z’+xyz place any image
in this area
C = xy + xz + yz
Don’t write or
place any image
in this area
MAGNITUDE COMPARATOR
Don’t write or
place any image
in this area
Don’t write or
place any image
in this area
Cominational Logic
Circuits
Logic circuits for digital systems may be combinational or sequential
Don’t write or
place any image
in this area
DESIGN PROCEDURE
ADDERS
• Digital computers perform the basic arithmetic
operation is the addition of two binary digits.
• A combinational circuit that performs the addition of
two bits is called a half-adder. Performs the addition of
three bits is Full-adder.
Half-Adder.
1. Define problem: Addition of two binary digits.
2. Define i/o variables: input variables are 2 and
Don’t write or
output are 2 place any image
in this area
3. Assign x, y as input and Sum, Carry are output
variables .
www.android.previousquestionpapers.com | www.previousquestionpapers.com | https://telegram.me/jntua
www.android.universityupdates.in | www.universityupdates.in | https://telegram.me/jntua
4. Define TT
x y Sum carry
0 0 0 0
0 1 1 0
1 0 1 0
1 1 0 1
Don’t write or
place any image
in this area
FULL-ADDER
4. Truth table
xyz S C
000 0 0
001 1 0
010 1 0
011 0 1
100 1 0
101 0 1
110 0 1
Don’t write or
111 1 1 place any image
in this area
Don’t write or
S = x’y’z+ x’yz’+xy’z’+xyz place any image
in this area
C = xy + xz + yz
Don’t write or
place any image
in this area
Don’t write or
place any image
in this area
Full-Subtractor
Don’t write or
place any image
in this area
MAGNITUDE COMPARATOR
Don’t write or
place any image
in this area
Decoder
Don’t write or
place any image
in this area
Don’t write or
place any image
in this area
8X3 Encoder
Don’t write or
place any image
in this area
Encoder
Don’t write or
place any image
in this area
Enabled Decoder
Multiplexer
MULTIPLEXER
Don’t write or
place any image
• It is a combinational circuit in this area
• Many input and one output
• Depending on select i/p, one of the data i/p is transferred to
the o/p
www.android.previousquestionpapers.com | www.previousquestionpapers.com | https://telegram.me/jntua
www.android.universityupdates.in | www.universityupdates.in | https://telegram.me/jntua
Multiplexer
• Example of multiplexers are 2𝑛 𝑋1 where n = 1,2,3,4, … etc.
Don’t write or
place any image
in this area
Multiplexer
• Example of multiplexers are 2𝑛 𝑋1 where n = 1,2,3,4, … etc.
Don’t write or
place any image
in this area
4x1 Multiplexer
Don’t write or
place any image
in this area
Multiplexer
Construct a 8X1multiplexer using 4X1multiplexer
Don’t write or
place any image
in this area
16 X 1 muxer
Don’t write or
place any image
in this area
16 X 1 muxer
Construct a 16 : 1 Mux using only 2 : 1 Mux
Don’t write or
place any image
in this area
Demultiplexer
• It is a combinational circuit
Don’t write or
place any image
in this area
Demultiplexer
Don’t write or
place any image
in this area
Demultiplexer
Don’t write or
place any image
in this area
Code convertor
Don’t write or
place any image
in this area
Code convertor
Don’t write or
place any image
in this area
Code convertor
Don’t write or
place any image
in this area