This folder contains minitest for various Litex configurations and target platforms.
It is divided into two directories that differ in the CPU configuration.
* min - Minimal configuration - just a CPU + uart targeting Arty and Basys3 boards. The firmware is compiled into the bitstream i.e. the ROM and SRAM memories are instantiated and initialized on the FPGA (no DDR RAM controller).
* base - Linux capable SoC configuration with DDR and Ethernet targeting the Arty.
* If you do not want to install LiteX and Migen in your system, setup the Python virtualenv and activate it in the following way:
```
virtualenv litex-env
source litex-env/bin/activate
```
* Install LiteX and Migen packages from the previously cloned repos.
Run the following command in each repo subdirectory:
```
./setup.py develop
```
* (optional) Hack LiteX HDL generation script to make it think that you have RISC-V toolchain installed (if you don't want to build and install it).
* Open the file `litex/litex/soc/integration/cpu_interface.py` in your favorite editor.
* Navigate to the line `53`.
* Replace it with `("TRIPLE", "riscv32-unknown-elf")`
This will allow you to generate the HDL code without bothering for compilation of the software.
## 2. Install RISC-V toolchain
If you don't want to compile the software for the generated LiteX design then you may skip toolchain installation and just hack the LiteX to think that you have it. To do so follow instuctions in the previous point.
You can choose which synthesis tool generate the design for. This can be done via the additional `--synth-mode` option of the `arty.py` script. The default is `vivado` but you can change it and specify `yosys`.