Gate-Level CPU Simulator

Project Goals

Conceptual Summary

This project implements a 32-bit single-cycle RISC CPU entirely from logic gates. Every arithmetic operation, every control signal, and every data path is constructed from fundamental boolean gates (AND, OR, NOT, XOR, NAND, NOR). There are no shortcuts—no built-in arithmetic operators used for computation, only for control flow and data structures.

The CPU follows a single-cycle architecture where each instruction completes in exactly one clock cycle. The simulation uses a two-phase clock model to properly handle sequential elements and ensure correct timing behavior.

Architecture Overview

The CPU implements a classic RISC instruction set with:

Design Philosophy

This implementation emphasizes understanding the fundamental building blocks of computation. By constructing everything from gates, we gain insight into:

Documentation Structure

Each page in this section follows a consistent structure:

Writing Style

Documentation is written to be: