Tayler✎
← back

32-Bit Pipelined CPU

A two-stage RISC-V processor in Logisim

RISC-VLogisimComputer ArchitectureDigital LogicPipelining

Overview

Building a CPU From the Ground Up

I wanted to see what happens after you write a line of assembly, so I built the processor that runs it. In Logisim, I wired up the registers, ALU, memory, and control logic, then split instruction processing into two stages.

32-Bit Pipelined CPU32-Bit Pipelined CPU

Technical Features

Datapath Design

The datapath moves values between registers, the ALU, and memory, then writes results back.

Control Logic

I built the control signals that tell each part of the CPU what to do for a given instruction.

Two-Stage Pipeline

Splitting the work into two stages meant tracking what each stage was doing and when values could move forward.

Takeaways

The part that stuck with me was how much has to happen for one assembly instruction to run. Building the pipeline also made it easier to see why doing more than one thing at a time makes the timing harder to get right.