2018-02-26 23:09:23 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
2018-05-26 11:37:38 +08:00
|
|
|
SOC_PREFIX=$PREFIX/site-packages/artiq/binaries/${ARTIQ_TARGET}-${ARTIQ_VARIANT}
|
2018-02-27 00:25:49 +08:00
|
|
|
mkdir -p ${SOC_PREFIX}
|
2018-02-26 23:09:23 +08:00
|
|
|
|
2018-03-12 02:59:54 +08:00
|
|
|
if [ "${ARTIQ_VARIANT}" = "phaser" ]; then
|
|
|
|
V=1 $PYTHON -m artiq.gateware.targets.kc705_phaser --toolchain vivado $MISOC_EXTRA_VIVADO_CMDLINE
|
|
|
|
else
|
|
|
|
V=1 $PYTHON -m artiq.gateware.targets.kc705_dds -H ${ARTIQ_VARIANT} --toolchain vivado $MISOC_EXTRA_VIVADO_CMDLINE
|
|
|
|
fi
|
2018-02-27 00:25:49 +08:00
|
|
|
cp -v misoc_${ARTIQ_VARIANT}_kc705/gateware/top.bit $SOC_PREFIX
|
|
|
|
cp -v misoc_${ARTIQ_VARIANT}_kc705/software/bios/bios.bin $SOC_PREFIX
|
|
|
|
cp -v misoc_${ARTIQ_VARIANT}_kc705/software/runtime/runtime.{elf,fbi} $SOC_PREFIX
|
2018-02-26 23:09:23 +08:00
|
|
|
|
|
|
|
wget -P $SOC_PREFIX https://raw.githubusercontent.com/jordens/bscan_spi_bitstreams/single-tap/bscan_spi_xc7k325t.bit
|