Coder Social home page Coder Social logo

yasnakateb / pipelinedarm Goto Github PK

View Code? Open in Web Editor NEW
16.0 2.0 6.0 57 KB

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

Makefile 1.04% Verilog 98.96%
cpu arm arm-processor verilog icarus-verilog verilog-hdl iverilog arm-pipeline

pipelinedarm's Introduction

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

pipelinedarm's People

Contributors

yasnakateb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.