πŸŽ“ Computer Science & Engineering Portal

Master Engineering Disciplines with Structured Notes

Comprehensive academic lecture notes, exam-oriented unit summaries, laboratory manuals, and previous year question papers designed strictly for university students.

πŸ“‘

University Syllabi

AKTU & AICTE aligned semester guidelines.

πŸ“

Exam Question Papers

Previous 5 years solved university papers.

πŸ’‘

Lab Manuals & Viva

Practical codes with outputs & interview Qs.

Core Subjects & Units Hub

Click on any specific unit to immediately view its lecture notes below

Viewing All Lectures
Digital Electronics - Complete Q&A

Digital System and Binary Numbers

PART-1: Number System and its Arithmetic, Signed Binary Numbers
Que 1.1. Define number system. Give classification of number system. Also define signed and unsigned binary number.

A. Number system: It is a language of digital systems consisting of a set of symbols called digits with rules defined for their addition, multiplication and other mathematical operations.

B. Classification of number system: The classification of number system is as follows:

  1. Decimal number system: It has 10 symbols, so the base or radix of this number system is 10. The 10 symbols are 0, 1, 2, 3, 4, 5, 6, 7, 8, 9.
  2. Binary number system: It is a base 2 number system. The two binary digits are 1 and 0.
  3. Octal number system: It has a base of 8, it has eight possible digits 0, 1, 2, 3, 4, 5, 6 and 7.
  4. Hexadecimal number system: It is a base 16 number system. It has digits from 0 to 9, A, B, C, D, E and F.

C. Signed binary number: Binary number that carry identification as to their polarity is called signed binary number. Plus and minus signs for positive and negative numbers can be represented in a digital format. The three major signed binary notations are sign magnitude notation, 1's complement notation and 2's complement notation.

D. Unsigned binary number: In these type of numbers we do not consider the (+) or (-) sign and concentrate only on the magnitude (absolute value) of numbers.

Que 1.2. Convert the following.

1. (5162)10 = ( )2

25162
22581- 0 ↑
21290- 1 ↑
2645- 0 ↑
2322- 1 ↑
2161- 0 ↑
280- 1 ↑
240- 0 ↑
220- 0 ↑
210- 0 ↑
25- 0 ↑
22- 1 ↑
21- 0 ↑
0- 1 ↑

Result: (5162)10 = (1010000101010)2

2. (11011001)2 = ( )10

1 × 20 = 1
0 × 21 = 0
0 × 22 = 0
1 × 23 = 8
1 × 24 = 16
0 × 25 = 0
1 × 26 = 64
1 × 27 = 128
------------------
Total = 217

Result: (11011001)2 = (217)10

3. (6273)10 = ( )8

86273
8784- 1 ↑
898- 0 ↑
812- 2 ↑
81- 4 ↑
0- 1 ↑

Result: (6273)10 = (14201)8

4. (7860)10 = ( )16

167860
16491- 4 ↑
1630- 11 (=B) ↑
161- 14 (=E) ↑
0- 1 ↑

Result: (7860)10 = (1EB4)16

5. (A23B8)16 = ( )10

8 × 160 = 8
B(11) × 161 = 176
3 × 162 = 768
2 × 163 = 8192
A(10) × 164 = 655360
------------------
Total = 664504

Result: (A23B8)16 = (664504)10

Que 1.3. Convert the following: i. (62.7)8 = ( )16 = ( )2 ii. (BC6)16 = ( )10 = ( )2

i. (62.7)8 = ( )16 = ( )2

Octal to Binary:
6 → 110, 2 → 010, 7 → 111
Binary = 110010.111

Binary to Hex: Group in 4s (0011 0010 . 1110) → 3 2 . E

Result: (62.7)8 = (32.E)16 = (00110010.1110)2

ii. (BC6)16 = ( )10 = ( )2

(BC6)16 = 11 × 162 + 12 × 161 + 6 × 160 = (3014)10

Hex to Binary: B → 1011, C → 1100, 6 → 0110

Result: (BC6)16 = (3014)10 = (101111000110)2

Que 1.4. Add the following numbers: i. (ABC)16 + (CDE)16 ii. (77)8 + (107)8

i. (ABC)16 = 1010 1011 1100 (in binary)
(CDE)16 = 1100 1101 1110
-----------------------------
Sum = 10111 1001 1010 = (179A)16

ii. (77)8 = 000 111 111 (in binary)
(107)8 = 001 000 111
-----------------------------
Sum = 010 000 111 = (206)8

Que 1.5. Perform the following subtraction using 2's complement method: i. 01000 - 01001 ii. 0011.1001 - 0001.1110

i. 01000 - 01001
Assuming X = 01000, Y = 01001
1's complement of Y = 10110
2's complement of Y = 10111
X + (2's comp of Y) = 01000 + 10111 = 11111
There is no end carry.
X - Y = -(2's complement of 11111) = -(00001)

ii. 0011.1001 - 0001.1110
Assuming X = 0011.1001, Y = 0001.1110
1's complement of Y = 1110.0001
2's complement of Y = 1110.0010
X + (2's comp of Y) = 0011.1001 + 1110.0010 = 1 0001.1011
Since carry is generated, discard carry. Answer is 0001.1011

PART-2: Logic Simplification and Combinational Logic Design
Que 1.6. Describe the binary codes. Show the classification of binary codes in tabular format.

1. Code is the representation of group of symbols, words, or letters. As the digital data is used as group of binary numbers so, we call it as the binary codes.

2. These binary codes are used for the designing and analysis of digital circuit, computer applications, in digital communication. The codes are classified into certain following categories: Weighted codes, Non-weighted codes, Reflective codes, Sequential codes, Alphanumeric codes, Error detecting & correcting codes.

  • Codes
    • Weighted codes
      • Binary
      • BCD (8421, 2421)
    • Non-weighted codes
      • Excess-3
      • Gray
    • Reflective codes
      • 2421
      • Excess-3
    • Sequential codes
      • 8421
      • Excess-3
    • Alphanumeric codes
      • ASCII
      • EBCDIC
    • Error detecting codes
      • Hamming
      • Parity

5. Weighted binary codes are those which obey the positional weight for the number to represent.
6. In non-weighted codes, the positional weights are not assigned.
7. In reflective code, the reflectivity is desirable. For example, in complement subtraction, code for 9 is the complement for 0.
8. In sequential code, each succeeding code is one binary number greater than the preceding code.
9. The alphanumeric codes are designed to represent numbers as well as characters.
10. The error detecting and correcting codes are used to detect and correct the error.

Que 1.7. Represent the decimal number 6 in (i) excess-3 code, (ii) BCD code, (iii) Gray code, (iv) 8421 code and (v) 2421 codes.

i. Excess-3 code: 6 (in BCD) = 0110. Add 3 (0011) → 1001

ii. BCD code: (6)10 = 0110

iii. Gray code: Binary = 0110 → Gray code = 0101

iv. 8421 code: (6)2 = 0110

v. 2421 code: (6)2,4,2,1 = 1100

Que 1.8. Design Binary code to Gray code converter.

Truth Table:

Binary CodeGray Code
DCBAG3G2G1G0
00000000
00010001
00100011
00110010
... (and so on up to 1111)

K-Map Simplification:

Expression for G0

DCBA00011110
00011312
01415716
111211315114
1081911110

G0 = B ⊕ A

Expression for G1

DCBA00011110
00011312
014576
1112131514
1089111110

G1 = C ⊕ B

Simplified Boolean expressions: G3 = D, G2 = C ⊕ D, G1 = C ⊕ B, G0 = B ⊕ A

Logic Diagram:

D C B A G3 G2 G1 G0 (Gray code)
PART-4: Review of Boolean Algebra and Demorgans Theorem
Que 1.11. Discuss about the concept of Boolean algebra.

Boolean algebra is a fundamental concept that deals with the manipulation of binary values, represented as 0 and 1.

Basic concepts: Boolean algebra operates on variables that can only take on two values: 0 (false) or 1 (true). These variables are combined using three basic operations:

  • AND (·): The AND operation represents the logical conjunction. The result of A · B is 1 only if both A and B are 1. Otherwise, the result is 0.
  • OR (+): The OR operation represents the logical disjunction. The result of A + B is 1 if either A or B is 1. Otherwise, the result is 0.
  • NOT (¯): The NOT operation represents the logical negation. The result of ¯A is the opposite of A.
Que 1.12. Define the De Morgans theorem of logic simplification for SOP & POS forms.

First De Morgans theorem: It states, complement of two or more variables and then AND operation on these is equivalent to NOR operation on these variables.
¯(A · B) = ¯A + ¯B

Second De Morgan theorem: It states that complement of two or more variables and then OR operation on these is equivalent to a NAND operation on these variables.
¯(A + B) = ¯A · ¯B

Example: (AB)(CD)(EFG) = (¯A + ¯B) + (¯C + ¯D) + (¯E + ¯F + ¯G)

PART-5: SOP and POS Forms, Canonical Forms
Que 1.13. Explain sum of products (SOP) and product of sums (POS) with example.

Sum of products (SOP): SOP is a way to represent a logical expression using a sum of several product terms. SOP is also known as the "Minterm" representation because each product term represents a unique combination of input variables for which the expression evaluates to 1.
Example SOP expression: F(A, B, C) = A'B'C + A'BC' + AB'C + ABC

Product of sums (POS): POS is another way to represent a logical expression, but it uses a product of several sum terms. POS is also known as the "Maxterm" representation because each sum term represents a unique combination of input variables for which the expression evaluates to 0.
Example POS expression: F(A, B, C) = (A+B+C)(A+B+C')(A+B'+C)(A'+B+C)

PART-6: Karnaugh Maps Method up to Five Variables, Don't Care Conditions
Que 1.16. Minimize the given boolean function using K-map. F(A, B, C,D) = Σm(3, 4, 5, 7, 9, 13, 14, 15)
ABCD00011110
0001132
011415176
1112113115114
108191110

F = ¯A B ¯C + ¯A C D + A ¯C D + A B C

Que 1.18. Simplify the following Boolean function using K-map and also draw the simplified logic circuit using basic gates. f(A, B, C,D) = Σm(0, 1, 5, 6, 12, 13, 14) + d(2, 4)
ABCD00011110
0010113X2
01X415716
1111211315114
10891110

F = B ¯C + ¯A ¯C + A B ¯D

Logic Diagram:

B C A D F
Que 1.22. Implement the Boolean function F(x,y,z) = (1, 2, 3, 4, 6, 7) using NAND gates.

Simplified function via K-map: F(x,y,z) = y + ¯x z + x ¯z

Using De Morgan's: F(x,y,z) = ¯( ¯y · ¯(¯x z) · ¯(x ¯z) )

x ¯x y z F(x,y,z)
Que 1.23. Design an XOR gate by using NAND gate implementation.

The output of 1st NAND gate is Y1 = ¯(AB)

Similarly outputs of second and third NAND gates are Y2 = ¯(A · Y1) and Y3 = ¯(B · Y1)

Output Y = ¯(Y2 · Y3) = A ⊕ B

A B Y
PART-8: Quine McClusky Method (Tabular Method)
Que 1.26. Minimize the following using Quine-McCluskey method: F(A, B, C, D) = Σm(0, 1, 9, 15, 24, 29, 30) + Σd(8, 11, 31)

1. Arrange minterms according to categories of 1's:

No. of 1'sMintermsBinary ABCDEMinterms (2 cell)BinaryMinterms (4 cell)Binary
0m0000000,10000-0,1,8,90--00
1m1
m8
00001
01000
0,8
1,9
8,9
8,24
0-000
0-001
0100-
1-000

2. List of prime implicants:

Prime implicantsA B C D E
8, 241 - 0 0 0
11, 150 1 - 1 1
15, 31- 1 1 1 1
0, 1, 8, 90 - 0 0 -

3. Select the minimum number of prime implicants which must cover the minterms except don't care minterms:

Resulting expression: Y = B C D E + A B C E + A B C D + A C D

Que 1.28. Use Quine-Mc Cluskey (QM) method to solve the following function: F(A,B,C,D) = Σm(5, 7, 8, 9, 10, 11, 14, 15)

Prime Implicant Chart:

Prime implicantsm5m7m8m9m10m11m14m15
¯A B D (5,7)✓✓
B C D (7,15)✓✓
A ¯B (8,9,10,11)✓✓✓✓
A C (10,11,14,15)✓✓✓✓

Therefore, F(A, B, C, D) = A C + A ¯B + ¯A B D

AC A ¯B ¯A B D F = A C + A ¯B + ¯A B D

Labels: ,

Discussion & Queries (<$I18NNumComments$>):

<$CommentPager$>
<$I18NAtCommentTimeWithPermalink$>, <$I18NCommentAuthorSaid$>

<$BlogCommentBody$>

<$BlogCommentDeleteIcon$>
<$CommentPager$>