The Complete Microprocessor

Architecture & Design Review Lab 4 Completed

Student: Lalo Morales

System Overview

You have successfully built a fully functional 4-bit Microprocessor. This system is capable of executing programmed instructions stored in memory, performing arithmetic calculations, and making decisions based on logic.

🧠 The Brainless CPU

Role: The Calculator

Contains the Arithmetic Logic Unit (ALU) and the Accumulator. It performs math (ADD, SUB) and logic (AND) operations on data.

🎮 The Controller

Role: The Puppet Master

A ROM-based Finite State Machine. It reads "Opcodes" and translates them into control signals (wires) that tell the other parts what to do.

📍 Address Generator

Role: The Navigator

Calculates where to look in memory. It can step forward sequentially (Program Counter) or jump to specific locations (MAR).

✅ Status Check

  • ✓ Hardware assembly completed.
  • ✓ Instruction set defined (LOAD, ADD, STOP, AND, ZERO, SUB, STORE).
  • ✓ Verified via Simulation (Digital & Verilog).

Interactive Architecture

Hover over any component to understand its role in your circuit.

DATA BUS (4-bit) ADDRESS BUS CONTROL SIGNALS CONTROLLER ADDRESS GEN RAM BRAINLESS CPU

Component

Description goes here...

The Language of Your Machine

You moved from building hardware to defining software. These are the commands your CPU understands.

LOAD ACC (Op: 0)

Reads a value from RAM and puts it into the Accumulator.

Accum = RAM[PC]

ADD (Op: 1)

Adds a value from RAM to the current Accumulator value.

Accum = Accum + RAM[PC]

AND (Op: 3)

Bitwise AND operation. Keeps bits only if they are 1 in both numbers.

Accum = Accum & RAM[PC]

ZERO (Op: 4)

Clears the Accumulator by subtracting it from itself.

Accum = Accum - Accum

SUB (Op: 5)

Subtracts a RAM value from the Accumulator.

Accum = Accum - RAM[PC]

STORE (Op: 6)

Saves the Accumulator value into a specific RAM address.

RAM[Operand] = Accum

Micro-Operations (The "Secret" Steps)

Every instruction above is broken down into tiny steps inside the Controller's ROM. For example, STORE takes 2 steps:

Step 1: Fetch address from RAM -> Load into MAR (Memory Address Register)
Step 2: Put Accumulator on Data Bus -> Write enabled -> Save to RAM
        

How You Got Here

This microprocessor is the culmination of 4 labs worth of work.

Lab 1: The Foundation

You built basic Adders and Incrementers. These circuits are now living inside your ALU (Arithmetic Logic Unit) and your PC (Program Counter). Without them, the computer couldn't count or do math.

Lab 2: Decisions

You built Multiplexers (Muxes). These are the "traffic cops" of your circuit. In the final diagram, you see them choosing whether the address comes from the PC or the MAR.

Lab 3: Memory & State

You built Registers and the "Brainless" CPU. This gave the machine a short-term memory (Accumulator) but it had no way to execute a program automatically.

Lab 4: Intelligence

You added the Controller (ROM) and Address Generator. This closed the loop. Now, the machine fetches its own instructions, decodes them, and executes them in a cycle.