Module 2: Combinational Circuit Design
Module 1 established the theoretical foundations of digital logic: Boolean algebra, logic gates, Karnaugh maps, and building blocks. Module 2 transitions from circuit analysis to hardware design. You will transform functional specifications into physical combinational circuits. You will evaluate circuits for operational speed, silicon area, and timing hazards.
Every digital processor performs millions of arithmetic operations per second. Memory addresses, program counters, and arithmetic computations rely on adder circuits. In addition operations, carry propagation from the least significant bit to the most significant bit creates the primary latency bottleneck. This module examines hardware design techniques that minimize carry propagation delay.
Module Structure and Roadmap
Module 2 contains four technical sections and 21 articles (Table 1):
| Section | Articles | Primary Technical Topics |
|---|---|---|
| 2.1 Adder Circuits | 6 | Half adders, full adders, ripple-carry adders, carry-lookahead adders, carry-select architectures, and design trade-offs. |
| 2.2 Subtractors and the ALU | 5 | Two’s complement subtraction, unified adder/subtractors, ALU architecture, a 4-bit ALU implementation, and status flag generation. |
| 2.3 Multipliers and Shifters | 5 | Partial products, array multipliers, Wallace tree reduction networks, logical/arithmetic shifts, and barrel shifters. |
| 2.4 Combinational Hazards | 5 | Static and dynamic hazards, Karnaugh map hazard detection, consensus terms, and glitch mitigation techniques. |
Figure 1 illustrates the dependency relationships among the four sections:
The sections follow a sequential hierarchy. Adder circuits form the foundation of the Arithmetic Logic Unit (ALU). Hazard analysis evaluates physical propagation skews across these arithmetic blocks.
Core Design Project: 4-Bit Arithmetic Logic Unit (ALU)
Section 2.2 guides the design of a complete 4-bit Arithmetic Logic Unit (ALU). Figure 2 shows the block diagram:
The architecture includes:
- Adder/Subtractor Unit: Executes addition and subtraction using two’s complement inversion and carry-in control.
- Logic Unit: Computes bitwise AND, OR, and XOR operations in parallel.
- Output Multiplexer: An 8-to-1 multiplexer selects the output based on a 3-bit operation code (
opcode). - Status Flag Logic: Computes Zero ($Z$), Negative ($N$), Carry ($C$), and Overflow ($V$) status flags.
This configuration matches the core architecture of classical microprocessors, such as the MOS 6502.
Learning Objectives
After completing Module 2, you will be able to:
- Derive gate-level schematics for half adders and full adders from truth tables.
- Construct an $N$-bit ripple-carry adder and calculate its linear latency ($O(N)$).
- Formulate generate ($G$) and propagate ($P$) equations to design a carry-lookahead adder.
- Explain carry-select adder architectures and their area-speed trade-offs.
- Build a combined adder/subtractor unit using XOR gating.
- Define and implement the $Z$, $N$, $C$, and $V$ processor status flags.
- Design an 8-operation, 4-bit ALU with opcode decoding.
- Synthesize binary multiplication using partial products and array multipliers.
- Implement Wallace tree reduction networks to accelerate carry-save multiplication.
- Design logarithmic barrel shifters for multi-bit shift operations.
- Identify static and dynamic hazards on Karnaugh maps and eliminate them using consensus terms.
Getting Started
Section 2.1 analyzes the physical constraints of binary addition in silicon.