Giter Site home page Giter Site logo

henryhe0123 / risc-v-cpu Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1.22 MB

A RISC-V CPU that supports out of order execution of Tomasulo algorithm

License: MIT License

Makefile 0.83% Shell 1.34% C++ 5.48% Tcl 7.07% Python 0.83% Verilog 63.91% C 20.48% Assembly 0.06%

risc-v-cpu's Introduction

RISC-V-CPU

This is a toy RISC-V CPU written in Verilog that supports out of order execution of Tomasulo algorithm and has passed simulation and FPGA test. See the complete project introduction here.

Design Graph

flowchart TD
    A(RAM) --- B(Memory Controller)
    B --> C(ICache)
    C --> D(IFetcher)
    D --> E(Dispatcher)
    D --- M(Decoder)
    D --- N(Predictor)
    E --> F(Reservation Station)
    E --> G(Reorder Buffer)
    G --> H(Commit Bus)
    E --> I(Load Store Buffer)
    I <--> B
    I --> J(CDB-L)
    F --> K(ALU)
    K --> L(CDB-A)
    H --> Q(Register File)
Loading

Instruction Set

FPGA Test

testcase time(s)
array_test1 0.004642
array_test2 0.002847
basicopt1 0.012653
bulgarian 1.743403
expr 0.010825
gcd 0.015204
hanoi 3.460890
heart 550.602665
looper 0.001929
lvalue2 0.007145
magic 0.034581
manyarguments 0.005640
multiarray 0.015918
pi 1.857390
qsort 6.562402
queens 3.108229
statement_test 0.007033
superloop 0.015037
tak 0.039671
testsleep 7.006029
uartboom 0.788991

Note: Some testcases may need rewritten before running to obtain the correct results.

risc-v-cpu's People

Contributors

henryhe0123 avatar

Stargazers

 avatar

Watchers

 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.