chapter

    Digital Logic Notes for Gate Cs

    GATE CS Digital Logic: 4 chapters, 33 previous year questions (100% of Digital Logic), 981 practice questions and one solved question from each chapter.

    A question from this chapter

    Question 1
    Level 3: Exam Standard

    Match each 4-bit signed addition in Column I with the correct description in Column II of the carries at the most significant bit and the correctness of the stored 4-bit signed result.

    Column I:

    P:

    Q:

    R:

    S:

    Column II:

    (i) , , and the stored result is not the correct signed sum

    (ii) , , and the stored result is not the correct signed sum

    (iii) , , and the stored result is the correct signed sum

    (iv) , , and the stored result is the correct signed sum

    Here is the carry into the most significant bit and is the carry out of the most significant bit.

    Question 2
    Level 3: Exam Standard

    Consider the 4-variable Boolean function .

    Let be the minimum number of don't-care minterms required to be added to such that the minimal Sum-of-Products expression of the resulting function has exactly literals.

    Which of the following statements are correct?

    Question 3
    Level 3: Exam Standard

    Consider the Boolean function . The function is implemented using a minimal two-level Sum-of-Products (SOP) circuit. Assuming all logic gates have non-zero but identical propagation delays, and only one input variable changes at a time, the number of distinct input transitions (from one minterm to an adjacent minterm) that will produce a static-1 hazard is ______.

    Question 4
    Level 3: Exam Standard

    Match the flip-flop configurations in List I with their corresponding next-state equations in List II.

    \textbf{List I}

    P. D flip-flop with

    Q. JK flip-flop with

    R. T flip-flop with

    S. D flip-flop with

    \textbf{List II}

    Options:

    A) P-4, Q-3, R-1, S-2

    B) P-4, Q-1, R-3, S-2

    C) P-2, Q-3, R-1, S-4

    D) P-4, Q-3, R-2, S-1

    Free preview ends here

    Login to view the complete notes

    Creating an account is free. You get the rest of this chapter, step-by-step solutions, and a study plan built around the topics you are actually weak at.

    Explore complete test series, official past papers, and chapter-wise study tools.

    Why MastersUp

    Personalised first. High quality throughout.

    Most platforms hand everyone the same content. Here the content moves with your performance, topic by topic.

    Built around you, not around a syllabus PDF

    Every answer you give moves your topic-level intelligence rate. The next question, the next revision card and tomorrow's plan all change with it.

    Revision that hits your weak spots

    We only revise topics you have actually attempted and are still below the safe bar on — never the same chapter on repeat.

    Questions calibrated to the real exam

    Each question carries a measured toughness. You are served a rung above your current level, so practice keeps stretching you.

    Notes written for recall, not for volume

    Full lesson cards for first study, curated short-note cards for the last mile — with derivations, traps and exam patterns marked.

    One place for everything

    Notes, chapter practice, previous-year questions, test series and full-length papers — all feeding one picture of your preparation.

    Honest progress

    No vanity streaks. Progress here means chapters mastered and accuracy that held up on harder questions.

    Unlock the whole course

    Full notes and short notes, the complete question bank with worked solutions, mock tests, full-length papers, and an adaptive plan that rebuilds itself as you improve.

    Digital Logic Notes for GATE CS

    GATE CS Digital Logic: 4 chapters, 33 previous year questions (100% of Digital Logic), 981 practice questions and one solved question from each chapter.

    About Digital Logic Notes

    Full study notes for Digital Logic in GATE CS, organised across 4 chapters. Each chapter page explains concepts from the basics with worked examples and the formulas you need.

    Digital Logic Weightage in GATE CS

    Digital Logic accounts for 33 of 33 Digital Logic previous year questions in our bank (100%), about 3.3 per paper across 10 papers.

    Digital Logic Chapter Matrix

    ChapterTopicsPYQsShare of unit PYQsPractice questions
    Number Systems, Binary Arithmetic and Data RepresentationRadix Conversion and Number Representation, Binary Fractions and Decimal Conversion, Two's Complement Arithmetic and Overflow515%157
    Boolean Algebra, Canonical Forms and Logic MinimizationBoolean Laws, Identities and Expression Equivalence, Canonical Minterm and Maxterm Forms, Sum-of-products Minimization, Karnaugh Maps and Minimal Expressions, Majority, Xor and Composite Boolean Functions1236%343
    Combinational Logic Circuits and Data SelectorsLogic Gate Circuit Analysis and Hazards, Decoders, Multiplexers and Address Selection, Boolean Function Realization Using Multiplexers, Cascaded Multiplexer and Decoder Circuits824%245
    Flip-flops, Counters and Finite State MachinesFlip-flop Behaviour and Sequential Circuit Analysis, Ripple and Synchronous Counters, Counter State Transitions and Excitation Equations, Mealy Machines and Sequence Processing, Fsm State Minimization824%236

    More from Digital Logic

    One Solved Question from Each Digital Logic Chapter

    Question 1 · Number Systems, Binary Arithmetic and Data Representation MCQ

    Match each 4-bit signed addition in Column I with the correct description in Column II of the carries at the most significant bit and the correctness of the stored 4-bit signed result.

    Column I:

    P:

    Q:

    R:

    S:

    Column II:

    (i) , , and the stored result is not the correct signed sum

    (ii) , , and the stored result is not the correct signed sum

    (iii) , , and the stored result is the correct signed sum

    (iv) , , and the stored result is the correct signed sum

    Here is the carry into the most significant bit and is the carry out of the most significant bit.

    1. A.

      P-(iii), Q-(i), R-(ii), S-(iv)

    2. B.

      P-(iii), Q-(iv), R-(ii), S-(i)

    3. C.

      P-(i), Q-(iii), R-(iv), S-(ii)

    4. D.

      P-(ii), Q-(i), R-(iii), S-(iv)

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: this is a carry-in/carry-out matching question. Do not decide correctness from the final carry alone. Compute the carry into the MSB and the carry out of the MSB separately, then check whether the stored result equals the true signed sum.

    Step 1: P: .

    No carry reaches the MSB and no carry leaves it, so , . The stored result $0011$ is , which is correct. Thus P matches (iii).

    Step 2: Q: with a carry out.

    The lower three bits produce no carry into the MSB, so . The sign-bit addition produces . The true sum is , which is not representable in 4 bits, so the stored result is not correct. Thus Q matches (i).

    Step 3: R: .

    The lower bits generate a carry into the MSB, so . At the MSB, with no carry out, so . The true sum is , not representable in 4-bit signed form, so the stored result is not correct. Thus R matches (ii).

    Step 4: S: with a carry out.

    The bit below the MSB generates a carry into the MSB, so . At the MSB, gives sum bit 1 and carry out 1, so . The true sum is , which is representable, and the stored result $1000$ is . Thus S matches (iv).

    Step 5: Elimination confirms the only matching satisfying all four rows is P-(iii), Q-(i), R-(ii), S-(iv).

    Answer: option A.

    Question 2 · Boolean Algebra, Canonical Forms and Logic Minimization MSQ

    Consider the 4-variable Boolean function .

    Let be the minimum number of don't-care minterms required to be added to such that the minimal Sum-of-Products expression of the resulting function has exactly literals.

    Which of the following statements are correct?

    1. A.

      The current literal count of without any don't-cares is 6.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    ["A","B"]

    Step-by-Step Solution

    Key idea: This is an elimination pattern question testing the optimal use of don't-care conditions to minimize literal count. The trap is overcounting the required don't-cares by not utilizing them in overlapping groups or failing to see larger groupings.

    Step 1: Minimize F without don't-cares.

    Minterms: 0, 1, 2, 4, 8, 9, 10, 12.

    Groups:

    • m(0, 1, 8, 9)
    • m(0, 2, 8, 10)
    • m(0, 4, 8, 12)

    All 1s are covered. .

    Literal count = 2 + 2 + 2 = 6. (Statement A is correct).

    Step 2: Find N(4). We want to reduce the literal count to 4 using the minimum number of don't-cares.

    If we add minterms 5 and 13 as don't-cares:

    New set: 0, 1, 2, 4, 5, 8, 9, 10, 12, 13.

    Groups:

    • m(0, 1, 4, 5, 8, 9, 12, 13) (covers 0,1,4,8,9,12)
    • m(2, 10) ? No, 2 is 0010, 10 is 1010 .

    Resulting function: .

    Literal count = 1 + 2 = 3? Wait, is 1 literal. is 2 literals. Total = 3.

    Let's re-evaluate N(4). If we add 5 and 13, we get 3 literals.

    Can we get 4 literals with 1 don't-care?

    If we add 5: 0, 1, 2, 4, 5, 8, 9, 10, 12.

    m(0, 1, 4, 5) .

    m(8, 9, 10) needs 11.

    m(0, 4, 8, 12) .

    m(0, 2, 8, 10) .

    Function: . Literal count = 6.

    It seems 1 don't-care cannot reduce it to 4.

    Let's check adding 3 and 11 (2 don't-cares).

    Set: 0, 1, 2, 3, 4, 8, 9, 10, 11, 12.

    m(0, 1, 2, 3, 8, 9, 10, 11) .

    m(4, 12) .

    Function: . Literal count = 1 + 3 = 4.

    So N(4) = 2 is achievable. (Statement B is correct).

    Step 3: Find N(3). Can we get 3 literals with 3 don't-cares?

    We saw adding 5 and 13 (2 don't-cares) gives , which has 3 literals!

    So N(3) 2. Statement C says N(3) = 3, which is false.

    Step 4: Find N(2). Can we get 2 literals with 4 don't-cares?

    To get 2 literals, we need something like .

    If we add 3, 7, 11, 15 (4 don't-cares).

    Set: 0, 1, 2, 3, 4, 7, 8, 9, 10, 11, 12, 15.

    m(0, 1, 2, 3, 8, 9, 10, 11) .

    m(4, 12) .

    Function: . Literal count = 4.

    It seems 4 don't-cares cannot reduce it to 2 literals. Statement D is false.

    Answer: A, B

    Question 3 · Combinational Logic Circuits and Data Selectors NAT

    Consider the Boolean function . The function is implemented using a minimal two-level Sum-of-Products (SOP) circuit. Assuming all logic gates have non-zero but identical propagation delays, and only one input variable changes at a time, the number of distinct input transitions (from one minterm to an adjacent minterm) that will produce a static-1 hazard is ______.

    Correct Answer:

    4.00

    Step-by-Step Solution

    Key idea: A static-1 hazard in a minimal SOP circuit occurs when a single-variable transition moves between two adjacent 1s on the K-map that are not covered by the same prime implicant loop.

    Step 1: Plot the minterms on a 4-variable K-map and identify the minimal prime implicants (PIs).

    Minterms: 0, 1, 2, 5, 6, 7, 8, 10, 14, 15.

    The essential prime implicants are:

    • covering {0, 2, 8, 10}
    • covering {6, 7, 14, 15}
    • covering {1, 5}

    These three PIs cover all the 1s minimally.

    Step 2: Identify all adjacent pairs of 1s (transitions where exactly one variable changes).

    • 0(0000) and 1(0001): 0 is in , 1 is in . Not in the same PI. Hazard.
    • 1(0001) and 5(0101): Both are in . No hazard.
    • 2(0010) and 6(0110): 2 is in , 6 is in . Not in the same PI. Hazard.
    • 5(0101) and 7(0111): 5 is in , 7 is in . Not in the same PI. Hazard.
    • 10(1010) and 14(1110): 10 is in , 14 is in . Not in the same PI. Hazard.

    (Other adjacent pairs like 0-2, 0-8, 6-7, etc., are within the same PI and do not cause hazards).

    Step 3: Count the hazardous transitions. There are exactly 4 such transitions.

    Answer: 4

    Question 4 · Flip-Flops, Counters and Finite State Machines MCQ

    Match the flip-flop configurations in List I with their corresponding next-state equations in List II.

    \textbf{List I}

    P. D flip-flop with

    Q. JK flip-flop with

    R. T flip-flop with

    S. D flip-flop with

    \textbf{List II}

    Options:

    A) P-4, Q-3, R-1, S-2

    B) P-4, Q-1, R-3, S-2

    C) P-2, Q-3, R-1, S-4

    D) P-4, Q-3, R-2, S-1

    1. A.

      P-4, Q-3, R-1, S-2

    2. B.

      P-4, Q-1, R-3, S-2

    3. C.

      P-2, Q-3, R-1, S-4

    4. D.

      P-4, Q-3, R-2, S-1

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: This is a matching question testing your ability to derive the next-state equation from the excitation equations of different flip-flop types. You must apply the characteristic equation for each FF type and simplify using Boolean algebra.

    Step 1: Evaluate P. D flip-flop with .

    Characteristic equation: .

    Therefore, . This matches 4.

    Step 2: Evaluate Q. JK flip-flop with .

    Characteristic equation: .

    Substitute: .

    Apply De Morgan's: .

    Simplify: .

    This matches 3.

    Step 3: Evaluate R. T flip-flop with .

    Characteristic equation: .

    Substitute: .

    Since and , we have .

    This matches 1.

    Step 4: Evaluate S. D flip-flop with .

    Characteristic equation: .

    Therefore, . This matches 2.

    Final Matching: P-4, Q-3, R-1, S-2.

    Answer: P-4, Q-3, R-1, S-2.