Last active
January 23, 2019 21:33
-
-
Save goran-mahovlic/87314694161bdbfafdaa3a8137e6e716 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install git | |
mkidr FPGA | |
cd FPGA | |
sudo apt-get install cmake | |
sudo apt-get install build-essential clang bison flex libreadline-dev gawk tcl-dev libffi-dev git graphviz xdot pkg-config python3 | |
sudo apt-get install qt5-default | |
sudo apt-get install python3-dev | |
sudo apt-get install libboost-all-dev | |
git clone --recursive https://github.com/SymbiFlow/prjtrellis | |
cd prjtrellis | |
cd libtrellis/ | |
cmake -DCMAKE_INSTALL_PREFIX=/usr . | |
make | |
sudo make install | |
cd .. | |
cd .. //Now you are in FPGA folder | |
git clone https://github.com/YosysHQ/yosys | |
cd yosys/ | |
make config-gcc | |
make | |
sudo make install | |
cd .. //Now you are in FPGA folder | |
git clone https://github.com/YosysHQ/nextpnr.git | |
cd nextpnr/ | |
cmake -DARCH=ecp5 -DTRELLIS_ROOT=../prjtrellis . | |
make -j 1 ---- if you do not have lot of RAM build on one core only - SSD is also usefull to have to make things faster | |
sudo make install | |
cd .. //Now you are in FPGA folder if no go to it! | |
git clone https://github.com/DoctorWkt/ULX3S-Blinky | |
cd ULX3S-Blinky/ | |
sudo apt-get install verilator | |
make ulx3s.bit | |
//job done you have blink led binary | |
cd .. //back to FPGA folder for test you board! | |
git clone https://github.com/emard/ulx3s-bin.git | |
cd ulx3s-bin/usb-jtag/linux | |
sudo cp ujprog /usr/local/bin/ | |
sudo cp 80-fpga-ulx3s.rules /lib/udev/rules.d/ | |
// go to FPGA folder | |
// Emard samples | |
sudo apt-get install iverilog | |
git clone https://github.com/ldoolitt/vhd2vl | |
cd vhd2vl | |
make | |
sudo cp src/vhd2vl /usr/local/bin/ | |
cd .. | |
git clone https://github.com/emard/prjtrellis-dvi | |
cd prjtrellis-dvi | |
!!!!!Change path in file most of tools are in /usr/local/bin/ prjtrellis is in original path /home/user/FPGA/prjtrellis | |
nano scripts/ulx3s_trellis.mk //edit and save | |
nano Makefile //Change FPGA version - my is 12F | |
make | |
ls *.bit //check if bit is available | |
ujprog ulx3s_XXf_dvi.bit //burn your version XX if FPGA versioin 12/25/45/85 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment