Study the principles of combinational logic circuits, focusing on their design and operation in digital electronic systems.
A combinational logic circuit is like a table: each combination of inputs always corresponds to the same output, without memory of what happened before. It is the building block of adders, decoders, multiplexers, and comparators, and generally of the entire part of a digital system that processes data without storing it. The outputs depend only on the current input values, except for the gate propagation delay [1][2][3][4].
A combinational network with $n$ binary inputs and $m$ outputs implements $m$ logical (Boolean) functions of $n$ variables. It is described by:
- la tabella di verità, che elenca le $2^n$ combinazioni degli ingressi e l'uscita corrispondente (con $n = 4$ le righe sono $16$, con $n = 8$ sono $256$);
- the Boolean expression, in sum-of-products form (OR of AND) or product-of-sums;
- the gate diagram AND, OR, NOT, and their combinations NAND, NOR, XOR. NAND (or NOR) gates are universal: any function can be implemented using only NAND gates [1][2][3][4].
The design starts from the verbal specification, builds the truth table, derives the expression, and simplifies it to reduce the number of gates and connections. Simplification is done using Boolean algebra laws (for example $A + AB = A$, $A + \bar{A}B = A + B$, De Morgan’s theorems) or Karnaugh maps, which group adjacent ones in the table and allow visual minimization up to four or five variables. For larger numbers of variables, minimization algorithms such as Quine-McCluskey are used, executed by synthesis software [1][2][3].
Although the function is static, each gate has a propagation delay $t_{pd}$, and the maximum delay of a network is that of the longest path between an input and an output (critical path). While inputs change, the output can have an unintended spurious pulse not foreseen by the table (glitch) due to different path delays; it is eliminated with redundant terms in the expression, or ignored if the output is sampled later by a synchronous register [1][2][3].
Adders (half adder, full adder, ripple carry or carry lookahead adders), comparators, decoders, encoders, multiplexers and demultiplexers, code converters (for example binary to seven-segment), arithmetic-logic units. In a digital system, combinational networks and registers alternate: registers store the state, combinational networks compute the next value [1][2][4].
Three-input majority function, $M(A, B, C) = 1$ if at least two inputs are $1$.
1. Truth table ($8$ rows): $M = 1$ for combinations $011$, $101$, $110$ and $111$, i.e., for minterms $3, 5, 6, 7$.
2. Expression as sum of products: $M = \bar{A}BC + A\bar{B}C + AB\bar{C} + ABC$.
3. Simplifying with the Karnaugh map, the four ones group into three pairs: $M = AB + BC + CA$.
4. Implementation of the simplified form: three 2-input AND gates and one 3-input OR gate, four gates in total; the non-simplified form would require four 3-input AND gates, one 4-input OR gate, and inverters.
5. Full adder (sum of three bits $A$, $B$, $C_{in}$): $S = A \oplus B \oplus C_{in}$ and $C_{out} = AB + C_{in}(A \oplus B)$. The carry output is precisely the majority function.
6. Addition of two $4$-bit numbers with four full adders in cascade: $0111 + 0101 = 1100$ ($7 + 5 = 12$), with the carry propagating from the least significant bit to the most significant bit.
Combinational networks are the core of processors’ arithmetic units, address decoders, code converters, and control circuits.
[1] Wikipedia (it): Circuito combinatorio
[2] Wikipedia (en): Combinational logic
[3] Wikipedia (de): Schaltnetz
[4] Wikipedia (fr): Fonction logique
Generating summary…