项目作者: SymbiFlow

项目描述 :
Testing Ibex build using Yosys and open source toolchains.
高级语言: Shell
项目地址: git://github.com/SymbiFlow/ibex-yosys-build.git
创建时间: 2020-06-04T09:42:44Z
项目社区:https://github.com/SymbiFlow/ibex-yosys-build

开源协议:ISC License

下载


ibex-yosys-build

Build Status
This repository contains scripts to synthesize and build Ibex CPU for Arty A7 (A35T) board using SymbiFlow toolchain.

Getting started

Clone repository

  1. git clone --recursive https://github.com/antmicro/ibex-yosys-build

Install Prerequisites

This repository requires SymbiFlow toolchain and Lowrisc RISCV toolchain
Install SymbiFlow toolchain using:

  1. wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O conda_installer.sh
  2. export INSTALL_DIR="/opt/symbiflow/xc7"
  3. bash conda_installer.sh -b -p $INSTALL_DIR/conda && rm conda_installer.sh
  4. source "$INSTALL_DIR/conda/etc/profile.d/conda.sh"
  5. conda env create -f examples/xc7/environment.yml
  6. conda activate xc7
  7. wget -qO- https://storage.googleapis.com/symbiflow-arch-defs/artifacts/prod/foss-fpga-tools/symbiflow-arch-defs/continuous/install/27/20200630-100111/symbiflow-arch-defs-install-30f7325f.tar.xz | tar -xJ -C $INSTALL_DIR
  8. export PATH="$INSTALL_DIR/install/bin:$PATH"

download Lowrisc RISCV toolchain using (you can change the installation directory using -t flag):

  1. wget https://raw.githubusercontent.com/lowRISC/opentitan/master/util/get-toolchain.py
  2. python3 get-toolchain.py -t ${PWD}/tools/riscv
  3. export PATH=$PATH:${PWD}/tools/riscv/bin

Preparing tools

To prepare environment, apply ibex.patch, download ibex requirements and prepare ibex for Arty A7 to build with yosys:

  1. cd ibex
  2. git apply ../ibex.patch
  3. pip install -r python-requirements.txt
  4. make sw-led
  5. fusesoc --cores-root=. run --target=synth --setup lowrisc:ibex:top_artya7 --part xc7a35ticsg324-1L
  6. cd ..
  7. make ibex/configure
  8. make patch/symbiflow

Build yosys, symbiflow yosys plugins and install it in conda environment:

  1. cd yosys && make -j$(nproc) && PREFIX=$INSTALL_DIR/conda/envs/xc7 make install && cd ..
  2. cd yosys-symbiflow-plugins && make -j$(nproc) install && cd ..

Generating bitstream

To generate bitstream run:

  1. make