Module

Module 2: Combinational Circuit Design

21 lessons
Start

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:

Module 2 roadmap
Figure 1: Modular architecture and dependency flow of Module 2

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 ALU
Figure 2: Architecture of the 4-bit ALU designed in Section 2.2

The architecture includes:

  1. Adder/Subtractor Unit: Executes addition and subtraction using two’s complement inversion and carry-in control.
  2. Logic Unit: Computes bitwise AND, OR, and XOR operations in parallel.
  3. Output Multiplexer: An 8-to-1 multiplexer selects the output based on a 3-bit operation code (opcode).
  4. 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.

Start with section 2.1: Adder circuits

In this module

01 Adding Two Numbers in Hardware 4 min 02 Half Adder and Full Adder 6 min 03 The Ripple-Carry Adder 5 min 04 The Carry-Lookahead Adder 6 min 05 The Carry-Select Adder 5 min 06 Choosing an Adder 6 min 07 Subtraction Is Addition 6 min 08 The Adder/Subtractor Unit with Flags 7 min 09 What an ALU Is 5 min 10 Building a 4-Bit ALU 6 min 11 The ALU Flags 8 min 12 Binary Multiplication by Hand 4 min 13 The Array Multiplier 5 min 14 The Wallace Tree 6 min 15 Shift Operations 6 min 16 The Barrel Shifter 6 min 17 What a Hazard Is 6 min 18 Static Hazards 6 min 19 Dynamic Hazards 6 min 20 A Procedure for Hazard-Free Design 6 min 21 Hazards in Practice 7 min