From a sentence to a circuit.
Combinational design is a fixed recipe: inputs, truth table, K-map, gates. Practise it here, then build the two circuits of the lab.
Combinational circuits
The outputs depend only on the inputs present now, never on what happened before. An output stays constant as long as the inputs stay constant. (Circuits with memory, the sequential circuits, come in Lab 11.)
The design procedure
List the inputs and outputs and give each a letter.
Write the truth table: 2ⁿ rows for n inputs.
One K-map per output; group the 1s in rectangles of 1, 2, 4 or 8.
Turn each expression into gates; share gates between outputs when you can.
Pick the chips, number every pin, plan VCC and GND.
Wire and check row by row on the trainer.
The K-map
This is the committee function of Task 2 (S J1 J2 J3). Click cells to change it and watch the simplest sum of products.
| SJ1 \ J2J3 | 00 | 01 | 11 | 10 |
|---|---|---|---|---|
| 00 | ||||
| 01 | ||||
| 11 | ||||
| 10 |
F = Σm(11, 13, 14, 15) = SJ2J3 + SJ1J3 + SJ1J2
Click a cell to cycle 0, 1, X (don't care). The rows and columns follow the Gray code, so neighbouring cells differ in one variable.Task 1: a 2-bit adder
X1 X0 + Y1 Y0 gives at most 3 + 3 = 6 = 110, so three outputs: C, S1, S0. S0 = X0 ⊕ Y0. The carry of the low bits, X0 Y0, enters the high bits, so S1 and C are a full adder on X1, Y1 and that carry. You may also simplify all three outputs straight from 4 variable K-maps.
Task 2: the committee
- Inputs: S (senior) and J1, J2, J3 (juniors), 1 = YES. Output P = 1 when the proposal passes.
- Passes when S = 1 and at least two juniors say YES: rows 1011, 1101, 1110 and 1111.
- P = S (J1 J2 + J1 J3 + J2 J3): three AND gates, an OR of three (two 2 input ORs) and one more AND.
Check yourself
Q1How many rows has the truth table of Task 1?
Sixteen: four inputs.
Q2What is the largest sum in Task 1, and how is it shown?
3 + 3 = 6: C = 1, S1 = 1, S0 = 0.
Q3Can the senior alone pass a proposal?
No. P needs S = 1 and two junior YES votes.
Q4Why does the K-map use the order 00, 01, 11, 10?
Gray code: neighbouring cells differ in one variable, so adjacent 1s can be grouped.