ChipFACTORYFoundations
Apply now
Foundations/STAGE 06
Foundations Track/STAGE 06
35 min architectural discovery
SECTION 6

How do we design a complete digital machine?

The Systems Architecture Challenge

“We have computation. We have memory. We have control. How do these individual circuits come together to form an entire functioning digital system?”

In our journey through digital electronics, we have mastered individual primitives: logic gates in Section 2, arithmetic ALUs in Section 3, registers in Section 4, and finite state machines in Section 5. A single logic gate is like a single brick, but our goal is to build an entire automated city. In this section, we transition from drawing basic circuits to systems-level architecture—combining computation, storage, and control into complete, real-world machines.

6.1The Five Pillars of Digital Systems

What does a digital machine actually need?

Every complete digital system—whether it is a simple digital stopwatch, a microwave timer, or a 64-bit supercomputing processor—requires exactly five fundamental components to function correctly:

  1. Inputs: What information enters the system from the outside world (push-buttons, sensors, serial streams)?
  2. Outputs: What final result or action does the system produce (7-segment displays, LEDs, motor actuators)?
  3. Memory: What specific data, counts, or operational states must be remembered across clock cycles?
  4. Calculation: What mathematical or logical operations must be computed (ALUs, adders, comparators)?
  5. Control: What mechanism orchestrates the timing, state changes, and enable signals for all moving parts?
The Automated Factory Floor Metaphor: Raw materials arriving at the loading dock are Inputs. Finished goods leaving are Outputs. The warehouse holding parts is Memory. Robotic assembly arms are Calculation. And the central dispatch computer telling every station when to move is the Control Unit.
Interactive BlueprintSlide 2–4 Reference

The 5 Pillars of Any Digital System Architecture

Pillar 01 Definition

Inputs — “What information is entering the system?”

Analogy: Raw materials arriving at the loading dock
Architectural Role

Captures external stimuli or incoming data streams and converts them into digital logic voltage levels (HIGH/LOW).

Concrete Silicon Blocks
Push-buttons & KeypadsSensor linesSerial UART RxDIP SwitchesClock oscillators

Key Architectural Rule: No single gate operates in isolation. Every complete digital machine—from a microwave controller to a RISC-V processor—is composed of these exact five pillars working in lockstep synchronization.

6.2Datapath & Multi-Bit Plumbing

Where does the computation happen?

In Section 3, we built adders, comparators, and multiplexers. In a complete digital system, these combinational circuits are grouped into a dedicated physical highway called the Datapath. The computation centerpiece of the datapath is the Arithmetic Logic Unit (ALU).

To feed numbers into the ALU, blocks must communicate. A single electrical wire carries only a single bit (a Signal). But transmitting an 8-bit or 16-bit number one bit at a time over a single wire is slow. By bundling parallel wires together into a Bus, an entire numerical word travels simultaneously in a single clock transition.

Plumbing the Data Flow: Just like city plumbing uses one large consolidated main pipe instead of thousands of tiny individual straws, grouping digital signals into buses streamlines routing, reduces layout congestion, and allows the system to treat a cluster of bits as a single mathematical entity.
Datapath & PlumbingSlide 5–6 Reference

Where Computation Happens: The Datapath & Multi-Bit Buses

In a digital system, the Datapath is the physical highway of registers, multiplexers, and arithmetic circuits where data is routed and transformed. The core computation heart is the Arithmetic Logic Unit (ALU).

Operand A [7:0]45 (0x2D)
Bits: 00101101
ALU Opcode (Control Select)
Operand B [7:0]27 (0x1B)
Bits: 00011011
Bus A [7:0]00101101Bus B [7:0]00011011OP_SEL: ADD/8/8ALU8-Bit Combinational Core/8RESULT BUS Y [7:0]72 (0x48)Bits: 01001000Status Flags:Z=0C=0S=0
6.3Digital Storage & Register Banks

Where does the information live?

There is a critical distinction at the heart of computer architecture:

Computation (ALU)

“What should the value become?”

Combinational logic gates instantly transform inputs into outputs, but have zero retention. When inputs change, previous outputs vanish.

Storage (Registers)

“Where do we keep the value?”

Flip-flop registers act as the warehouse, capturing data on clock edges ($\uparrow$) and holding values rock-solid across cycles.

By combining register banks (Accumulators, Operand Registers, Program Counters) with the ALU, the machine can hold onto intermediate calculations, accumulate totals, and feed past results back into future calculations.

Storage ArchitectureSlide 3 & 5 Reference

Where Information Lives: Synchronous Multi-Bit Registers

While the ALU calculates values instantaneously, combinational logic cannot hold onto them. The moment inputs change, previous outputs vanish. Registers (Digital Memory) act as the warehouse of the machine—capturing data on clock edges ($\uparrow$) and holding it rock-solid for future operations.

Shared Input Bus (DATA_IN [7:0])42 (0x2A)
Bits: 00101010
Global Clock Line (CLK)Cycle #0
Registers hold current values until clock pulse.
SHARED PARALLEL DATA BUS [7:0] — ACTIVE VALUE: 42 (00101010)GLOBAL SYSTEM CLOCK LINE (CLK)REGISTER A ($R_0$)Accumulator / Data Reg0 (0x00)00000000WRITE ENABLED (LOAD=1)REGISTER B ($R_1$)Operand Register0 (0x00)00000000HOLDING STATE (LOAD=0)OUTPUT REG (R_OUT)Port / Display Latch0 (0x00)00000000HOLDING STATE (LOAD=0)
6.4Control Unit Orchestration

Who decides what happens next?

We have computation (the ALU) and storage (Registers). But who decides which operation the ALU should compute? Who tells Register A to open and Register B to latch? Who decides when the calculation is finished?

This is the role of the Control Unit. The Control Unit is a Finite State Machine (FSM) that acts as the brain and central nervous system of the digital machine. At each clock cycle, the FSM transitions through operational states and issues precise 1-bit and multi-bit Control Signals:

  • MUX_SEL — Selects which bus feeds into the arithmetic block.
  • ALU_OP — Instructs the ALU to Add, Subtract, or Compare.
  • REG_EN — Write enable strobe dictating which register captures data.
  • STATUS_FLAGS — Feedback from the datapath (Zero flag, Carry, Comparison) informing the FSM of calculation outcomes.
System Architecture CoreSlide 3 & 7 Reference

Datapath (The Body) vs. Control Unit (The Brain)

A complete digital machine is split into two complementary planes: the Datapath (which manipulates numerical words) and the Control Unit (which decides what the datapath should do and when).

FSM State:IDLE| Cycle #0
CONTROL UNIT (SUPERVISOR FSM & DECODER)Active Action: Waiting for start commandIDLELOAD_ALOAD_BCOMPUTESTOREMUX_SEL=0REG_A_EN=0REG_B_EN=0ALU_OP=PASSOUT_EN=0MUXIN: 15REG A0HOLDINGREG B0HOLDINGALUREG OUT0HOLDINGAccumulator Feedback Loop (MUX Channel 1)
Active Control Strobes: MUX_SEL=0, ALU_OP=PASS, EN_A=0, EN_B=0, OUT_EN=0
Without the control unit, the datapath would have no instructions on what to compute.
6.5System Integration in Action

How do all these pieces work together?

When Inputs, Memory, Calculation, and Control are wired together on silicon, they form a complete, autonomous digital system. In Slides 11, 12, and 13, the curriculum demonstrates this synergy through classic real-world machines:

1. Digital Stopwatch

100 Hz Oscillator + Start/Stop FSM + Cascading BCD Counters + 7-Segment Decoders.

2. Combination Lock

Keypad Input + Secret Code Register + 4-Word Equality Comparator + Lock FSM.

3. Multi-Cycle ALU

Accumulator Register + Instruction Opcode + ALU Core + Sequential Execution.

System Integration WorkbenchSlides 11, 12, 13 Reference

Complete Digital Machines in Action: Inputs, Memory, ALU & FSM

Slide 11: A precision timekeeping system integrates all 5 pillars: Inputs (Start/Stop, Reset), Control Unit FSM (Counting / Paused), a 100 Hz Clock Oscillator, cascading BCD Counters & Memory Latches (1/100s, Seconds, Minutes), and BCD-to-7-Segment Display Decoders driving the LED panels.

MIN [10s]
MIN [1s]
:
SEC [10s]
SEC [1s]
.
1/10s
1/100s
FSM State:IDLE
Architectural Signal Flow (Slide 11 Blueprint)
1. Inputs & Clock

100 Hz Master Oscillator + Start/Stop debounce flip-flops.

2. Control FSM

Enables or gates the 100Hz clock pulse into the counters.

3. Cascading Counters

BCD 1/100s rolls over at 99 → Sec counter rolls over at 59 → Min counter.

4. Display Decoders

Translates 4-bit BCD binary words into 7 active LED segment lines.

6.6Modular Blueprints & Scaling

Can we describe the whole machine before building it?

Designing a complex digital machine as a single giant monolithic circuit leads to wiring tangles, impossible debugging, and complete project failure. Modern chip design relies on Modular Architecture:

1. Manageability

Breaks down massive systems into self-contained blocks (ALUs, decoders, UART controllers) allowing parallel engineering teams.

2. Debuggability

Isolates errors within module boundaries, allowing exhaustive unit testing before full chip integration.

3. Reusability

Proven silicon IP blocks can be reused across dozens of chip generations without redesigning from scratch.

Clean module boundaries require strict Interface Contracts and Handshake Protocols (such as VALID and READY), alongside rigorous planning for Corner Cases and deterministic System Reset Conditions.

Engineering BlueprintingSlides 7–10, 14 Reference

Pre-Hardware Specification, Clean Boundaries & Scaling

Slide 8: Dividing large circuits into modular blocks requires strict boundaries. Modules use Handshake Protocols (such as VALID and READY) to guarantee reliable data transfer without data loss or buffer overruns.

Module Interface Control
Module Interface Diagram
Data Bus [7:0]:0x4A
VALID (Producer → Consumer):0 (DEASSERTED)
READY (Consumer ← Producer):0 (DEASSERTED)
Interface Transfer Log
Handshake interface initialized. Idle bus.
SECTION 6 MASTER SYNTHESIS

From Signals to Complete Machines

You have achieved a massive conceptual milestone in your chip engineering journey. You understand how physical voltages become bits (Sec 1), how transistors make decisions (Sec 2), how gates perform arithmetic (Sec 3), how feedback stores memory (Sec 4), how state machines follow sequences (Sec 5), and how Datapath and Control unite to form complete digital systems (Sec 6).

The Next Frontier • Section 7

Drawing all these circuits is getting ridiculous. Can we describe them another way?

Drawing schematic diagrams with gates and wires worked fine for a 4-bit stopwatch. But modern processors contain over 1 Billion transistors. It is physically impossible to draw these circuits by hand. To scale to the next level of complexity, we must move beyond drawing pictures and learn how to describe hardware using text: Hardware Description Languages (HDLs & Verilog RTL).