Code Monkey home page Code Monkey logo

rocket's Introduction

Rocket

This is the undergoing refactor project of rocket core.

Refactor Procedure

Here are some notes for refactoring:

  • There will be two projects: rocket and diplomatic, rocket will depend on chisel3, tilelink projects, diplomatic is the source code originally pulled from rocket-chip, and it will depend on rocket-chip for using diplomacy and cde.
  • There won't be any unrelated change during this refactoring.
  • Upstream rocket core from rocket-chip bug fixes will be cherry-picked to this project.

Architecture

./cosim
├── elaborate
│   └── src
│       ├── Convert.scala
│       ├── CosimConfig.scala: Configuration for rocket core
│       ├── DUT.scala
│       ├── GrandCentral.scala
│       ├── Main.scala
│       ├── TestBench.scala: Integrates DUT and VerificationModule
│       └── VerificationModule.scala: Use C++ to test DUT in System Verilog
└── emulator: C++ files

./diplomatic/
├── resources
└── src
    └── rocket: Rocket core separated from rocket chip, still using CDE and Diplomacy

./rocket: This rocket core only depends on chisel3 and Tile Link

Commands (Ubuntu 20.04)

  1. Download the project
    git clone https://github.com/QL1115/rocket.git
    cd rocket
  2. Install mill 0.10.0, protobuf-compiler, antlr4, clang
    sudo apt-get update
    sh -c "curl -L https://github.com/com-lihaoyi/mill/releases/download/0.10.0/0.10.0 > ~/.local/bin/mill && chmod +x ~/.local/bin/mill"
    sudo apt-get install antlr4
    sudo apt-get protobuf-compiler
    sudo apt-get install clang
  3. set environment variable RISCV_TESTS_ROOT
    export RISCV_TESTS_ROOT=<path_to_rocket_installation>/riscv_tests_root/
  4. Compile the project
    make init
    make bsp
    make compile

After make compile completes, you can find the generated System Verilog files in the ./out/cosim/mfccompile/<32/64>/compile.dest folder.

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.