BIT103 ยท 2080 ยท 10 marks
Define combinational logic circuit. Design a combinational circuit whose input is a four-bit number and output is the 1's complement of the input number.
Define combinational logic circuit. Design a combinational circuit whose input is a four-bit number and output is the 1's complement of the input number.[10]
Quick answer
A combinational logic circuit is a digital circuit in which the output at any instant of time depends only on the present input values and not on any previous inputs or outputs. There is no memory element involved; the circuit has no feedback path.
Combinational Logic Circuit and 1's Complement Design
Definition of Combinational Logic Circuit (2 marks)
Key characteristics:
- Output is a pure function of current inputs only
- No clock signal or storage elements (flip-flops) are used
- Examples: Adder, Subtractor, Multiplexer, Encoder, Decoder
General model: n input variables produce m output variables through a network of logic gates.
Design of 1's Complement Combinational Circuit (8 marks)
Step 1: Problem Statement
- Input: A 4-bit binary number: A, B, C, D (where A is MSB, D is LSB)
- Output: 1's complement of the input: W, X, Y, Z
The 1's complement of a binary number is obtained by inverting (complementing) each bit individually.
| Input Bit | Output Bit |
|---|---|
| A | W = A' |
| B | X = B' |
| C | Y = C' |
| D | Z = D' |
Step 2: Truth Table
| A | B | C | D | W (A') | X (B') | Y (C') | Z (D') |
|---|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 |
| 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 |
| 0 | 0 | 1 | 0 | 1 | 1 | 0 | 1 |
| 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 |
| 0 | 1 | 0 | 0 | 1 | 0 | 1 | 1 |
| 0 | 1 | 0 | 1 | 1 | 0 | 1 | 0 |
| 0 | 1 | 1 | 0 | 1 | 0 | 0 | 1 |
| 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 |
| 1 | 0 | 0 | 0 | 0 | 1 | 1 | 1 |
| 1 | 0 | 0 | 1 | 0 | 1 | 1 | 0 |
| 1 | 0 | 1 | 0 | 0 | 1 | 0 | 1 |
| 1 | 0 | 1 | 1 | 0 | 1 | 0 | 0 |
| 1 | 1 | 0 | 0 | 0 | 0 | 1 | 1 |
| 1 | 1 | 0 | 1 | 0 | 0 | 1 | 0 |
| 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 |
| 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 |
Step 3: Boolean Expressions
From the truth table, the output functions are simply:
$$W = A'$$ $$X = B'$$ $$Y = C'$$ $$Z = D'$$
Each output is the complement (NOT) of the corresponding input bit.
Step 4: Logic Diagram
The circuit requires four NOT gates (inverters), one for each input bit:
A ----[NOT]---- W (A')
B ----[NOT]---- X (B')
C ----[NOT]---- Y (C')
D ----[NOT]---- Z (D')
Circuit Diagram:
+-------+
A ----->| NOT |-----> W = A'
+-------+
+-------+
B ----->| NOT |-----> X = B'
+-------+
+-------+
C ----->| NOT |-----> Y = C'
+-------+
+-------+
D ----->| NOT |-----> Z = D'
+-------+
Step 5: Verification with Example
Example: Input = 1010 (decimal 10)
| Bit | Input | Output (1's complement) |
|---|---|---|
| A | 1 | W = 0 |
| B | 0 | X = 1 |
| C | 1 | Y = 0 |
| D | 0 | Z = 1 |
Output = 0101 which is indeed the 1's complement of 1010. โ
Summary
| Feature | Description |
|---|---|
| Number of inputs | 4 (A, B, C, D) |
| Number of outputs | 4 (W, X, Y, Z) |
| Gates required | 4 NOT gates |
| Boolean functions | W=A', X=B', Y=C', Z=D' |
| Circuit type | Combinational (no memory, no feedback) |
Conclusion: The 1's complement of a 4-bit number is the simplest combinational circuit, requiring only four inverters, since each output bit is the logical complement of the corresponding input bit.
Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.