Summary of Digital Electronics Notes (B.Tech)
Summary of Digital Electronics Notes (B.Tech)
RAM ROM
Volatile memory. Non-volatile memory.
Data can be read and written. Data can only be read (programmed).
Used for temporary storage. Used for permanent storage.
Explanation:
• J = 1, K = 1 → Toggle state.
Truth Table:
Clock Pulse Q2 Q1 Q0
0 0 0 0
1 0 0 1
2 0 1 0
3 0 1 1
4 1 0 0
5 1 0 1
6 1 1 0
7 1 1 1
Working:
• Q0 toggles with every clock pulse.
• Q1 toggles on Q0’s falling edge, and Q2 toggles on Q1’s falling edge.
• The counter counts from 0 to 7 (3-bit binary count).
Q.23: Design 8:1 multiplexer using 2:1 multiplexer and explain its working.
• 8:1 MUX selects one out of 8 inputs based on 3 select lines (S2, S1, S0).
• To implement it, use 7 units of 2:1 MUX.
Diagram:
1. Combine four 2:1 MUXes in the first stage to reduce 8 inputs to 4.
2. Use two 2:1 MUXes in the second stage to reduce 4 inputs to 2.
3. Use the final 2:1 MUX to produce a single output.
Working:
• Inputs: D0-D7, Select Lines: S2, S1, S0.
• S2 determines the MUX at the final stage, while S1 and S0 control the intermediate stages.
• Based on select lines, the corresponding input is passed to the output.
Truth Table:
BCD (Input) a b c d e f g
0000 (0) 1 1 1 1 1 1 0
0001 (1) 0 1 1 0 0 0 0
… … … … … … … …
Working:
• Logic gates are designed to activate specific segments based on the input BCD code.
• For example, when BCD = 0000, segments a, b, c, d, e, f are turned ON.
Q.25: What is a multiplexer? Draw the logic diagram of 8-to-1 line multiplexer.
• A Multiplexer (MUX) selects one input from multiple inputs based on the control (select)
signals.
• 8:1 MUX has 8 inputs (D0-D7), 3 select lines (S2, S1, S0), and 1 output (Y).
Logic Diagram:
1. Use 3 control lines S2,S1,S0 to select the active input.
2. Outputs are connected through AND gates and combined using an OR gate.
Equation:
Y= S2’S1’S01D0+S2’S1’S0D1+S2S1S0D7
Working:
• Depending on the combination of S2,S1,S0, the corresponding input is routed to the
output.
Q.26: What is D Flip Flop? Draw the logic diagram for it using NAND gates only. Also, write the truth table
for it.
• D Flip-Flop: Transfers the input D to the output Q on a clock edge.
Truth Table:
Working:
• When the clock pulse is HIGH, the value of D is transferred to Q.
Q.27: Briefly explain JK Flip Flop. What are the advantages of JK Flip Flop over SR Flip Flop?
• JK Flip-Flop:
It is a modified version of the SR Flip-Flop where the undefined state (S = 1, R = 1) is eliminated.
• Inputs: J (Set), K (Reset), and a Clock.
• Behavior:
1. J = 0, K = 0 → No change (hold state).
2. J = 0, K = 1 → Reset (Q = 0).
3. J = 1, K = 0 → Set (Q = 1).
4. J = 1, K = 1 → Toggle (Q flips state).
Explanation:
• Synchronous circuits are reliable as they operate with a common clock, while asynchronous
circuits depend on input changes and delays.
Q.29: What do you mean by a half adder? Design a half adder using NAND gates only.
• Half Adder: A combinational circuit that performs the addition of two binary inputs A and B,
producing Sum and Carry outputs.
Truth Table:
Logic Equations:
• S= A (XOR SIGN) B (XOR operation).
• C= A . B(AND operation).
Q.30: Draw the basic circuit of ROM cell and explain its working.
• ROM (Read-Only Memory): A non-volatile memory that stores data permanently during
manufacturing or programming.
Working:
• A decoder activates one row (word line) based on the address input.
• The corresponding column (bit line) reads the stored value (0 or 1).
Advantages of ROM:
1. Non-volatile (retains data without power).
2. Fast read access.
3. Used for firmware and permanent data storage.