3 { stdenv, python3Packages, yosys, libresoc-verilog, libresoc-pinmux, pkgsCross
7 pname = "libresoc-versa-ecp5.v";
10 src = ../src/soc/litex/florent;
13 (with python3Packages; [
14 python libresoc-soc litex-boards litex litedram liteeth liteiclink litescope litesdcard
16 ++ [ trellis nextpnr pkgsCross.powernv.buildPackages.gcc ];
19 patchShebangs --build .
22 configurePhase = "true";
26 export PINMUX="$(mktemp -d)"
27 ln -s ${libresoc-pinmux} "$PINMUX/ls180"
28 cp ${libresoc-verilog} libresoc/libresoc.v
29 ./versa_ecp5.py --sys-clk-freq=55e6 --build
35 mv /build/florent/build/versa_ecp5/gateware/versa_ecp5.svf $out