BrunoLevy / learn-fpga

Learning FPGA, yosys, nextpnr, and RISC-V
BSD 3-Clause "New" or "Revised" License
2.46k stars 235 forks source link

ARTY install & example #54

Closed suarezvictor closed 1 year ago

suarezvictor commented 2 years ago

I had to do some tweaks to install the open-source toolchain for the Arty board that I'd like to share, and hopefully the wiki can be updated

$PRJXRAY and $LEARN_FPGA should refer respectively to prjxray directory and learn-fpga directory as previously specifed in git clone command

prjxray should be installed with setup.py $ sudo python3 $PRJXRAY/setup.py install

same for fasm $ sudo python3 $PRJXRAY/third_party/fasm/setup.py install

Path needs to point to "utils" directory so fasm2frames.py is found $ PATH=$PATH:$PRJXRAY/utils/

in makeit.sh, change fasm2frames to fasm2frames.py

$ cd $LEARN_FPGA/Basic/ARTY/ARTY_blink
$ vi ./makeit.sh
$ ./makeit.sh

It toook in my machine about 20 seconds :)