Design of combinational circuits
गेट CS65 मिनट में पढ़ें
Combinational behavior and specifications
Definition. A combinational circuit produces outputs determined only by the present input values. It has no stored state and no feedback path that preserves information from an earlier input. A complete design starts by naming inputs and outputs, writing a truth table, deriving equations, simplifying them, and selecting gates.
Example. A two-input alarm output that is 1 exactly when both sensors report danger is .
Exam point. If an output depends on the previous cycle, the circuit is sequential, even if its gates look combinational.
Truth tables and output equations
Definition. A truth table lists every input combination and the corresponding output. For binary inputs it has rows. Each output may be converted independently into SOP from its 1 rows or POS from its 0 rows.
Example. A three-input majority output is 1 when at least two inputs are 1.
Exam point. Confirm that all input rows occur exactly once and that output labels match the stated condition.
Solved design. Design the majority function for .
- Enumerate inputs 000 through 111.
- Rows with at least two ones are 011, 101, 110, and 111.
- The canonical SOP is .
- Grouping or reasoning by pairs gives .
| 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 0 |
| 0 | 1 | 0 | 0 |
| 0 | 1 | 1 | 1 |
| 1 | 0 | 0 | 0 |
| 1 | 0 | 1 | 1 |
| 1 | 1 | 0 | 1 |
| 1 | 1 | 1 | 1 |
Answer. .
Deriving a circuit from a verbal condition
Definition. Translate each part of a specification into a Boolean condition, then combine conditions using AND, OR, or complement. “Only if” creates a necessary condition; “either” may mean inclusive OR unless exclusivity is stated. The truth table resolves ambiguity before simplification.
Example. A lamp turns on if switch is on or both and are on: .
Exam point. Inclusive OR allows both alternatives to hold at once.
Solved design. A controller asserts output when request is active and either permission is active or override is active, but a lock must be absent.
- The request is required: include factor .
- Permission OR override is .
- “Lock absent” means .
- Combine the requirements: .
- For a check, if , then ; if , it is 0. Answer. .
Half adder
Definition. A half adder adds two one-bit operands without a carry input. Its sum is XOR, and its carry is AND. It is a combinational building block; it does not store the carry output for a later operation.
Example. produces sum 0 and carry 1.
Exam point. Sum and carry are separate outputs; do not confuse the carry bit with the sum bit.
Solved design. Derive the half-adder equations.
- Inputs are ; the binary sum is 0 for 00 and 11, and 1 for 01 and 10.
- Therefore .
- Carry is 1 only when both bits are 1, so .
- Check all four rows.
| 0 | 0 | 0 | 0 |
| 0 | 1 | 1 | 0 |
| 1 | 0 | 1 | 0 |
| 1 | 1 | 0 | 1 |
Answer. , .
Full adder
Definition. A full adder adds bits and carry-in . The two outputs are sum and carry-out . Their equations are and .
Example. Inputs 1,1,1 represent decimal 3, so the output pair is 11.
Exam point. Carry-out is the majority function of the three input bits.
Solved design. Construct a full adder from two half adders and one OR gate.
- First half adder adds : , .
- Second half adder adds : and .
- Combine carry outputs: .
- Substitute: .
- Expanding XOR gives , which simplifies to . Answer. Two half adders and one OR gate implement a full adder.
Ripple-carry addition
Definition. A ripple-carry adder connects the carry output of bit position to the carry input of position . It computes multi-bit binary addition with one full-adder stage per bit, plus handling for the least significant bit. Carry propagation creates a delay that grows with word length.
Example. Adding 0110 and 0011 begins at the least significant bit and propagates carries left.
Exam point. Read carry direction from low significance to high significance.
Solved calculation. Add using four bit positions.
- Bit 0: , carry 0.
- Bit 1: , write 0, carry 1.
- Bit 2: , write 0, carry 1.
- Bit 3: , write 0, carry 1 beyond the word.
- Reading the carry and written bits gives . Answer. .
Carry generate and propagate
Definition. For bit , define generate and propagate (some conventions use for carry propagation). Then and . State the convention used when comparing formulas.
Example. If , then and the output carry is 1 regardless of input carry.
Exam point. XOR-propagate and OR-propagate differ as signals, though both can be used in the carry equation under appropriate definitions.
Solved calculation. Compute the carry into bit 2 for two low-order bit pairs with , , and .
- At bit 0, , , so .
- At bit 1, , , so .
- The second bit generates carry itself. Answer. .
Comparator circuits
Definition. A magnitude comparator reports whether binary words are equal, less than, or greater than. Equality is the AND of bitwise XNOR results. For unsigned words, comparison is decided by the first differing bit when scanning from most significant to least significant.
Example. because the first differing bit from the left is 1 versus 0.
Exam point. Compare from the most significant bit; lower bits matter only after all higher bits tie.
Solved calculation. Compare and as unsigned values.
- Bits 4 and 3 match: 1 and 1, then 1 and 1.
- At bit 2, and .
- The first difference determines the comparison; lower bits are irrelevant.
- Thus . Answer. ; equality output is 0.
Multiplexers
Definition. A -to-1 multiplexer selects one of its data inputs using select bits. The output equals the selected data value. For a 2-to-1 mux with select , .
Example. With , a 2-to-1 mux outputs .
Exam point. Map select-bit values to data inputs in the order stated; reversed labels change the function.
Solved design. Implement using a 4-to-1 mux with as selects and as the remaining data variable.
- Group minterms by select pair .
- For , rows 0 and 1 give output 0 when , 1 when ; set .
- For , rows 2 and 3 give 1,0; set .
- For , rows 4 and 5 give 0,0; set .
- For , rows 6 and 7 give 1,1; set . Answer. Selects with .
Implementing a function with a multiplexer
Definition. A Boolean function with inputs can be implemented by a mux using some inputs as selects and the remaining inputs to form data values. Each data input is obtained by fixing the select assignment and simplifying the residual function. Constants and complemented literals are valid mux data inputs.
Example. can use a 2-to-1 mux with select , data .
Exam point. Derive every data input from the truth table; do not guess the wiring from the expression's visual order.
Solved design. Use a 4-to-1 mux to implement with as select inputs.
- For , , so .
- For , , so .
- For , , so .
- For , , so .
- Connect the select lines in the specified order and use the four data functions. Answer. , .
Decoders
Definition. An -to- decoder activates one output for each -bit input combination, assuming an active-high one-hot decoder. Each output is a minterm. Enable inputs may force all outputs inactive when the decoder is disabled; active-low devices reverse the output polarity.
Example. A 2-to-4 decoder output is 1 for input 10, so when is most significant.
Exam point. Check whether outputs and enable are active-high or active-low.
आपने इस नोट का मुफ़्त 29% हिस्सा पढ़ लिया
आगे पढ़ने के लिए Google से साइन इन करें। यह मुफ़्त है, एक टैप में होता है, और साथ में मिलता है:
- इस नोट से 6 अभ्यास सवाल
- हर नोट पूरा, साथ में PDF लाइब्रेरी
- आधिकारिक पिछले पेपर समय-सीमा वाले टेस्ट की तरह, व्याख्या के साथ
- डाउट के लिए AI ट्यूटर, हिंदी या अंग्रेज़ी में
- आपकी प्रगति, गलतियाँ और स्टडी प्लान हर डिवाइस पर सेव