GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - RohithVeer/ARM32_BIT_CPU_DESIGN: Replicated and implemented a 32-bit ARM-style CPU in Verilog/SystemVerilog, covering full datapath, control logic, ALU, and memory integration, with functional verification through RTL simulation.

BranchesTags
Open more actions menu

Latest commit

 

History

5 Commits
5 Commits

Folders and files

NameName
Last commit message
Last commit date
SV files
SV files
 
 
Verilog Files
Verilog Files
 
 
AMR32_Bit.docx
AMR32_Bit.docx
 
 
README.md
README.md
 
 
Screenshot 2025-11-24 124904.png
Screenshot 2025-11-24 124904.png
 
 
Screenshot 2025-11-24 130320.png
Screenshot 2025-11-24 130320.png
 
 
Screenshot 2025-11-24 130530.png
Screenshot 2025-11-24 130530.png
 
 

Repository files navigation

ARM32-BIT CPU — RTL Design (Verilog + SystemVerilog)


Project Overview

This repository contains a complete ARM32-bit CPU designed using Verilog/SystemVerilog and verified using Vivado 2025.1 and EDAPlayground.
The CPU follows a simplified educational ARM architecture (from Harris & Harris: Digital Design and Computer Architecture — ARM Edition), implementing:

  • 32-bit datapath
  • Instruction Fetch → Decode → Execute flow
  • ARM flags (N, Z, C, V)
  • ALU operations — ADD, SUB, AND, OR
  • Conditional execution
  • Register file (R0–R15 with PC+8 behavior)
  • IMEM (instruction memory)
  • DMEM (data memory)
  • Complete CPU integration with a testbench

All RTL modules are complete, functional, and verified.



Module Details

ALU — Arithmetic Logic Unit

  • Functions: ADD, SUB, AND, OR
  • Inputs: SrcA[31:0], SrcB[31:0], ALUControl[1:0]
  • Outputs: ALUResult[31:0], ALUFlags[3:0]
  • Flags generated:
    • N (Negative)
    • Z (Zero)
    • C (Carry)
    • V (Overflow)
  • Verified in EDAPlayground & Vivado

Datapath

Includes:

  • Program Counter (PC)
  • PC increment logic (PC → PC+4 → PC+8)
  • Register File (R0–R15)
  • ALU
  • Immediate Extender
  • MUX structures
  • Write-back path

Status: Verified and stable.


Controller

Contains:

  • Main decoder
  • ALU decoder
  • Conditional execution logic

Generates:

  • RegWrite
  • MemWrite
  • ImmSrc
  • ALUSrc
  • FlagW
  • MemtoReg
  • PCSrc
  • RegSrc

Status: Verified.


Instruction Memory (IMEM)

  • 64 × 32-bit

  • Works correctly in EDAPlayground

  • Vivado requires correct file placement


Data Memory (DMEM)

  • 64 × 32-bit RAM
  • Write-enable controlled by MemWrite
  • Verified.

Top-Level CPU

Connects:

  • Datapath
  • Controller
  • IMEM
  • DMEM

Status: Fully functional CPU simulation achieved.


CPU Architecture (Images to Upload on GitHub Later)

Datapath Diagram

Screenshot 2025-11-24 130530

RTL Architecture

Screenshot 2025-11-24 130320

Compliance Checklist

Feature / Requirement Status Notes
32-bit ALU Pass ADD/SUB/AND/OR
ARM Flags N,Z,C,V Pass Matches ARM behavior
Register File Pass R15 = PC+8
Datapath Pass Verified
Instruction Memory Pass Loads from memfile.dat
Data Memory Pass Read/Write OK
EDAPlayground CPU Run Pass Fully successful
Vivado Compatibility InProgress memfile.dat must be placed manually
Testbench Pass Clock/Reset + CPU integration

Directory Structure

ARM32_BIT_CPU/
│── adder.v
│── alu.v
│── condlogic.v
│── condcheck.v
│── controller.v
│── cpu.v
│── datapath.v
│── decoder.v
│── dmem.v
│── extend.v
│── flopr.v
│── flopenr.v
│── imem.v
│── memfile.dat
│── mux2.v
│── regfile.v
│── testbench.sv
│── top.v
└── README.md

Simulation Instructions

Full CPU Simulation (EDAPlayground)

https://www.edaplayground.com/x/Hk54

Waveform Viewer (EPWave)

https://www.edaplayground.com/launchEpwave


Vivado Simulation (Windows)

Important

Vivado does not automatically detect memfile.dat.
You must place it manually here:

PROJECT_NAME.srcs/sim_1/imports/memfile.dat

Project Status

  • All RTL modules implemented
  • Full CPU simulation successful on EDAPlayground
  • ALU and Datapath verified on Vivado
  • Register file, memory, decoder, controller verified
  • Suitable for portfolio, resume, and interviews
  • Vivado requires proper memfile.dat placement

Results

Edaplayground Simulation Result

image

Vivado ALU Waveform

Screenshot 2025-11-24 124904

License

Released under the MIT License.


Acknowledgments

  • This project is derived from the educational ARM architecture presented in Digital Design and Computer Architecture — ARM Edition (Harris & Harris).
  • Verified using Vivado, Icarus Verilog, and EDAPlayground.

About

Replicated and implemented a 32-bit ARM-style CPU in Verilog/SystemVerilog, covering full datapath, control logic, ALU, and memory integration, with functional verification through RTL simulation.

Topics

alu-arithematic-logiccomputer-architecturecontrol-logicdatapath-designmemory-systemsprocessor-architecturertl-hardware-design

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.