GithubHelp home page GithubHelp logo

ic-lab-duth / drim-s Goto Github PK

View Code? Open in Web Editor NEW
28.0 3.0 4.0 1.08 MB

DUTH RISC-V Superscalar Microprocessor

License: MIT License

Stata 13.68% SystemVerilog 84.48% Assembly 0.05% C 1.49% Forth 0.30%
riscv risc-v systemverilog superscalar processor

drim-s's Introduction

Overview

A 6-stage core, 2-Wide Superscalar, implementing the RiscV ISA (RV32IM). Features:

  • Dual Fetch & Dual Issue
  • Dynamic Branch Prediction
  • Register Renaming Scheme
  • OoO Execution
  • Non-blocking data cache

overview

Directory Hierarchy

The folder hierarchy is organised as follows:

  • images: schematics
  • rtl : contains all the synthesisable RTL files
  • sva : contains related x-checks and assertions for the design
  • rig_tb : contains the Random Instruction Generator and associated TB environment
  • sim : contains scripts for running in Questasim

Repo State

Current State & Limitations

  • Support for "RV32I" Base Integer Instruction Set
  • Support for โ€œMโ€ Standard Extension for Integer Multiplication and Division
  • Verification status: Unit verification & Top level verification has taken place
  • Partially implemented: Decode for additional instructions that are not yet supported (System, floating point, CSR) and exception detection
  • The svas present have only been using in simulation and not in any formal verification process

Future Optimisations

  • Replace MUL/DIV units with optimised hardware, to reduce execution latency and decompress a lot of the paths

Future Work

  • Floating Point & Fixed point arithmetic
  • CSR, SYSTEM instructions and Priviledged ISA
  • Exception detection and Interrupt handling
  • Virtual Memory
  • 64bit support
  • Align to future versions of the RISC-V ISA. Current document version supported is 20191213 of the Unpriviledged ISA manual

How to Compile

The /sim directory is used for the simulation flow and it contains detailed instructions for both the flow and compiling C code. That way you can generate your own executable file and convert it to a memory file suitable for the CPU. Examples (code and precompiled files) are included in the /sim/examples directory.

To compile:

  • include a compiled memory.txt file inside the /sim directory
  • run the compile.do in questa with: "do compile.do"

The testbench hierarchy can be seen below:

TB Level Hierarchy: ->tb -> module_top -> Processor_Top

Hierarchy Name Details
tb top level of the TB, instantiating the datapath
module_top The top level of the cpu datapath, connecting the memories and the surrounding logic with the core
processor_top The top level of the core datapath

Run the RIG TB

A second testbench environment is provided inside /rig_tb, featuring a Random Instruction Generator (RIG). For more information on how to setup, configure and run the testbench consult the README inside its directory.

License

This project is licensed under the MIT License.

drim-s's People

Contributors

galexakis avatar gdimitrak avatar

Stargazers

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

Watchers

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