-
Notifications
You must be signed in to change notification settings - Fork 573
Installation
enjoy-digital edited this page Aug 23, 2022
·
12 revisions
- Install Python 3.6+ and FPGA vendor's development tools and/or Verilator.
- Install Migen/LiteX and the LiteX's cores:
$ wget https://raw.githubusercontent.com/enjoy-digital/litex/master/litex_setup.py
$ chmod +x litex_setup.py
$ ./litex_setup.py --init --install --user (--user to install to user directory)
Later, if you need to update all repositories:
$ ./litex_setup.py --update
Release tag can also be specified to update/install specific release of LiteX, ex:
$ ./litex_setup.py --tag=2022.04 --update
Note: On MacOS, make sure you have HomeBrew installed. Then do,
brew install wget
.
Note: On Windows, make sure you have
make
and/orGnuWin
installed and it's possible you'll have to setSHELL
environment variable toSHELL=cmd.exe
.
- Install a RISC-V toolchain (Only if you want to test/create a SoC with a CPU):
$ pip3 install meson
$ ./litex_setup.py --gcc=riscv
- Build the target of your board...:
Go to litex-boards/litex_boards/targets and execute the target you want to build.
- ... and/or install Verilator and test LiteX directly on your computer without any FPGA board:
On Linux (Ubuntu):
$ sudo apt install libevent-dev libjson-c-dev verilator
$ litex_sim --cpu-type=vexriscv
On MacOS:
$ brew install json-c verilator libevent
$ brew cask install tuntap
$ litex_sim --cpu-type=vexriscv
- Run a terminal program on the board's serial port at 115200 8-N-1.
You should get the BIOS prompt like the one below.
Have a question or want to get in touch? Our IRC channel is #litex at irc.libera.chat.
- Welcome to LiteX
- LiteX's internals
- How to
- Create a minimal SoC-TODO
- Add a new Board-TODO
- Add a new Core-WIP
- Add a new CPU-WIP
- Reuse-a-(System)Verilog,-VHDL,-Amaranth,-Spinal-HDL,-Chisel-core
- Use LiteX on the Acorn CLE 215+
- Load application code the CPU(s)
- Use Host Bridges to control/debug a SoC
- Use LiteScope to debug a SoC
- JTAG/GDB Debugging with VexRiscv CPU
- JTAG/GDB Debugging with VexRiscv-SMP, NaxRiscv and VexiiRiscv CPUs
- Document a SoC
- How to (Advanced)