#!/bin/bash
set -e
SOC_PREFIX=$SP_DIR/artiq/board-support/sayma_rtm
mkdir -p $SOC_PREFIX
$PYTHON -m artiq.gateware.targets.sayma_rtm
cp artiq_sayma/rtm_gateware/rtm.bit $SOC_PREFIX
cp artiq_sayma/rtm_gateware/rtm_csr.csv $SOC_PREFIX