Next-generation FPGA SoC toolkit
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Sebastien Bourdeauducq 4c7ca4a8d1 add experimental LiteX package 3 years ago
compilers compile Rust core crate for riscv32i 3 years ago
cores add experimental LiteX package 3 years ago
eda nmigen-boards: add 3 years ago
examples simplesoc_ecp5: run simulation longer 3 years ago
firmware gitea doesn't like rst 3 years ago
heavycomps add wishbone components 3 years ago
.gitignore add nix-build results to .gitignore 3 years ago update README 3 years ago
default.nix add experimental LiteX package 3 years ago
heavycomps.nix add component library with UART 3 years ago
overlay.nix clean up firmware compilation 3 years ago
release.nix reorganize 3 years ago


A FPGA SoC framework embracing cutting-edge open source technologies (nMigen, Yosys, SymbiFlow, Minerva, Nix, Rust).

This is work in progress!

"Hello World" SoC demo

Softcore RISC-V system-on-chip on the Lattice ECP5 Versa board, built with a 100% Verilog/VHDL-free and 100% open source toolchain. Runs a Rust "hello world" program.

Use nixpkgs unstable (known to work with ae71c13). Check for the status of the build with other nixpkgs versions.

Optional: set up the M-Labs key and binary substituter for Nix (otherwise Nix will recompile LLVM, rustc, etc. on your machine). Create the file ~/.config/nix/nix.conf with the following contents:

substituters =
trusted-public-keys =

Run nix-build -A simplesoc_ecp5 release.nix

Bypass the ispCLOCK device using the jumpers on your board.

Create a versa.cfg file with:

interface ftdi
ftdi_vid_pid 0x0403 0x6010
ftdi_channel 0
ftdi_layout_init 0xfff8 0xfffb
reset_config none
adapter_khz 5000
jtag newtap ecp5 tap -irlen 8 -expected-id 0x01112043

Load the bitstream openocd -f versa.cfg -c "transport select jtag; init; svf result/top.svf; exit".

Watch the UART output at 115200bps.

Questions, comments: or IRC #m-labs on Freenode.