- Follow the first step of the LiteX setup below. If you want to use LiteX as well, you don't have to install migen separately.
- Clone or download and extract this repository http://github.com/m-labs/migen
- Open the console and go to the directory of the repository
cd [directory] - Install Migen using
python setup.py develop --userorpython3 ./setup.py develop --userfor linux
- Clone or download and extract this repository
- Open
Migen_Tests\Test_Default\Test_Default.vhdpprojwith the VHDPlus IDE - Open the Test.py file to program with Migen
Here more information:
http://blog.lambdaconcept.com/doku.php?id=migen:tutorial
https://m-labs.hk/migen/manual/
https://github.com/m-labs/migen/tree/master/examples/basic - After you finished coding, right click on the python file and click on
Run Pythonto convert the code. (Check ifExtras/Settings/Detect external file changesis enabled) - The file Test.v is created after running the python file
- Now make sure your file with the
Maincomponent uses the new updated component and click onCompile
- Make sure you have Quartus, Git and Python 3.6+ installed
- Make sure that the
Pathenvironment variable is set toC:\intelFPGA_lite\18.1\quartus\bin64\cygwin\binandC:\intelFPGA_lite\18.1\quartus\bin64 - Install Git here: https://git-scm.com/download/win
- Install Python here: https://www.python.org/downloads/
- Open the console, go to the directory in that you want to install LiteX and download the setup file using
wget https://raw.githubusercontent.com/enjoy-digital/litex/master/litex_setup.py - Install LiteX and Migen using
python litex_setup.py init install --user - Download and extract the RISC-V toolchain using
python litex_setup.py gcc - Add the paths for the RISC-V toolchain to the
Pathenvironment variable using
set PATH=%PATH%;$PWD\riscv64-unknown-elf-gcc-8.3.0-2019.08.0-x86_64-w64-mingw32\binand
set PATH=%PATH%;$PWD\riscv64-unknown-elf-gcc-8.3.0-2019.08.0-x86_64-w64-mingw32\riscv64-unknown-elf\bin - Try an SoC design using
cd litex-boards\litex_boards\targets
python de10lite.py
- Make sure you have Quartus, Git, Make and Python 3.6+ installed
sudo apt-get install make gcc
sudo apt install git-all
sudo apt install python3.8 - Open the console, go to the directory in that you want to install LiteX and download the setup file using
wget https://raw.githubusercontent.com/enjoy-digital/litex/master/litex_setup.py
- Execute
chmod +x litex_setup.py
- Install LiteX and Migen using
./litex_setup.py init install --userandexport PATH=$PATH:~/.local/bin - Download and extract the RISC-V toolchain using
./litex_setup.py gcc - Add the paths for the RISC-V toolchain to the
Pathenvironment variable using
export PATH=$PATH:$PWD/riscv64-unknown-elf-gcc-8.3.0-2019.08.0-x86_64-linux-ubuntu14/bin/and
export PATH=$PATH:$PWD/riscv64-unknown-elf-gcc-8.3.0-2019.08.0-x86_64-linux-ubuntu14/riscv64-unknown-elf/bin/ - Try an SoC design using
cd litex-boards\litex_boards\targets
./de10lite.py
- Clone or download and extract this repository: https://github.com/micro-FPGA/litex-boards
- Find the Python user site using
python -m siteand copy the path afterUSER_SITE: - Execute
python setup.py install --prefix=[your path]Python38\\site-packagesin the folder with the repository - Try the CR00010 SoC design using (you maybe have to edit the file depending on your hardware configuration)
cd litex_boards\partner\targets
python cr00010.py
- Execute
sudo ./setup.py installin the folder with the repository - Try the CR00010 SoC design using (you maybe have to edit the file depending on your hardware configuration))
cd litex_boards\partner\targets
./cr00010.py