275.1. yosys-0.69
Verilog synthesis — the first stage of the open FPGA flow
The build-state snapshot was taken from 0.69-1; this recipe is 0.69-2, so the size, time and contents below describe the earlier build.
0.69-2 · ISC AND MIT · 22.7 SBU · 74.6 MiB, 325 files · 43_toolkits, 105 of 344 · ports/core/eda/yosys
Homepage: https://yosyshq.net/yosys/
Yosys synthesises Verilog into a netlist: the first stage of the open FPGA flow, ahead of place-and-route with nextpnr, and the engine under formal verification with SBY. The port installs the yosys program, its helper scripts and the technology libraries it maps designs onto.
Depends on: cmake, ninja, pkgconf, bison, flex, python3, python3-click, readline, zlib, libffi, tcl, libtommath, graphviz, tomlplusplus.
Required by (1): symbiyosys.
Sources: yosys-0.69.tar.gz (15.6 MiB). Every step kpkg takes applies to this port.
Optional, off in KDOS. These switches in build.sh turn off a feature whose library is a port here. The recipe may turn each off on purpose, or because the library was not yet a port when the recipe was written; this list cannot tell which.
-DYOSYS_WITH_PYTHON=OFF, line 23: python3 (explained with the switches below)
Install: script/chroot/exec.sh bash -c 'source script/phases/43_toolkits/phase.env && kpkg install yosys'
build.sh:
mkdir -p unpacked
tar xf "$PORT_SRC/$name-$version.tar.gz" -C unpacked
cd unpacked
mkdir -p build && cd build
cmake .. -G Ninja \
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DYOSYS_USE_BUNDLED_LIBS=OFF \
-DYOSYS_WITH_PYTHON=OFF \
-DYOSYS_WITHOUT_ZLIB=OFF \
-DYOSYS_WITHOUT_LIBFFI=OFF \
-DYOSYS_WITHOUT_READLINE=OFF \
-DYOSYS_WITHOUT_TCL=OFF \
-DYOSYS_WITHOUT_EDITLINE=ON \
-DYOSYS_ENABLE_UNIT_TESTS=OFF \
-DYOSYS_ENABLE_FUNCTIONAL_TESTS=OFF \
-DYOSYS_INSTALL_DRIVER=ON
for f in ZLIB LIBFFI READLINE TCL; do
grep -q "^#define YOSYS_ENABLE_$f\$" kernel/yosys_config.h || {
echo "yosys: YOSYS_ENABLE_$f is off — its library was not found" >&2
exit 1
}
done
ninja
DESTDIR=$PKG ninja install
-DYOSYS_USE_BUNDLED_LIBS=OFF— Link the libraries from the tree rather than the copies in the source. It is upstream’s default, stated.-DYOSYS_WITHOUT_ZLIB=OFF,-DYOSYS_WITHOUT_LIBFFI=OFF,-DYOSYS_WITHOUT_READLINE=OFF,-DYOSYS_WITHOUT_TCL=OFF— Keep compressed file support (zlib), Verilog DPI-C calls into C functions (libffi), line editing and history at the prompt (readline) and the Tcl command interface (tcl, which also needs libtommath). These are upstream’s defaults, stated.-DYOSYS_WITHOUT_EDITLINE=ON— Never use editline, even when it is found; readline provides the prompt.-DYOSYS_WITH_PYTHON=OFF— Build no Python binding (pyosys). It is upstream’s default.-DYOSYS_ENABLE_UNIT_TESTS=OFF,-DYOSYS_ENABLE_FUNCTIONAL_TESTS=OFF— Build no tests. Unit tests are on by default upstream.-DYOSYS_INSTALL_DRIVER=ON— Install theyosysexecutable. It is upstream’s default, stated.
Programs: yosys, yosys-abc, yosys-config, yosys-filterlib, yosys-smtbmc, yosys-witness.
Directories: /usr/share/licenses/yosys, /usr/share/yosys/achronix, /usr/share/yosys/analogdevices, /usr/share/yosys/anlogic, /usr/share/yosys/choices, /usr/share/yosys/ecp5, /usr/share/yosys/efinix, /usr/share/yosys/gatemate, /usr/share/yosys/gowin, /usr/share/yosys/ice40, /usr/share/yosys/include, /usr/share/yosys/intel, /usr/share/yosys/intel_alm, /usr/share/yosys/lattice, /usr/share/yosys/microchip, /usr/share/yosys/nanoxplore, /usr/share/yosys/nexus, /usr/share/yosys/quicklogic, /usr/share/yosys/sdc, /usr/share/yosys/sf2, /usr/share/yosys/xilinx.
The release archive has no top-level directory, so build.sh unpacks it again into unpacked/ and builds there.
The configure turns zlib, libffi, readline and Tcl off without an error when it does not find them, even with the switches above. The loop after it reads kernel/yosys_config.h and stops the build unless each of YOSYS_ENABLE_ZLIB, YOSYS_ENABLE_LIBFFI, YOSYS_ENABLE_READLINE and YOSYS_ENABLE_TCL is defined.
python3-click is in depends for its run time: yosys-witness, the tool that converts and slices the witness traces SBY and sim read and write, is a Python program built on click and imports it on every run.