Coder Social home page Coder Social logo

rv32-simple-soc's Introduction

rv32-simple-soc

For building rv32-simple-soc from source please use Debian 9 "Stretch". See https://www.debian.org for details.

$ sudo apt-get install git
$ git clone --recursive https://github.com/miet-riscv-workgroup/rv32-simple-soc
$ cd rv32-simple-soc

toolchain

$ sudo apt-get install autoconf automake autotools-dev curl libmpc-dev libmpfr-dev \
        libgmp-dev gawk build-essential bison flex texinfo gperf libtool patchutils bc \
        zlib1g-dev

$ cd riscv-gnu-toolchain
$ sudo mkdir /opt/riscv
$ sudo chown $USER /opt/riscv
$ ./configure --prefix=/opt/riscv --with-arch=rv32i
$ make newlib

QEMU

$ sudo apt-get install python pkg-config zlib1g-dev libglib2.0-dev libpixman-1-dev

$ cd riscv-qemu
$ ./configure --target-list=riscv32-softmmu,riscv64-softmmu --prefix=/opt/riscv
$ make install

nmon

$ cd riscv-nmon
$ make nmon_picorv32-wb-soc_10MHz_9600.bin CROSS_COMPILE=/opt/riscv/bin/riscv32-unknown-elf-


$ /opt/riscv/bin/qemu-system-riscv32 -nographic -M erizo \
         -bios nmon_picorv32-wb-soc_10MHz_9600.bin \
         -serial stdio -monitor none -trace file=/dev/null

fusesoc

$ sudo apt-get install python-pip
$ cd fusesoc
$ sudo pip install -e .

fusesoc: simulation

$ sudo apt-get install iverilog gtkwave
$ sudo apt-get install libelf-dev

$ cd riscv-soc-cores
$ fusesoc --cores-root cores/ sim picorv32-wb-soc
$ gtkwave build/picorv32-wb-soc_0/sim-icarus/picorv32-wb-soc.vcd

fusesoc: build Altera Cyclone bitstream

$ cd riscv-soc-cores
$ export PATH=$PATH:/opt/altera/13.1/quartus/bin
$ fusesoc --cores-root cores/ build marsohod2-picorv32-wb-soc

barebox

barebox: qemu simulation

$ sudo apt-get install lzop

$ cd barebox
$ make erizo_generic_defconfig ARCH=riscv
$ make ARCH=riscv CROSS_COMPILE=/opt/riscv/bin/riscv32-unknown-elf-


$ /opt/riscv/bin/qemu-system-riscv32 -nographic -M erizo \
         -bios barebox.bin \
         -serial stdio -monitor none -trace file=/dev/null

barebox: fpga board

$ cd barebox
# ./scripts/nmon-loader barebox.erizo.nmon /dev/ttyUSB1 115200

nmon> g 80000000

nmon> q

rv32-simple-soc's People

Contributors

frantony avatar

Stargazers

sunnycase avatar Erdni M avatar

Watchers

 avatar James Cloos avatar

Forkers

kraziant

rv32-simple-soc's Issues

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.