FPGA on arch

all the tool-chain we should have is :

1
2
3
4
5
6
7
chisel # for generate verilog code , optional
iverilog # for compile the verilog file
gtkwave # for observe the charts
yosys # for synthsis
symbiflow # for synthsis, placement and routing, generate bitstreams
F4PGA # new version of symbiflow
openocd # for uploading to board

during these tools, we can pull the docker iamge of symbiflow:

1
docker pull daverichmond/fpga-symbiflow:latest

and we can use vivado:

after download for AMD website and install vivado, we still have to do something.

as for 2024.2 —version, on archlinux, we should goto the directory of : path_to_installation/Vivado/2024.2/bin, and modify the setupEnv.sh:

1
2
3
4
5
6
7
8
find the line of:
RDI_SESSION_ID=`hostname`_`date +%s`_$$

change to:
RDI_SESSION_ID=`uname -n`_`date +%s`_$$

or :
sudo pacman -S inetutils

and install :

1
2
sudo pacman -S libxcrypt-compat fakeroot
yay -S ncurses5-compat-libs

done.


2025.5.4

new question append:

the gcc has update to gcc-15, how to use gcc-14 to build ncurses5-compat-libs?

on archlinux, it is easy to do that.

1
2
3
4
5
6
7
8
9
10
11
12
13
14

git clone https://aur.archlinux.org/ncurses5-compat-libs.git
cd ncurses5-compat-libs
yay -S gcc14
CC=/usr/bin/gcc-14 CXX=/usr/bin/g++-14 makepkg


sudo pacman -U ncurses5-compat-libs-6.5-1-x86_64.pkg.tar.zst
sudo pacman -U ncurses5-compat-libs-debug-6.5-1-x86_64.pkg.tar.zst

// or you can tar -xvf and move the directories into your path



side occupation homepage

click here to come back to side occupation
homepage.