Giter VIP home page Giter VIP logo

litex-stream's Introduction

Required hardware

OrangeCrab

Documentation

Get one

hs-probe

Project page

Get one

USB-serial cable

Keyboard FeatherWing

Documentation

Get one: tindie or pimoroni

Requried software

Set up toolchains

wget https://github.com/open-tool-forge/fpga-toolchain/releases/download/nightly-20201214/fpga-toolchain-linux_x86_64-nightly-20201214.tar.xz
tar xf fpga-toolchain-linux_x86_64-nightly-20201214.tar.xz
PATH=$PATH:$(pwd)/fpga-toolchain/bin

wget https://static.dev.sifive.com/dev-tools/riscv64-unknown-elf-gcc-8.3.0-2020.04.0-x86_64-linux-ubuntu14.tar.gz
tar xf riscv64-unknown-elf-gcc-8.3.0-2020.04.0-x86_64-linux-ubuntu14.tar.gz
PATH=$PATH:$(pwd)/riscv64-unknown-elf-gcc-8.3.0-2020.04.0-x86_64-linux-ubuntu14/bin

Install Rust

rustup default stable
rustup target add riscv32i-unknown-none-elf

Install ecpdap

git clone https://github.com/adamgreig/ecpdap
cd ecpdap
cargo install --path .
PATH=$PATH:$HOME/.cargo/bin

Set up LiteX environment

mkdir workspace
cd workspace
python3 -m venv .venv
source .venv/bin/activate

wget https://raw.githubusercontent.com/enjoy-digital/litex/master/litex_setup.py
chmod +x litex_setup.py
./litex_setup.py init install

Build the example

cd litex-boards/litex_boards/targets/
./orangecrab.py --build
ecpdap program --freq=50000 build/orangecrab/gateware/orangecrab.bit

Serial connection

Cable Rx (white) -- FPGA Tx (1)
Cable Tx (green) -- FPGA Rx (0)

Flash boot

spi_pads = platform.request("spiflash4x")
self.submodules.lxspi = spi_flash.SpiFlashDualQuad(spi_pads, dummy=6, endianness="little")
self.lxspi.add_clk_primitive(platform.device)
self.register_mem("spiflash", self.mem_map["spiflash"], self.lxspi.bus, size=16 * 1024 * 1024)

self.constants["FLASH_BOOT_ADDRESS"] = self.mem_map['spiflash'] + 0x00100000

или

self.add_spi_flash(...)

+update boot.c

litex-stream's People

Contributors

disasm avatar

Stargazers

Oleg Libin avatar  avatar  avatar  avatar Vitaly Domnikov avatar Eduard Kuliev avatar Nikolay Gniteev avatar

Watchers

James Cloos avatar  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.