🔢

Digital Logic Design MCQ

Test your Digital Logic Design knowledge with 100 multiple choice questions covering fundamentals to advanced concepts, with instant feedback and explanations.

100 Questions 40 Beginner 40 Intermediate 20 Advanced

How This Practice Test Works

Every question below expands right on this page — click a question to reveal its four options, pick the one you think is correct, and you'll get instant feedback along with the correct answer and a short explanation of the reasoning. Questions are grouped by difficulty, so start with the 40 beginner questions to confirm your fundamentals, work through the 40 intermediate ones, and finish with the 20 advanced questions that mirror what exams and technical screenings actually ask. There's no sign-up, no timer, and no limit — retake the test as often as you like.

Curated by Tech Baithak Editorial Team  ·  Last updated: June 2026

1

What is a "logic gate"?

A

Correct Answer

A basic electronic building block that performs a logical operation on one or more binary inputs to produce a single binary output

Explanation

Logic gates (AND, OR, NOT, etc.) are the fundamental components of digital circuits, implementing Boolean functions on binary (0/1) inputs.

2

What is the output of an "AND" gate when both inputs are 1?

A

Correct Answer

1

Explanation

An AND gate outputs 1 only when ALL of its inputs are 1; otherwise it outputs 0.

3

What is the output of an "OR" gate when both inputs are 0?

A

Correct Answer

0

Explanation

An OR gate outputs 1 if at least one input is 1; if all inputs are 0, the output is 0.

4

What does a "NOT" gate (inverter) do?

A

Correct Answer

It inverts its single input — outputting 1 if the input is 0, and 0 if the input is 1

Explanation

The NOT gate (inverter) is a single-input gate that produces the logical complement of its input.

5

What is the difference between a "NAND" gate and an "AND" gate?

A

Correct Answer

A NAND gate produces the inverted (opposite) output of an equivalent AND gate for the same inputs

Explanation

NAND (NOT-AND) outputs 0 only when all inputs are 1 (the opposite of AND), and 1 otherwise — it is the logical complement of an AND gate's output.

6

What is a "truth table"?

A

Correct Answer

A table that shows all possible combinations of input values for a logic circuit and the corresponding output for each combination

Explanation

Truth tables exhaustively list every combination of input values along with the resulting output, fully defining the behavior of a logic function or gate.

7

What is the binary representation of the decimal number 5?

A

Correct Answer

101

Explanation

5 in binary is 101, since 1×4 + 0×2 + 1×1 = 5.

8

What is "Boolean algebra"?

A

Correct Answer

A branch of algebra dealing with variables that have only two possible values (true/false or 1/0), used to analyze and simplify logic circuits

Explanation

Boolean algebra, developed by George Boole, provides the mathematical foundation for digital logic, using operations like AND, OR, and NOT on binary variables.

9

What is a "half adder" used for?

A

Correct Answer

A combinational circuit that adds two single binary digits and produces a sum and a carry output

Explanation

A half adder takes two single-bit inputs and produces a sum bit and a carry bit, but cannot account for a carry-in from a previous addition (unlike a full adder).

10

What is the difference between a "half adder" and a "full adder"?

A

Correct Answer

A full adder accepts an additional carry-in input (from a previous stage) along with the two operand bits, while a half adder only adds two bits with no carry-in

Explanation

Full adders can be chained together (ripple carry) to add multi-bit numbers because each stage accepts a carry-in from the previous stage, which half adders cannot do.

11

What is a "multiplexer" (MUX)?

A

Correct Answer

A combinational circuit that selects one of several input signals and forwards it to a single output line, based on selector input(s)

Explanation

A multiplexer (MUX) acts like a switch, routing one of many inputs to a single output line, with the selection controlled by additional "select" input lines.

12

What is a "demultiplexer" (DEMUX)?

A

Correct Answer

A combinational circuit that takes a single input and routes it to one of several possible output lines, based on selector input(s)

Explanation

A demultiplexer is the opposite of a multiplexer — it takes one input and directs it to a chosen output line among several, determined by select lines.

13

What is the difference between "combinational" and "sequential" logic circuits?

A

Correct Answer

Combinational circuits produce outputs based solely on the current inputs with no memory of past states; sequential circuits have memory elements, so their outputs depend on both current inputs and past states

Explanation

Combinational logic (like adders, multiplexers) is "memoryless" — output depends only on current inputs — while sequential logic (like flip-flops, counters) incorporates feedback and memory, so output depends on history as well.

14

What is a "flip-flop" in digital logic?

A

Correct Answer

A basic memory element that can store one bit of information and change its state based on input signals and a clock

Explanation

Flip-flops (like SR, D, JK, T types) are the building blocks of sequential circuits, each capable of storing a single bit and changing state on clock edges or input changes.

15

What is the purpose of a "clock signal" in sequential digital circuits?

A

Correct Answer

A periodic signal that synchronizes the timing of state changes in sequential circuits, ensuring all components update at well-defined intervals

Explanation

The clock signal provides a common timing reference so flip-flops and registers update their states in a coordinated, predictable manner, avoiding race conditions between components.

16

What is a "register" in digital logic?

A

Correct Answer

A group of flip-flops used together to store multiple bits of data, often used to hold a binary number or word

Explanation

Registers are collections of flip-flops, each storing one bit, that together can hold a multi-bit value (e.g., an 8-bit or 32-bit register), commonly used in CPUs.

17

What is the "hexadecimal" number system, and why is it commonly used in digital design?

A

Correct Answer

A base-16 number system using digits 0-9 and letters A-F, used because it provides a compact representation of binary numbers (each hex digit represents exactly 4 bits)

Explanation

Hexadecimal is convenient in digital systems because each hex digit corresponds exactly to a 4-bit binary group (nibble), making it much more compact and readable than long binary strings.

18

What is "two's complement" representation used for?

A

Correct Answer

A method of representing signed (positive and negative) integers in binary, allowing addition and subtraction to be performed using the same hardware circuits

Explanation

Two's complement allows negative numbers to be represented such that standard binary addition circuits can correctly handle both addition and subtraction of signed integers without special-casing.

19

What is a "decoder" circuit?

A

Correct Answer

A combinational circuit that converts a binary input code into a set of output signals, typically activating one specific output line based on the input combination

Explanation

Decoders take an n-bit binary input and activate one of up to 2^n output lines, commonly used for memory address decoding or driving displays.

20

What is an "encoder" circuit, and how does it relate to a decoder?

A

Correct Answer

An encoder performs the opposite function of a decoder — it converts multiple input lines (typically one active at a time) into a smaller binary code representing which input was active

Explanation

Encoders compress information from many input lines into a compact binary code (e.g., an 8-to-3 encoder converts one of 8 active inputs into a 3-bit code), the reverse operation of a decoder.

21

What is the function of a "comparator" circuit in digital logic?

A

Correct Answer

A circuit that compares two binary numbers and indicates whether one is greater than, less than, or equal to the other

Explanation

Digital comparators take two binary inputs and produce outputs indicating their relative magnitude (greater than, less than, or equal), useful in arithmetic and control logic.

22

What is the "De Morgan's theorem" used for in digital logic?

A

Correct Answer

It provides rules for transforming expressions involving AND, OR, and NOT, allowing logic expressions to be simplified or rewritten using different gate types (e.g., converting AND/OR combinations into NAND/NOR equivalents)

Explanation

De Morgan's theorems state that NOT(A AND B) = (NOT A) OR (NOT B), and NOT(A OR B) = (NOT A) AND (NOT B) — useful for simplifying expressions and converting between gate types.

23

What is a "7-segment display" commonly used for?

A

Correct Answer

A display made of seven individually controllable LED or LCD segments arranged to display decimal digits (0-9) and some letters

Explanation

7-segment displays use seven segments (and sometimes a decimal point) that can be individually lit to form numerals 0-9 and some letters, commonly driven by a BCD-to-7-segment decoder circuit.

24

What is "BCD" (Binary-Coded Decimal)?

A

Correct Answer

A way of encoding decimal digits where each digit (0-9) is represented by its own 4-bit binary code

Explanation

In BCD, each decimal digit 0-9 is represented by its 4-bit binary equivalent (0000-1001), making conversion to/from decimal straightforward, though it is less space-efficient than pure binary.

25

What does "XOR" (exclusive OR) gate output when its two inputs are different?

A

Correct Answer

1

Explanation

An XOR gate outputs 1 when its inputs differ (one is 0 and the other is 1), and outputs 0 when both inputs are the same.

26

What is the purpose of a "tri-state buffer" in digital circuits?

A

Correct Answer

A buffer that can output a 0, 1, or a high-impedance ("disconnected") state, allowing multiple devices to share a common bus without conflict

Explanation

The high-impedance state effectively disconnects the buffer's output from the bus, allowing multiple tri-state buffers to share a common bus line without electrical conflicts, as long as only one drives the line at a time.

27

What is the difference between "synchronous" and "asynchronous" sequential circuits?

A

Correct Answer

Synchronous circuits change state only in response to a clock signal; asynchronous circuits can change state immediately in response to input changes, without waiting for a clock

Explanation

Synchronous circuits use a clock to coordinate state changes at predictable intervals, simplifying design and timing analysis, while asynchronous circuits react immediately to input changes, which can be faster but harder to design correctly.

28

What is a "counter" circuit used for in digital logic?

A

Correct Answer

A sequential circuit that cycles through a predetermined sequence of states (often binary numbers) in response to clock pulses, commonly used to count events or generate timing sequences

Explanation

Counters (built from flip-flops) increment or decrement their stored value with each clock pulse, used in applications like frequency division, timers, and sequencing control signals.

29

What is a "shift register"?

A

Correct Answer

A sequential circuit made of connected flip-flops that shifts its stored bits left or right by one position with each clock pulse

Explanation

Shift registers move data through a chain of flip-flops on each clock pulse, useful for serial-to-parallel conversion, data storage, and implementing certain arithmetic operations.

30

What is the function of an "SR latch" (Set-Reset latch)?

A

Correct Answer

A basic memory element with Set and Reset inputs that can store a single bit, holding its state until explicitly changed by the Set or Reset signals

Explanation

The SR latch is one of the simplest sequential storage elements; setting "S" sets the output to 1, setting "R" resets it to 0, and with neither active, it retains ("latches") its previous value.

31

What is "fan-out" in digital logic design?

A

Correct Answer

The maximum number of gate inputs that a single gate output can reliably drive without degrading the signal

Explanation

Fan-out specifies how many other gate inputs a given output can drive while maintaining correct voltage levels; exceeding this limit can cause signal degradation and unreliable operation.

32

What is the purpose of "propagation delay" in a logic gate?

A

Correct Answer

The time it takes for a change in input to result in a corresponding change in output, due to the physical characteristics of the gate

Explanation

Every logic gate has a small but non-zero propagation delay between an input change and the resulting output change, which accumulates through circuits and affects the maximum clock speed of sequential designs.

33

What is a "universal gate," and give an example?

A

Correct Answer

A logic gate that can be used to implement any other type of logic gate or Boolean function; NAND and NOR are examples of universal gates

Explanation

NAND and NOR gates are called "universal" because any Boolean function (AND, OR, NOT, XOR, etc.) can be constructed using only NAND gates (or only NOR gates), which is useful for manufacturing simplicity.

34

What is the role of a "Karnaugh map" (K-map)?

A

Correct Answer

A graphical tool used to simplify Boolean expressions by visually grouping adjacent terms in a truth table, reducing the number of gates needed in a circuit

Explanation

K-maps provide a visual method for simplifying Boolean expressions by identifying groups of adjacent 1s (or 0s) in a truth table, leading to a minimized expression that requires fewer logic gates.

35

What is the difference between "active high" and "active low" signals?

A

Correct Answer

An active-high signal triggers its associated action when it is at logic 1 (high voltage); an active-low signal triggers its action when it is at logic 0 (low voltage)

Explanation

The naming convention "active high" or "active low" indicates which logic level (1 or 0) represents the "asserted" or "triggering" state of a signal — often denoted with a bar or "n" suffix for active-low signals.

36

What is the purpose of a "pull-up resistor" in a digital logic circuit?

A

Correct Answer

It ensures a signal line defaults to a high logic level when not actively driven low, preventing an undefined "floating" state

Explanation

Without a pull-up resistor, an unconnected digital input could float to an unpredictable voltage, potentially being read as either 0 or 1; the pull-up resistor biases it to a known logic-high state by default.

37

What is a "programmable logic device" (PLD), such as a PAL or PLA?

A

Correct Answer

A type of digital integrated circuit whose internal logic functions can be configured or "programmed" by the user, rather than being fixed at manufacture

Explanation

PLDs (like PALs, PLAs, and later FPGAs) allow designers to implement custom digital logic functions by configuring the device, offering flexibility compared to fixed-function chips.

38

What does "FPGA" stand for, and what is it used for?

A

Correct Answer

Field-Programmable Gate Array — an integrated circuit that can be configured by the user after manufacturing to implement custom digital logic circuits

Explanation

FPGAs consist of an array of configurable logic blocks and interconnects that can be programmed (often using hardware description languages like VHDL or Verilog) to implement custom digital circuits.

39

What is the purpose of "ASIC" (Application-Specific Integrated Circuit)?

A

Correct Answer

A chip custom-designed and manufactured for a specific application or function, rather than for general-purpose use

Explanation

ASICs are designed and fabricated for a specific purpose (e.g., a cryptocurrency mining chip), offering high performance and efficiency for that task but lacking the flexibility of general-purpose or reprogrammable chips like FPGAs.

40

What is the maximum decimal value that can be represented by a 4-bit unsigned binary number?

A

Correct Answer

15

Explanation

A 4-bit unsigned number can represent 2^4 = 16 distinct values, ranging from 0 to 15 (binary 1111 = decimal 15).

1

What is the difference between an "SR flip-flop" and a "D flip-flop"?

A

Correct Answer

An SR flip-flop has separate Set and Reset inputs that can create an invalid/undefined state if both are asserted; a D flip-flop has a single data input and a clock, eliminating the invalid-state problem by always taking the value of D on the clock edge

Explanation

The D flip-flop is often built from an SR (or JK) flip-flop with added logic to ensure S and R are never both 1 simultaneously, simplifying design by guaranteeing a well-defined next state based purely on the D input.

2

What is a "JK flip-flop," and how does it resolve the issue present in SR flip-flops?

A

Correct Answer

A JK flip-flop has J and K inputs analogous to S and R, but when both J and K are 1, it toggles its output instead of producing an undefined state, resolving the SR flip-flop's invalid input combination

Explanation

The "toggle" behavior when J=K=1 makes the JK flip-flop more versatile than the SR flip-flop, as it avoids the undefined state and enables straightforward implementation of toggle (T) flip-flops and counters.

3

What is the difference between a "ripple carry adder" and a "carry-lookahead adder"?

A

Correct Answer

A ripple carry adder propagates the carry sequentially through each full adder stage, which can be slow for wide operands; a carry-lookahead adder computes carry signals in advance using additional logic, reducing the overall propagation delay

Explanation

In a ripple carry adder, each stage must wait for the carry from the previous stage, causing delay to grow linearly with the number of bits; carry-lookahead logic precomputes carries based on input patterns, significantly reducing this delay for wider adders.

4

What is "setup time" and "hold time" with respect to flip-flops?

A

Correct Answer

Setup time is the minimum time the data input must be stable before the clock edge; hold time is the minimum time the data input must remain stable after the clock edge, both required for the flip-flop to reliably capture the correct value

Explanation

Violating setup or hold time requirements can cause a flip-flop to enter a metastable or incorrect state, so digital designs must ensure data signals are stable for the required windows around each clock edge.

5

What is "metastability" in digital circuits, and when is it most likely to occur?

A

Correct Answer

A condition where a flip-flop's output settles into an unpredictable, intermediate state (neither clearly 0 nor 1) for some time, often caused by violating setup/hold time, commonly when signals cross between different clock domains

Explanation

Metastability is a major concern in asynchronous (multi-clock-domain) designs, often mitigated using synchronizer circuits (e.g., chains of flip-flops) to allow the unstable state to resolve before being used.

6

What is the purpose of "synchronizers" when interfacing two circuits operating on different, unrelated clocks?

A

Correct Answer

Synchronizers (often a chain of flip-flops) reduce the probability that a metastable signal crossing between clock domains propagates as an invalid value into the receiving circuit, allowing it time to settle

Explanation

When a signal crosses from one clock domain to another, there's a risk of sampling it during a transition (metastability); a synchronizer chain gives the signal extra clock cycles to settle to a stable value before being used by the receiving logic.

7

What is the difference between a "Moore" and a "Mealy" finite state machine (FSM)?

A

Correct Answer

In a Moore machine, outputs depend only on the current state; in a Mealy machine, outputs depend on both the current state and the current inputs

Explanation

Because Mealy machine outputs can react immediately to input changes (within the same clock cycle), they can sometimes produce outputs faster than Moore machines, but Moore machines are often considered simpler to design and analyze since outputs are stable for a full clock cycle.

8

What is a "Gray code," and why is it useful in digital systems?

A

Correct Answer

A binary numbering system where consecutive values differ by only a single bit, which is useful for reducing errors in systems like rotary encoders where multiple bits changing simultaneously could cause incorrect readings

Explanation

In standard binary, transitioning between certain values (e.g., 0111 to 1000) changes multiple bits at once; if these transitions aren't perfectly synchronized (as in mechanical encoders), incorrect intermediate values can be read. Gray code avoids this by changing only one bit between consecutive values.

9

What is the purpose of "clock skew" management in synchronous digital circuit design?

A

Correct Answer

Clock skew refers to the difference in arrival times of the clock signal at different components; managing it is important because excessive skew can cause setup/hold time violations between communicating flip-flops

Explanation

Because the clock signal must physically travel through wires to reach each flip-flop, slight differences in arrival time (skew) can occur due to varying wire lengths or loading; excessive skew can violate timing constraints between cooperating flip-flops, so clock distribution networks are carefully designed to minimize it.

10

What is the function of a "PLA" (Programmable Logic Array) compared to a "PAL" (Programmable Array Logic)?

A

Correct Answer

A PLA has both a programmable AND array and a programmable OR array, offering more flexibility, while a PAL has a programmable AND array but a fixed OR array, making it simpler and often faster but less flexible

Explanation

The trade-off between PLAs and PALs reflects flexibility versus simplicity/speed: PLAs allow more complex function implementations due to their dual programmable arrays, while PALs are simpler (and historically cheaper/faster) due to a fixed OR stage.

11

What is "hazard" in a combinational logic circuit, and what is one type?

A

Correct Answer

A hazard is a temporary, unwanted change (glitch) in the output of a circuit caused by different propagation delays along different paths; a "static hazard" occurs when the output should remain constant but momentarily glitches during an input transition

Explanation

Because different signal paths through a circuit can have different delays, an output that should logically remain stable during a transition might momentarily glitch (a hazard); these can be eliminated by adding redundant logic terms identified via K-maps.

12

What is the purpose of "address decoding" in a memory system?

A

Correct Answer

Decoder logic interprets the address bits provided by the CPU to select the specific memory chip and location being accessed, enabling the correct memory cell to respond to read/write operations

Explanation

In systems with multiple memory chips or banks, address decoders use higher-order address bits to determine which chip/bank is being addressed, while lower-order bits select the specific location within that chip.

13

What is the difference between "static RAM" (SRAM) and "dynamic RAM" (DRAM) at the circuit level?

A

Correct Answer

SRAM stores each bit using a stable circuit (typically flip-flops made of transistors) that retains data as long as power is supplied; DRAM stores each bit as a charge on a capacitor, which leaks over time and must be periodically refreshed

Explanation

SRAM is faster and doesn't need refreshing (used for cache) but uses more transistors per bit, making it more expensive/larger; DRAM is denser and cheaper per bit (used for main memory) but requires periodic refresh circuitry to maintain stored charge.

14

What is the purpose of "state minimization" when designing a finite state machine?

A

Correct Answer

Identifying and merging equivalent states (states that produce the same outputs for all input sequences) to reduce the total number of states, which can reduce the number of flip-flops and logic needed

Explanation

By identifying states that are functionally equivalent (indistinguishable from external behavior), a designer can reduce the state count, potentially reducing the number of flip-flops (state bits) and simplifying the resulting combinational logic.

15

What is a "Schmitt trigger," and why is it used in digital input circuits?

A

Correct Answer

A circuit with two different threshold voltages (hysteresis) for switching between output states, used to clean up noisy or slowly changing analog signals into sharp digital transitions

Explanation

The hysteresis in a Schmitt trigger (different thresholds for rising vs. falling transitions) prevents rapid, multiple switching ("chattering") caused by noise near a single threshold, producing clean digital output from noisy or slow analog inputs.

16

What is the purpose of an "edge-triggered" versus "level-triggered" (level-sensitive) flip-flop or latch?

A

Correct Answer

An edge-triggered device changes state only at a clock transition (rising or falling edge); a level-triggered device responds throughout the active clock level, making it more susceptible to multiple unintended changes per pulse

Explanation

Edge-triggering provides more precise, single-event state changes synchronized to a specific clock transition, which is generally preferred in modern synchronous designs to avoid issues like "race-through" that can occur with level-sensitive latches.

17

What is "glue logic," and why might it be needed in a digital system design?

A

Correct Answer

Small amounts of additional logic (gates) used to interface or adapt signals between different components or subsystems that don't directly connect compatibly (e.g., different signal polarities or timing)

Explanation

Glue logic bridges incompatibilities between major components (e.g., converting an active-low signal to active-high, or adapting bus widths), often implemented with simple gates or small programmable devices.

18

In a "Verilog" or "VHDL" hardware description language, what is the key difference between "blocking" and "non-blocking" assignments (in Verilog) when modeling sequential logic?

A

Correct Answer

Blocking assignments execute immediately and update the variable right away; non-blocking assignments schedule the update for the end of the current time step, better modeling simultaneous flip-flop updates on a clock edge

Explanation

Using non-blocking assignments (<=) for sequential (clocked) logic in Verilog ensures all flip-flops appear to update simultaneously based on their values before the clock edge, correctly modeling real hardware behavior, while blocking assignments (=) are typically used for combinational logic.

19

What is the purpose of a "watchdog timer" implemented in digital hardware?

A

Correct Answer

A timer circuit that resets the system if it is not periodically "refreshed" by the controlling logic, used to recover from a hung or malfunctioning state

Explanation

If the main logic fails to "feed" (reset) the watchdog timer within its timeout period — perhaps due to a fault — the watchdog triggers a system reset, helping recover from unexpected lockups.

20

What is the difference between a "Mealy machine" output glitch risk and a "Moore machine" in terms of asynchronous inputs?

A

Correct Answer

Because Mealy outputs depend directly on inputs, which can change asynchronously, they may glitch momentarily when inputs change mid-cycle; Moore outputs depend only on registered state, so they don't glitch from input changes within a cycle

Explanation

Because Mealy outputs are combinational functions of both state and input, rapidly changing inputs can cause the output to momentarily reflect intermediate, unintended combinations before settling — a consideration when output glitches matter (e.g., driving other asynchronous logic).

21

What does "don't care" condition mean in a truth table or Karnaugh map, and how is it used?

A

Correct Answer

A "don't care" represents an input combination for which the output value is irrelevant (either because it can never occur or its value doesn't matter); these can be assigned either 0 or 1 during simplification to minimize the resulting logic expression

Explanation

Don't care terms give the designer freedom when grouping terms in a K-map; choosing the value (0 or 1) that allows the largest possible groupings leads to a more simplified (fewer-gate) implementation.

22

What is "clock gating," and why is it used in low-power digital design?

A

Correct Answer

A power-saving technique where the clock signal to a portion of a circuit is disabled when that portion is not needed, preventing unnecessary switching activity and reducing dynamic power consumption

Explanation

Since switching the clock input of unused flip-flops/registers consumes dynamic power even if their data doesn't change, gating off the clock to idle blocks reduces unnecessary power usage — a common technique in modern low-power chip design.

23

What is the purpose of a "parity bit" in digital data transmission?

A

Correct Answer

An extra bit added to a group of bits to make the total number of 1s either even (even parity) or odd (odd parity), allowing the receiver to detect certain single-bit transmission errors

Explanation

Parity checking is a simple error-detection scheme: if the received data's parity doesn't match the expected value, a single-bit error is detected (though it cannot identify which bit, and can't detect even numbers of bit errors).

24

What is the difference between a "ring counter" and a "Johnson counter"?

A

Correct Answer

A ring counter shifts a single "1" bit circularly through its flip-flops, giving N states for N flip-flops; a Johnson (twisted ring) counter feeds back the complement of the last flip-flop, producing 2N distinct states

Explanation

The "twist" (feeding back the inverted output) in a Johnson counter doubles the number of unique states compared to a standard ring counter with the same number of flip-flops, at the cost of slightly more complex output decoding.

25

What is the purpose of "scan chains" (e.g., scan-based DFT) in digital IC testing?

A

Correct Answer

Scan chains connect a design's flip-flops into a long shift register during test mode, letting test patterns be shifted in and results shifted out, enabling thorough testing without direct access to every internal node

Explanation

Design-for-Test (DFT) techniques like scan chains improve manufacturing test coverage by giving external test equipment controllability and observability of internal flip-flop states, which would otherwise be difficult to access directly.

26

What is the difference between "1's complement" and "2's complement" representations of negative numbers?

A

Correct Answer

1's complement negates a number by inverting all its bits; 2's complement negates a number by inverting all bits and then adding 1, which avoids the dual representation of zero (+0 and -0) that occurs in 1's complement

Explanation

2's complement is preferred in most modern systems because it has a single representation for zero and allows addition/subtraction circuits to work uniformly for both positive and negative numbers without special handling.

27

What is the role of a "decoder" in implementing a "read-only memory" (ROM) using combinational logic?

A

Correct Answer

The address decoder activates one specific output line (word line) corresponding to the input address, which then enables the corresponding stored data bits to appear on the output lines

Explanation

A basic ROM can be thought of as a decoder (selecting one row based on the address) connected to a fixed pattern of connections representing the stored data, so that activating a row outputs the corresponding stored bit pattern.

28

What is the significance of "timing diagrams" in digital circuit analysis?

A

Correct Answer

They graphically show how signals change over time, helping designers verify that signal transitions occur at the correct times relative to the clock and to each other, identifying potential timing violations

Explanation

Timing diagrams visualize the relationships between clock edges, input changes, and output responses over time, helping identify issues like setup/hold violations, race conditions, or incorrect sequencing in a design.

29

What is "wired-OR" (or open-collector/open-drain) logic, and what is one common use?

A

Correct Answer

A configuration where multiple gate outputs can be connected directly to a single line (with a pull-up resistor), such that the line goes low if any connected output drives it low — commonly used for shared interrupt or bus lines like I2C

Explanation

Open-collector/open-drain outputs allow multiple devices to share a single bus line safely — any device can pull the line low, and a pull-up resistor returns it high when no device is actively driving it low — commonly used in protocols like I2C for shared signal/interrupt lines.

30

What is "logic synthesis" in the context of digital design using hardware description languages (HDLs)?

A

Correct Answer

The automated process of converting a high-level behavioral or RTL (register-transfer level) description of a circuit into an optimized gate-level netlist that can be implemented in hardware (e.g., an FPGA or ASIC)

Explanation

Synthesis tools take HDL code (e.g., Verilog/VHDL) describing desired functionality and automatically generate an equivalent network of logic gates and flip-flops, optimized for criteria like area, speed, or power, targeting a specific technology (FPGA/ASIC).

31

What is "Excess-3" code, and how is it related to BCD?

A

Correct Answer

A self-complementing code obtained by adding 3 to each BCD digit before converting to binary, useful for simplifying certain decimal arithmetic operations like BCD subtraction

Explanation

Excess-3 is formed by adding 3 (0011) to each BCD digit; being self-complementing (the code for 9's complement of a digit is the bitwise complement of its Excess-3 code) makes it useful for decimal subtraction circuits.

32

What is a "race condition" in an asynchronous sequential circuit?

A

Correct Answer

A situation where two or more signals change state nearly simultaneously, and the final stable state of the circuit depends unpredictably on the order or timing of those changes

Explanation

In asynchronous circuits, if multiple state variables must change at once, differing propagation delays can cause the circuit to settle into different final states depending on which signal changes first — a "critical race" that designers must avoid through careful state assignment.

33

How can a multiplexer be used to implement an arbitrary Boolean function of its select lines?

A

Correct Answer

By connecting the multiplexer's select lines to the function's input variables and wiring each data input to the constant (0 or 1) that the function should output for that corresponding input combination, as read directly from the truth table

Explanation

Since a multiplexer routes one of its data inputs to the output based on the select lines, setting each data input to the desired truth-table output value for that select combination directly realizes the function — a technique sometimes used for quick combinational logic implementation.

34

What is the difference between a "SIPO" and a "PISO" shift register?

A

Correct Answer

A SIPO (Serial-In Parallel-Out) shift register accepts data one bit at a time and makes all stored bits available simultaneously on parallel outputs; a PISO (Parallel-In Serial-Out) register loads all bits at once and shifts them out one bit at a time

Explanation

SIPO registers are often used to convert a serial data stream into parallel form (e.g., for driving multiple LEDs from one data line), while PISO registers convert parallel data into a serial stream (e.g., for transmitting data over a single wire).

35

What is the purpose of "Booth's algorithm" in digital arithmetic circuits?

A

Correct Answer

An algorithm for multiplying signed binary numbers in two's complement form that can reduce the number of addition/subtraction operations by recoding runs of consecutive 1s, improving multiplication efficiency

Explanation

By examining pairs of bits and recoding sequences of consecutive 1s as a single subtraction followed by an addition, Booth's algorithm can reduce the number of partial products needed compared to naive shift-and-add multiplication, especially for operands with long runs of 1s.

36

What is the difference between "memory access time" and "memory cycle time"?

A

Correct Answer

Access time is the time from presenting an address until the data is available; cycle time is the minimum time between starts of two successive operations, which may exceed access time due to recovery needs like DRAM precharge

Explanation

For technologies like DRAM, after an access the memory array may need additional time (e.g., to precharge bit lines) before another access can begin, so the cycle time (which determines maximum operation rate) can exceed the raw access time.

37

When multiple devices share a common tri-state bus, what mechanism is used to ensure only one device drives the bus at a time, and what happens if this is violated?

A

Correct Answer

A bus arbitration or enable mechanism ensures only one device's tri-state outputs are active at any time; if two devices drive the bus simultaneously with conflicting values, "bus contention" can cause indeterminate logic levels and excess current

Explanation

Enable signals (often from a bus arbiter or address decoder) ensure only one tri-state driver is active at a time; if two drivers with opposing logic levels are active simultaneously, the resulting contention can produce invalid voltage levels and increased power dissipation/heat.

38

In sequential circuit design, what is the purpose of a "state table" (also called a state transition table)?

A

Correct Answer

A table listing each possible present state along with each possible input combination, showing the resulting next state and output, used as an intermediate step between a state diagram and the circuit's logic equations

Explanation

The state table systematically captures all present-state/input combinations and their corresponding next-state/output values, from which the designer can derive the Boolean equations needed for the next-state and output logic of the FSM.

39

What is the difference between a "synchronous counter" and an "asynchronous (ripple) counter"?

A

Correct Answer

In a synchronous counter, all flip-flops share the same clock and change state together; in an asynchronous (ripple) counter, each flip-flop after the first is clocked by the previous one's output, causing state changes to ripple with cumulative delay

Explanation

Ripple counters are simpler (fewer gates) but suffer from cumulative propagation delay as the carry ripples through each stage, and can produce transient incorrect output values during transitions; synchronous counters avoid this by clocking all flip-flops together, at the cost of additional logic to compute each flip-flop's next state.

40

What is a "BCD adder," and why can't a standard binary adder be used directly to add two BCD digits?

A

Correct Answer

A BCD adder adds two 4-bit BCD digits plus carry and adds 6 (0110) whenever the binary sum exceeds 9, keeping the result a valid BCD digit; a plain binary adder alone would produce invalid codes for sums between 10 and 19

Explanation

Because BCD only uses codes 0000-1001 (0-9) for each digit, a binary sum of two digits that falls between 1010 (10) and 10011 (19) is not a valid BCD representation; adding 6 corrects the result back into valid BCD range with the proper carry into the next digit position.

1

In FPGA design, what is the purpose of a "look-up table" (LUT) within a configurable logic block?

A

Correct Answer

A LUT implements an arbitrary Boolean function of its input signals by storing the truth table of that function in small memory cells, allowing the configurable logic block to be programmed to perform a wide variety of logic operations

Explanation

Modern FPGAs implement combinational logic primarily using small LUTs (e.g., 6-input LUTs), which can be configured to represent any function of their inputs by storing the corresponding truth table values, providing the flexibility to implement diverse logic.

2

What is the significance of "static timing analysis" (STA) in digital IC design, and what two main constraints does it check?

A

Correct Answer

STA verifies signal timing throughout a chip meets requirements without simulating every input pattern; it primarily checks "setup" (signal must arrive before the clock edge) and "hold" (signal must stay stable after it) constraints

Explanation

STA analyzes all possible paths in a design (without needing input vectors) to ensure that data arrives at flip-flops within the required setup and hold windows relative to the clock, which is essential for closing timing on large designs where exhaustive simulation is infeasible.

3

What is "clock domain crossing" (CDC), and what are common issues that must be addressed?

A

Correct Answer

CDC refers to signals passing between blocks on different, asynchronous clocks; common issues include metastability, data coherency for multi-bit signals, and reconvergence, addressed with synchronizers, FIFOs, or handshaking protocols

Explanation

When signals move between clock domains with no fixed phase relationship, naive direct connections risk metastability and data corruption; designers use techniques like multi-flop synchronizers (for single bits), asynchronous FIFOs (for buses/data streams), or gray-coded pointers to safely transfer data across domains.

4

What is the difference between "latch-based" and "flip-flop-based" (master-slave) sequential designs, and what timing issue is unique to latches?

A

Correct Answer

A latch is level-sensitive and can change repeatedly while enabled, risking "race-through" where data propagates through multiple latches within one clock level; a master-slave flip-flop is edge-triggered, changing state once per clock edge

Explanation

Because a transparent latch passes its input to its output whenever enabled, connecting latches directly in series can allow data to "race through" multiple stages within one clock pulse if the pulse is too wide; master-slave flip-flop construction (using two latches with complementary clock phases) avoids this by ensuring data changes only on a clock edge.

5

What is "dynamic power" versus "static (leakage) power" dissipation in CMOS digital circuits?

A

Correct Answer

Dynamic power is consumed when transistors switch (charging/discharging capacitances), proportional to activity, voltage squared, and frequency; static power is leakage consumed continuously even when idle, more significant at smaller nodes

Explanation

In advanced (smaller) process technologies, leakage (static) power has become a significant fraction of total chip power even when circuits are idle, leading to techniques like power gating and multi-threshold transistors to reduce leakage, in addition to traditional dynamic power reduction techniques like clock gating and voltage scaling.

6

In sequential circuit design, what is a "one-hot encoding" of states, and what trade-off does it represent compared to "binary encoding"?

A

Correct Answer

One-hot encoding represents each state with a separate bit (only one is "1" at a time), needing more flip-flops than binary encoding for the same state count, but often yielding simpler, faster decoding logic, especially in FPGAs

Explanation

One-hot encoding trades flip-flop count (one per state, versus log2(N) for binary encoding of N states) for simpler combinational logic, since each state corresponds to exactly one flip-flop being set — often advantageous in FPGAs where flip-flops are plentiful but LUT logic is the bottleneck.

7

What is "retiming" as a sequential circuit optimization technique?

A

Correct Answer

A technique that repositions registers (flip-flops) within a circuit — without changing its overall input-output behavior — to balance combinational path delays, potentially increasing the maximum clock frequency

Explanation

By moving registers across combinational logic boundaries (while preserving the number of registers along any cyclic path and overall I/O behavior), retiming can balance the delay between pipeline stages, often improving achievable clock frequency without altering the circuit's logical function.

8

What is the purpose of "formal verification" (e.g., model checking or equivalence checking) in digital design, as opposed to simulation-based verification?

A

Correct Answer

Formal verification uses mathematical methods to prove or disprove properties about a design across all possible inputs and states, giving exhaustive coverage guarantees that simulation, which tests only specific scenarios, cannot provide

Explanation

While simulation can only check the specific scenarios tested, formal techniques like equivalence checking (proving two representations of a design are functionally identical) or model checking (proving a property holds for all reachable states) can provide exhaustive correctness guarantees for the properties checked, though they can face scalability challenges on very large designs.

9

What is the concept of "false paths" in static timing analysis, and why must they be explicitly identified?

A

Correct Answer

False paths exist structurally in the netlist but can never be exercised functionally, e.g. due to mutually exclusive control signals; if not excluded, STA may report violations on them that don't represent real issues, causing unnecessary over-design

Explanation

Without identifying false paths (using "set_false_path" or similar constraints), STA might flag violations on paths that can never actually propagate a critical transition due to the design's functional behavior, potentially leading designers to waste effort over-optimizing paths that don't matter in practice.

10

In asynchronous FIFO design for clock domain crossing, why are "Gray-coded" pointers commonly used for the read and write pointers?

A

Correct Answer

Because only one bit changes between consecutive Gray code values, this minimizes the risk that a multi-bit pointer sampled across clock domains is read as an intermediate, incorrect value, since at most one bit can be transitioning at a time

Explanation

When a pointer value is sampled by logic in a different clock domain, a standard binary counter could have multiple bits changing simultaneously, risking the receiver sampling an invalid intermediate value; Gray code's single-bit-change property ensures any sampled value is either the old or new value, never an invalid combination, when combined with per-bit synchronizers.

11

What is "voltage scaling" (e.g., dynamic voltage and frequency scaling, DVFS) used for in digital chip design, and what relationship does it exploit?

A

Correct Answer

DVFS dynamically adjusts a chip's voltage and clock frequency based on workload, exploiting that dynamic power scales roughly with voltage squared and linearly with frequency, allowing significant savings during lower performance demand

Explanation

Because dynamic power is approximately proportional to V^2 × f, reducing both voltage and frequency during low-demand periods can yield substantial power savings (since power drops roughly with the cube of the scaling factor if both are reduced together), which is why DVFS is widely used in mobile and embedded processors.

12

What is the role of "scan-based" Automatic Test Pattern Generation (ATPG) in detecting manufacturing defects, and what fault model is commonly targeted?

A

Correct Answer

ATPG tools generate test patterns, often applied via scan chains, to detect specific fault models, most commonly "stuck-at" faults, where a signal is assumed permanently stuck at 0 or 1 due to a defect, with patterns crafted to expose the wrong output

Explanation

The stuck-at fault model is a simplified abstraction of physical defects (like shorts or opens) that is computationally tractable for automated tools; ATPG generates patterns that, combined with scan chains for controllability/observability, can detect a high percentage of such faults, providing a manufacturing test quality metric (fault coverage).

13

What is the difference between "synchronous reset" and "asynchronous reset" for flip-flops, and what is a key trade-off?

A

Correct Answer

A synchronous reset takes effect only on a clock edge, part of the data path, simplifying timing but needing an active clock; an asynchronous reset acts immediately regardless of clock, useful for init but complicates timing closure on release

Explanation

Asynchronous resets can immediately force a known state (useful at power-up) but the "reset release" itself can cause metastability if not synchronized to the clock; synchronous resets avoid this but require a running clock and add the reset signal to the synthesis timing paths as part of the data logic.

14

What is "physical synthesis," and how does it differ from traditional logic synthesis?

A

Correct Answer

Physical synthesis integrates placement and routing info into synthesis, letting optimizations like gate sizing, buffer insertion, and restructuring account for actual wire delays and congestion, which dominate over gate delays at advanced nodes

Explanation

As technology nodes shrink, interconnect (wire) delays often dominate over gate delays, making it important to consider physical placement during optimization; physical synthesis tools iterate between logical optimization and physical placement/routing estimates to achieve better timing closure than purely logical optimization followed by separate place-and-route.

15

What is "power-on reset" (POR) circuitry, and why is it important in digital systems?

A

Correct Answer

A circuit that automatically generates a reset signal when the system is first powered on (and the supply voltage is ramping up), ensuring that all sequential elements start in a known, defined state rather than an arbitrary or undefined state

Explanation

Without a reliable POR, flip-flops and other state elements might power up in random or unpredictable states, potentially leading to erratic behavior; POR circuits typically monitor the supply voltage and hold the system in reset until voltage is stable and sufficient for reliable operation.

16

What is "logical equivalence checking" (LEC) used for when comparing an RTL description to a synthesized gate-level netlist?

A

Correct Answer

LEC formally proves (or identifies discrepancies) that the gate-level netlist produced by synthesis (and subsequent optimizations) is functionally equivalent to the original RTL description, without requiring exhaustive simulation

Explanation

After synthesis, placement, and various optimizations, LEC mathematically verifies that the resulting gate-level netlist computes the same functions as the original RTL (for all inputs), catching potential synthesis tool bugs or unintended behavioral changes without needing to simulate every possible scenario.

17

In the context of "multi-cycle paths" in static timing analysis, what does it mean for a path to be specified as multi-cycle, and why might a designer do this?

A

Correct Answer

A multi-cycle path is one where data is allowed multiple clock cycles to propagate and be captured, rather than just one, specified because the design guarantees the receiving register doesn't sample every cycle, relaxing timing for that path

Explanation

By default, STA assumes data must propagate and be captured within a single clock cycle; if the design logic ensures a path's result is only used/sampled every N cycles (e.g., due to an enable signal), specifying it as an N-cycle multi-cycle path relaxes the timing requirement, which can help close timing on otherwise-critical paths without functional impact.

18

What is "soft error" susceptibility in digital circuits, and what mitigation techniques are commonly used in high-reliability designs?

A

Correct Answer

A "soft error" is a transient bit-flip in memory or logic, often caused by radiation like cosmic rays, without permanent damage; mitigations include ECC, redundant logic with voting (triple modular redundancy), and radiation-hardened cells

Explanation

As transistor sizes shrink, circuits become more susceptible to transient upsets from particle strikes; in safety-critical or space applications, techniques like ECC memory, redundant computation with majority voting (TMR), and specially designed radiation-tolerant cells help maintain reliability despite soft errors.

19

What is the significance of "IR drop" (voltage drop) analysis in chip power distribution network design?

A

Correct Answer

IR drop is voltage loss across the resistive power grid as current flows through it; excessive drop can leave some chip areas with insufficient voltage, causing timing failures or errors, so power grid design must keep IR drop within limits

Explanation

As current flows through the resistive metal traces of the power grid, voltage drops occur (V=IR); if certain regions experience excessive drop, the effective supply voltage to cells in that region decreases, which can slow down switching speed (affecting timing) or, in extreme cases, cause functional failures — so power grid design includes IR drop analysis and mitigation (e.g., wider power straps).

20

What is "functional coverage" in the context of verification, and how does it differ from "code coverage"?

A

Correct Answer

Functional coverage measures whether specific scenarios or feature combinations defined by the verification engineer have been exercised; code coverage measures whether lines, branches, or expressions have been executed, regardless of functional meaning

Explanation

100% code coverage doesn't guarantee all important functional scenarios (e.g., specific combinations of states and inputs, corner cases) have been tested; functional coverage is explicitly defined by verification engineers to track whether these scenarios — often the ones most likely to reveal design bugs — have been exercised.