How sweetiecloud/risc_cpu works
This repository implements a 32-bit RISC processor in Verilog. Its documented control flow is an eight-step fetch–decode–execute–store FSM, supporting eight instructions; the datapath includes an ALU, program counter, accumulator register, memory, and address mux. The README identifies these as the system’s RTL blocks but does not show their wiring, so the graph captures only that documented integration and the stated FSM stage order. Testbenches and FPGA constraints are omitted as development artifacts.
Main entry points: risc_cpu.v RISC CPU · controller.v FSM controller · alu.v ALU · pc.v Program counter
Components 11
Control flow
- FSM controller
sources/controller.v - Fetch
sources/controller.v - Decode
sources/controller.v - Execute
sources/controller.v - Store
sources/controller.v
Datapath
- RISC CPU
sources/risc_cpu.v - ALU
sources/alu.v - Program counter
sources/pc.v - Address mux
sources/address_mux.v
State and memory
- Accumulator register
sources/register.v - 32-word memory
sources/memory.v
Connections 10
- RISC CPU → FSM controller: integrates
README.md - RISC CPU → ALU: integrates
README.md - RISC CPU → Program counter: integrates
README.md - RISC CPU → Address mux: integrates
README.md - RISC CPU → Accumulator register: integrates
README.md - RISC CPU → 32-word memory: integrates
README.md - FSM controller → Fetch: sequences
README.md - Fetch → Decode: then
README.md - Decode → Execute: then
README.md - Execute → Store: then
README.md