Skip to content

πŸ’Ž A 32-bit ARM Processor Implementation in Verilog HDL

Notifications You must be signed in to change notification settings

Yingyu18/PipelinedARM

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

PipelinedARM

The Arm architecture is a family of reduced instruction set computing (RISC) architectures for computer processors. In this project, a 32-bit pipelined ARM processor is implemented in Verilog HDL.

The overall architecture

Implementation

Stages

ARM pipeline has five stages, with one step per stage:

β€’ IF: Instruction fetch from memory.

β€’ ID: Instruction decode & register read.

β€’ EX: Execute operation or calculate address.

β€’ MEM: Access memory operand.

β€’ WB: Write result back to register.

Each stage takes in data from that buffer, processes it and write into the next buffer. Also note that as an instruction moves down the pipeline from one buffer to the next, its relevant information also moves along with it.

Instructions

Instruction Mnemonic Definition
MOV Move
MVN Move NOT
ADD Add
ADC Add with Carry
SUB Subtract
SBC Subtract with Carry
AND Logical AND
ORR Logical OR
EOR Exclusive OR
CMP Compare
TST Test
LDR Load Register
STR Store Register
B Branch

Dependencies

macOS

This project needs Icarus-Verilog and a VCD viewer.

Building on macOS

  1. Icarus-Verilog can be installed via Homebrew : $ brew install icarus-verilog

  2. Download Scansion from here.

  3. Clone the repository.

  4. Run $ make and type MIPS code to see it in binary form in rams_init_file.hex file.

  5. $ make simulate will:

  • compile design+TB
  • simulate the verilog design
  1. $ make display will:
  • display waveforms.

Links

  1. ARM Instruction Set
  2. Introduction to ARM Instructions (azeria labs)

TODO

  • β­• Add more instructions

About

πŸ’Ž A 32-bit ARM Processor Implementation in Verilog HDL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Verilog 99.0%
  • Makefile 1.0%