No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
barebox @ d568a1e
fusesoc @ 33c8bf4
riscv-gnu-toolchain @ 1b80cbe
riscv-nmon @ 0cab2f1
riscv-qemu @ afa1886
riscv-soc-cores @ 4c3ab32
.gitmodules
README.md

README.md

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