Coder Social home page Coder Social logo

zephyr-on-litex-vexriscv's Introduction

Zephyr-on-litex-vexriscv

Zephyr on LiteX VexRiscv is a LiteX SoC builder for the litex_vexriscv platform in Zephyr. Currently it supports Digilent Arty A7-35T Development Board and SDI MIPI Video Converter.

Prerequisites

First, if you want to run Zephyr on Digilent Arty, you have to install the F4PGA toolchain. It can be done by following instructions in this tutorial. For SDI MIPI Video Converter - install oxide (yosys+nextpnr) toolchain by following these instructions.

Then, clone and enter the Zephyr-on-litex-vexriscv repository:

git clone https://github.com/litex-hub/zephyr-on-litex-vexriscv.git && cd zephyr-on-litex-vexriscv

Get all required submodules and packages, and run the install script:

git submodule update --init --recursive
apt-get install build-essential bzip2 python3 python3-dev python3-pip
./install.sh

Build

Build the bitstream by following these steps:

  • Add LiteX to path:
source ./init
  • Prepare F4PGA environment (for Digilent Arty target):
export INSTALL_DIR="path/to/f4pga"
FPGA_FAM="xc7"
export PATH="$INSTALL_DIR/$FPGA_FAM/install/bin:$PATH";
source "$INSTALL_DIR/$FPGA_FAM/conda/etc/profile.d/conda.sh"
conda activate $FPGA_FAM
  • Finally build the bitstream:

    For Digilent Arty board:

    ./make.py --board=arty --build

    For SDI MIPI board:

    ./make.py --board=sdi_mipi_bridge --build --toolchain=oxide

Build options

Option Help
--toolchain FPGA toolchain
--board FPGA board
--build build bitstream
--variant FPGA board variant
--load load bitstream
--with-ethernet Enable ethernet
--with_i2s Enable i2s
--sys-clk-freq System clock frequency
--with_spi Enable SPI
--with_i2c Enable i2c
--with_pwm Enable PWM
--spi-data-width SPI data width
--spi-clk-freq SPI clock frequency
--with_mmcm Enable MMCM
--local-ip local IP address
--remote-ip remote IP address

Load bitstream

Connect your board using the serial port and load the bitstream:

For Digilent Arty board:

source ./init
./make.py --board=arty --load

For SDI MIPI board:

source ./init
./make.py --board=sdi_mipi_bridge --load

zephyr-on-litex-vexriscv's People

Contributors

apokusinski avatar msierszulski avatar mateusz-holenko avatar tgorochowik avatar cfriedt avatar jszwedyk avatar tmichalak 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.