Unit 4: Introduction to Combinational Logic Circuits - Subjective Questions
PHY175 — Modern Physics And Electronics • Practice Questions with Detailed Answers
20 questions
Define a combinational logic circuit. Explain its characteristics and distinguish it from a sequential logic circuit.
Definition: A combinational logic circuit is a digital circuit whose output depends only on the present values of its input variables.
Characteristics:
- It does not contain memory elements or feedback paths.
- Its output changes whenever the input combination changes, after a propagation delay.
- It can be represented using Boolean expressions, truth tables, and logic diagrams.
- Examples include adders, subtractors, multiplexers, decoders, encoders, and comparators.
Difference from a sequential circuit:
- In a combinational circuit, output depends only on present inputs: .
- In a sequential circuit, output depends on present inputs and the previous state: .
- Sequential circuits require memory elements such as flip-flops, whereas combinational circuits do not.
Explain the operation of a half adder. Derive its Boolean expressions, truth table, and logic implementation.
Definition: A half adder adds two one-bit binary numbers, and .
The outputs are Sum and Carry .
Truth table:
| 0 | 0 | 0 | 0 |
| 0 | 1 | 1 | 0 |
| 1 | 0 | 1 | 0 |
| 1 | 1 | 0 | 1 |
Boolean expressions:
- Sum:
- Carry:
Implementation:
- An XOR gate produces the Sum output.
- An AND gate produces the Carry output.
A half adder cannot add an input carry from a previous lower-order bit.
Describe a full adder and derive its Sum and Carry expressions using three input variables.
A full adder adds three one-bit inputs: two significant bits and , and an input carry . It produces a Sum and an output carry .
Truth table:
| 0 | 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 1 | 0 |
| 0 | 1 | 0 | 1 | 0 |
| 0 | 1 | 1 | 0 | 1 |
| 1 | 0 | 0 | 1 | 0 |
| 1 | 0 | 1 | 0 | 1 |
| 1 | 1 | 0 | 0 | 1 |
| 1 | 1 | 1 | 1 | 1 |
Boolean expressions:
A full adder can be constructed using two half adders and one OR gate.
Explain how a 4-bit parallel binary adder is constructed using full adders. Discuss the ripple-carry delay.
A 4-bit parallel binary adder adds two 4-bit numbers, and .
Construction:
- Four full adders are connected in cascade.
- The least significant full adder receives , , and the initial carry .
- Its output carry becomes the input carry of the next full adder.
- This connection continues up to the most significant bit.
- The final carry is denoted by .
The outputs are and the final carry .
Ripple-carry delay:
The carry generated at the least significant stage must propagate through each subsequent full adder before the final result becomes valid. Therefore, the total propagation delay increases with the number of bits. This is called ripple-carry delay and makes the parallel adder slower for large word lengths.
Explain the operation of a half subtractor. Derive its Difference and Borrow expressions and provide its truth table.
A half subtractor subtracts one one-bit binary number from another one-bit number . It has two outputs: Difference and Borrow .
Truth table:
| 0 | 0 | 0 | 0 |
| 0 | 1 | 1 | 1 |
| 1 | 0 | 1 | 0 |
| 1 | 1 | 0 | 0 |
Boolean expressions:
- Difference:
- Borrow:
Implementation:
- An XOR gate generates the Difference output.
- An inverter followed by an AND gate generates the Borrow output.
A half subtractor does not accept a borrow input from a lower-order stage.
Describe a full subtractor and derive its Difference and Borrow-out expressions.
A full subtractor subtracts two bits while considering a borrow input from the previous lower-order position. Its inputs are , , and , and its outputs are Difference and Borrow-out .
Difference expression:
Borrow-out expression:
Operation:
- represents the result of subtracting and from .
- becomes 1 whenever the subtraction requires a borrow from the next higher-order position.
A full subtractor may be constructed using two half subtractors and an OR gate. The first half subtractor subtracts from , and the second subtracts from the first Difference output.
Compare a half adder with a full adder and state their applications.
| Feature | Half Adder | Full Adder |
|---|---|---|
| Number of inputs | Two: , | Three: , , |
| Outputs | Sum and Carry | Sum and Carry-out |
| Input carry | Not accepted | Accepted |
| Sum expression | ||
| Carry expression | ||
| Typical use | Least significant bit addition when no carry exists | Multi-bit binary addition |
Applications:
- Half adders are used in simple arithmetic circuits and as building blocks for full adders.
- Full adders are cascaded to form parallel binary adders, arithmetic logic units, and processor arithmetic circuits.
Explain the working principle of a multiplexer. Describe the operation and truth table of a 4-to-1 multiplexer.
A multiplexer, or MUX, is a data selector that transfers one of several input signals to a single output line. Selection is controlled by select lines.
A 4-to-1 multiplexer has four data inputs , , , and , two select lines and , and one output .
Truth table:
| Selected input | Output | ||
|---|---|---|---|
| 0 | 0 | ||
| 0 | 1 | ||
| 1 | 0 | ||
| 1 | 1 |
Boolean expression:
A multiplexer is used in data routing, communication systems, and implementation of Boolean functions.
Show how a multiplexer can be used to implement a Boolean function. Explain the general design procedure.
A multiplexer can implement a Boolean function by using some variables as select lines and connecting the data inputs to logic 0, logic 1, or remaining variables.
General procedure:
- Determine the number of variables in the Boolean function.
- Select variables as select lines for a -to-1 multiplexer.
- Prepare the truth table of the function.
- For each select-line combination, determine whether the corresponding data input must be connected to 0, 1, a remaining variable, or its complement.
- Connect the data inputs accordingly and take the MUX output as the function output.
For example, if a 4-to-1 MUX uses and as select lines, each data input is assigned according to the values of the function for the corresponding combinations and .
This method reduces the amount of separate logic needed to realize a Boolean function.
Define a de-multiplexer and explain the operation of a 1-to-4 de-multiplexer with its truth table.
A de-multiplexer, or DEMUX, is a data distributor that transfers one input signal to one of several output lines according to the select-line combination.
A 1-to-4 de-multiplexer has one data input , select lines and , and four outputs , , , and .
Truth table:
| Active output | ||
|---|---|---|
| 0 | 0 | |
| 0 | 1 | |
| 1 | 0 | |
| 1 | 1 |
All unselected outputs remain 0 when the input is enabled.
Output equations:
De-multiplexers are used in data distribution, address decoding, and communication systems.
Distinguish between a multiplexer and a de-multiplexer based on their structure, function, and applications.
| Feature | Multiplexer | De-multiplexer |
|---|---|---|
| Basic function | Selects one input from many inputs | Routes one input to one of many outputs |
| Data terminals | Many inputs and one output | One input and many outputs |
| Control terminals | Select lines choose an input | Select lines choose an output |
| Direction of data flow | Many-to-one | One-to-many |
| Example | 4-to-1 MUX | 1-to-4 DEMUX |
| Main applications | Data selection, signal routing, function generation | Data distribution, communication channels, memory selection |
Both circuits use select lines. For select lines, a multiplexer can select one of inputs, while a de-multiplexer can route the input to one of outputs.
Explain the function of a decoder. Describe a 2-to-4 line decoder and derive its output equations.
A decoder is a combinational circuit that converts an -bit binary input into one of mutually exclusive output lines. For each input combination, exactly one output is activated, assuming an active-high enabled decoder.
A 2-to-4 decoder has inputs and and outputs , , , and .
Truth table:
| Active output | ||
|---|---|---|
| 0 | 0 | |
| 0 | 1 | |
| 1 | 0 | |
| 1 | 1 |
Output equations:
A decoder is used in memory addressing, instruction decoding, display systems, and code conversion.
What is the role of the enable input in a decoder? Explain the operation of an enabled 2-to-4 decoder.
The enable input controls whether a decoder is active or disabled.
For an active-high enable input :
- When , all outputs are inactive regardless of the input values.
- When , the decoder operates normally and activates one output according to the binary input .
The output equations are:
The enable input allows several decoders to be combined and is also useful for selecting a particular memory chip or circuit section. In practical ICs, the enable input may be active-low, in which case the operating conditions are reversed.
Define an encoder and explain the operation of a 4-to-2 binary encoder with its truth table.
An encoder is a combinational circuit that converts one active input out of several input lines into a corresponding binary code at its output.
A 4-to-2 encoder has four input lines , , , and , and two output lines and .
Truth table:
| Active input | ||
|---|---|---|
| 0 | 0 | |
| 0 | 1 | |
| 1 | 0 | |
| 1 | 1 |
Only one input should be active at a time in a basic encoder.
Output equations:
Encoders are used in keyboards, digital systems, and data compression interfaces.
Explain the need for a priority encoder and compare it with an ordinary encoder.
An ordinary encoder assumes that only one input is active at a time. If multiple inputs become active simultaneously, its output may be ambiguous or invalid.
A priority encoder assigns a priority level to each input. When several inputs are active, it produces the binary code of the highest-priority active input.
Comparison:
- An ordinary encoder operates correctly only for one active input.
- A priority encoder can handle multiple active inputs.
- A priority encoder includes additional logic to determine the highest-priority input.
- It often provides a valid or enable output to indicate that at least one input is active.
For a 4-input priority encoder, if has the highest priority, then is encoded whenever it is 1, even if , , or are also 1. Priority encoders are used in interrupt controllers and resource arbitration circuits.
Explain the working principle of a 1-bit magnitude comparator and derive the expressions for , , and .
A magnitude comparator compares two binary inputs and and produces three outputs: for , for , and for .
Truth table:
| 0 | 0 | 0 | 1 | 0 |
| 0 | 1 | 0 | 0 | 1 |
| 1 | 0 | 1 | 0 | 0 |
| 1 | 1 | 0 | 1 | 0 |
Output expressions:
Only one of the three outputs is high for any input combination.
Derive the logic expressions and truth table for a 2-bit magnitude comparator comparing and .
A 2-bit comparator compares with . The most significant bits are compared first. The least significant bits are considered only when the most significant bits are equal.
Define:
Logic expressions:
- :
- :
- :
Operating principle:
- If and , then .
- If and , then .
- If , the comparison depends on and .
- Equality occurs only when both corresponding bit pairs are equal.
The three outputs are mutually exclusive.
Compare a decoder and an encoder. Include their input-output relationships, functions, and common applications.
| Feature | Decoder | Encoder |
|---|---|---|
| Conversion | Binary code to one active output | One active input to binary code |
| Input lines | Usually | |
| Output lines | Usually | |
| Direction | Fewer lines to more lines | More lines to fewer lines |
| Basic example | 2-to-4 decoder | 4-to-2 encoder |
| Main use | Memory selection and instruction decoding | Keyboard encoding and signal reduction |
A decoder activates one output corresponding to the applied input code. An encoder performs the reverse operation, provided that only one input is active or priority logic is included.
Explain how a full adder can be constructed using two half adders and an OR gate. Derive the resulting expressions.
A full adder can be constructed in three stages.
Stage 1: The first half adder adds and .
- Intermediate sum:
- Intermediate carry:
Stage 2: The second half adder adds and .
- Final Sum:
- Second carry:
Stage 3: The two carry outputs are ORed.
Substituting the intermediate expressions gives:
Using Boolean expansion, the carry expression is also written as:
Describe the method of binary subtraction using 2's complement and explain the role of an adder in the process.
Binary subtraction can be performed using an adder by representing the subtrahend in 2's complement form.
To calculate :
- Complement every bit of to obtain its 1's complement.
- Add 1 to obtain the 2's complement of .
- Add this result to using a binary adder.
- If an end carry is produced, it is discarded and the remaining bits represent a positive result.
- If no end carry is produced, the result is negative and is represented in 2's complement form.
Mathematically:
A parallel adder-subtractor can perform both operations by conditionally complementing each bit of and selecting the initial carry according to the required operation.
Define a combinational logic circuit. Explain its characteristics and distinguish it from a sequential logic circuit.
Definition: A combinational logic circuit is a digital circuit whose output depends only on the present values of its input variables.
Characteristics:
- It does not contain memory elements or feedback paths.
- Its output changes whenever the input combination changes, after a propagation delay.
- It can be represented using Boolean expressions, truth tables, and logic diagrams.
- Examples include adders, subtractors, multiplexers, decoders, encoders, and comparators.
Difference from a sequential circuit:
- In a combinational circuit, output depends only on present inputs: .
- In a sequential circuit, output depends on present inputs and the previous state: .
- Sequential circuits require memory elements such as flip-flops, whereas combinational circuits do not.
Did this save you a night before the exam?
LPU Notes is free, and it stays free. Ads cover part of the server bill. The rest comes out of a student's own pocket: the domain, the storage, and keeping the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason. to try again.
Nothing here is ever locked, and nothing unlocks. Chip in only if it was worth it. What it pays for →