Giter Club home page Giter Club logo

riscv-dev's Introduction

Instructions

  • Install all needed libraries
$ sudo apt-get install autoconf automake autotools-dev curl libmpc-dev libmpfr-dev libgmp-dev libusb-1.0-0-dev gawk build-essential bison flex texinfo gperf libtool patchutils bc zlib1g-dev device-tree-compiler pkg-config libexpat-dev python3
  • Clone riscv-gnu-toolchain and riscv-tools + update the riscv-tools repository
$ git clone --recursive https://github.com/riscv/riscv-tools.git
$ git clone --recursive https://github.com/riscv/riscv-gnu-toolchain.git
$ cd ./riscv-tools && git submodule foreach --recursive git pull origin master
  • The order to access the repos is:
  1. riscv-opcodes: Running make, the result is an encoding.h file that includes all the RISC-V instructions located inside the repo. In order to add the instructions to the toolchain, edit the riscv-opc.h file located in the /riscv-gnu-toolchain/riscv-gdb/include/opcode/ directory and in /riscv-gnu-toolchain/riscv-binutils/include/opcode/ directory, by adding the definitions of the instructions which are stored in the encoding.h file. Lastly, edit the riscv-opc.c file located in the /riscv-gnu-toolchain/riscv-gdb/opcodes/ directory and in the /riscv-gnu-toolchain/riscv-binutils/opcodes/ directory, specifically the riscv_opcodes struct. You could use this diploma thesis as reference - see chapter 6.6 (specifically 6.6.6 and onwards)
  2. riscv-gnu-toolchain: Necessary step for all the remaining repos.
  3. riscv-isa-sim
  4. riscv-pk
  5. riscv-tests
  6. riscv-openocd

riscv-dev's People

Contributors

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