Giter Club home page Giter Club logo

verilog-harvard-cpu's Introduction

Verilog implementation of CPUs

Acknowledgements

This is my code and design documents for the SNU Computer Organization (Spring, 2019) course project. This repository only contains the code I wrote myself, thus excluding the TestBench or Memory module. I am opening this repository publicly so as to provide a reference inplementation for various types of CPUs. Please refer to the LICENSE if you want to utilize code from this repository.

Structure

Generally, features of the CPU stack up as its index increases. For example, 06. Tournament Prediction CPU also has data-forwarding, which was first introduced in 04. Data Forwarding CPU. Each CPU implementation folder contains verilog code and its design document. The design document (design.pdf) contains descriptions, logics, and performance analyses of the CPU.

  • 01. Single-cycle CPU: A single cycle CPU that has an IPC of 1.
  • 02. Multi-cycle CPU: A multi cycle CPU that has an IPC of 1.
  • 03. Pipelined CPU: A 5-stage pipelined CPU. Everything after this has this as its base architecture.
  • 04. Data Forwarding CPU: Data forwarding from the ALU result port to previous pipeline stages.
  • 05. 2-Sat Branch Prediction CPU: Branch prediction with a BTB with 2-bit saturation counter. Previous CPUs always predicted not-taken.
  • 06. Tournament Prediction CPU: The DEC Alpha 21264 tournament branch predictor is implemented (without the line-and-way predictor).
  • 07. 2-cycle Memory CPU: A slightly more realistic CPU that communicates with a slow memory. The variable LATENCY (default 2) can be modified to change the latency of the memory.
  • 08. Harvard Arch Cached CPU: An instruction cache and a data cache is implemented. The instruction cache prefetches instructions from the next block to further reduce fetch latency.
  • 09. Simple DMA CPU: A simple DMA module and an its required interrupt mechanism is implemented.
  • 10. Cycle-stealing DMA CPU: DMA operations are interleaved with instructions that access the data cache to minimize pipeline stall.

verilog-harvard-cpu's People

Contributors

jaywonchung 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.