Digital Electronics Exam Notes

Digital Electronics Notes

Group A


  • Question 1: BCD Representation of 25

  • BCD (Binary Coded Decimal) represents each digit of a decimal number with its binary equivalent.
  • 2 in BCD is 0010, and 5 in BCD is 0101. Therefore, the BCD representation of 25 is 0010 0101.


  • Question 2: Adding Binary Numbers 1011 and 1101

    • Adding 1011 and 1101 in binary:
      1011 +1101 ------ 11000
    • The result is 11000.


  • Question 3: Truth Table of AND Gate

    • An AND gate outputs 1 only when all its inputs are 1.

    • Truth table:
  • Input AInput BOutput
    000
    010
    100
    111
  • Question 4: RTL Stands For

    • RTL stands for Resistor-Transistor Logic.
    • Question 5: Maxterm in Boolean Algebra

      • A maxterm is a Boolean expression that is true for all combinations of the input variables except one.
      • It is the logical sum of the variables, complemented if the variable is 0 and uncomplemented if the variable is 1 in that combination.
      • Example: For two variables A and B, a maxterm could be (A' + B').
      • Question 6: What is a Flip-Flop?

        • A flip-flop is a bistable multivibrator, meaning it has two stable states. It can store one bit of information.
        • It is a fundamental building block of sequential logic circuits.
        • Flip-flops are used for storage, synchronization, and delay elements.
        • Question 7: Output Lines of a 3 to 8 Decoder

          • A 3 to 8 decoder has 3 input lines and 8 output lines.
          • For each unique input, one of the 8 output lines is activated.
          • Question 8: What is a Subtractor?

            • A subtractor is a digital circuit that performs subtraction of two binary numbers.
            • It can be implemented as a half-subtractor (subtracts two bits) or a full-subtractor (subtracts two bits and a borrow-in bit).
            • Group B


              • Question 9: Subtraction Using 2's Complement & Octal Conversion

              • (a) Subtraction X - Y using 2's complement:
                • X = 11010, Y = 1101
                • 2's complement of Y: Invert Y (0010) and add 1, resulting in 0011.
                • Add X and 2's complement of Y: 11010 + 0011 = 11101
              • (b) Convert (2ED)_{16} to octal:
                • First convert hexadecimal to binary: 2 = 0010, E = 1110, D = 1101. So, (2ED)_{16} = 001011101101
                • Group the binary number into sets of 3 from right to left: 001 011 101 101
                • Convert each group to octal: 001 = 1, 011 = 3, 101 = 5, 101 = 5
                • Therefore, (2ED){16} = (1355)8


            • Question 10: Implementing Boolean Function with AND and NOT Gates

              • Given function: F = xy + x'y' + y'z
              • Implementation: Requires AND gates for xy and x'y', NOT gates to generate x' and y', and then combining the terms appropriately. This can be visualized as a circuit diagram with the respective gates connected to realize the function.


            • Question 11: Multiplexer and Difference Between Registers and Counters

              • Multiplexer: A multiplexer (MUX) is a combinational circuit that selects one of several input signals and forwards the selected input to a single output line. The selection is controlled by a set of select lines.
              • Registers vs. Counters:
                • Registers: Registers are used to store data. They consist of flip-flops and store binary information. The stored data remains unchanged until a new value is loaded.
                • Counters: Counters are sequential circuits that count the number of clock pulses. They also consist of flip-flops but are connected in a way that they change state with each clock pulse, effectively counting.


            • Question 12: Logic Gates, 3-Input AND Gate

              • Logic Gates: Logic gates are basic building blocks of digital circuits that perform logical operations on one or more inputs to produce a single output.

              • 3-input AND gate:
                • Schematic block diagram: An AND gate with three inputs (A, B, C) and one output (F).

                • Truth table:
            • ABCOutput (F)
              0000
              0010
              0100
              0110
              1000
              1010
              1100
              1111
            • Question 13: R-S Flip-Flop

              • R-S Flip-Flop:
                • Diagram: A circuit diagram showing an R-S flip-flop, typically constructed with NAND gates or NOR gates.
                • Working: The R-S flip-flop has two inputs, R (Reset) and S (Set). Setting S to 1 and R to 0 sets the flip-flop (Q = 1). Setting R to 1 and S to 0 resets the flip-flop (Q = 0). When both R and S are 0, the flip-flop maintains its current state. A forbidden state occurs when both R and S are 1 simultaneously in a NAND gate implementation, leading to an unpredictable output.
                • Group C

                  • Question 14: Universal Gates and Full Subtractor

                    • (a) Universal Gate: A universal gate is a logic gate that can implement any Boolean function without needing any other type of gate.
                    • (b) NAND and NOR as Universal Gates:
                      • NAND and NOR gates are universal because any other logic gate (AND, OR, NOT, XOR, etc.) can be constructed using only NAND gates or only NOR gates.
                      • Explanation: Illustrate how to construct AND, OR, and NOT gates using only NAND gates and only NOR gates. This involves showing the specific configurations of NAND/NOR gates to achieve the functionality of the other basic gates.
                    • (c) Full Subtractor:
                      • A full subtractor performs subtraction of two bits, taking into account a borrow from a previous stage. It has three inputs: A, B, and Borrow-in (Bin), and two outputs: Difference (Diff) and Borrow-out (Bout).
                      • Implementation with half-subtractors: A full subtractor can be implemented using two half-subtractors and an OR gate. The first half-subtractor subtracts A and B, producing a difference and a borrow. The second half-subtractor subtracts the borrow-in and the difference from the first half-subtractor. The borrow outputs of the two half-subtractors are then ORed to produce the final borrow-out.
                  • Question 15: Boolean Laws and Simplification

                    • Boolean Laws:
                      • List and explain various Boolean laws, including:
                        • Commutative Law: A + B = B + A, AB = BA
                        • Associative Law: (A + B) + C = A + (B + C), (AB)C = A(BC)
                        • Distributive Law: A(B + C) = AB + AC, A + (BC) = (A + B)(A + C)
                        • Identity Law: A + 0 = A, A * 1 = A
                        • Complement Law: A + A' = 1, A * A' = 0
                        • Idempotent Law: A + A = A, A * A = A
                        • Absorption Law: A + AB = A, A(A + B) = A
                        • DeMorgan's Law: (A + B)' = A'B', (AB)' = A' + B'
                    • Simplification Examples:
                      • (a) (A+B+BA)D:
                        • (A + B + BA)D = (A + B(1+A))D = (A + B)D = AD + BD
                      • (b) ABC + ABC' + A'BC + A'BC':
                        • ABC + ABC' + A'BC + A'BC' = AB(C + C') + A'B(C + C') = AB + A'B = B(A + A') = B
                      • (c) ABC + A'BCD + BC:
                        • ABC + A'BCD + BC = ABC + A'BCD + BC(1) = ABC + A'BCD + BC(A+A') = ABC + A'BCD + BCA + BCA' = ABC + BCA + A'BCD +abca' = BC + A'BCD = BC(1 + A'D) = BC
                  • Question 16: K-Map Simplification

                    • Given F(A, B, C, D) = \Sigma (0, 2, 3, 5, 7, 9, 11, 13, 14)
                    • Construct a Karnaugh map with A, B, C, and D as variables.
                    • Place 1s in the K-map cells corresponding to minterms 0, 2, 3, 5, 7, 9, 11, 13, and 14.
                    • Group the 1s into the largest possible groups of powers of 2 (1, 2, 4, 8, etc.).
                    • Write the simplified Boolean expression based on the groupings. The result would be a minimized expression representing the original function.
                      • F(A, B, C, D) = A'B'C'D' + A'B'CD'+ A'BCD + A'BC'D + ABC'D + A'B'CD + ABCD + ABC'D + ABC'D'
                    • After simplification using K-Map, the expression will be shorter.
                  • Question 17: Asynchronous Counter, 4-bit Binary Ripple Counter, and Emitter-Coupled Logic (ECL)

                    • (a) Asynchronous Counter:
                      • An asynchronous counter (ripple counter) is a type of counter where the flip-flops are not clocked simultaneously. The output of one flip-flop triggers the next flip-flop. This means there is a delay (ripple) as the count propagates through the counter.
                    • (b) 4-bit Binary Ripple Counter:
                      • A 4-bit binary ripple counter consists of four flip-flops, typically J-K flip-flops. Each flip-flop divides the frequency of the preceding stage by two. The output of the last flip-flop represents the most significant bit (MSB), and the first flip-flop's output is the least significant bit (LSB). It counts from 0000 to 1111.
                    • (c) Emitter-Coupled Logic (ECL):
                      • ECL is a high-speed bipolar transistor logic family. It avoids transistor saturation, which increases its speed. ECL uses a differential amplifier configuration, providing complementary outputs, and requires a negative power supply. It's known for its high speed but also has higher power consumption compared to other logic families.