#!/bin/sh

# test01.py -> spec_pts_fmcsupply.bin
cd ./spec_pts_fmcsupply/syn
hdlmake
make
cp spec_pts_fmcsupply.bin ../../../firmwares
cd ../..

# test02.py -> spec_pts_fmcconnect.bin
cd ./spec_pts_fmcconnect/syn
hdlmake
make
cp spec_pts_fmcconnect.bin ../../../firmwares
cd ../..

# test03.py -> spec_pts_flash.bin
cd ./spec_pts_flash/syn
hdlmake
make
cp spec_pts_flash.bin ../../../firmwares
cd ../..

# test04.py -> spec_pts_sfpeeprom.bin
cd ./spec_pts_sfpeeprom/syn
hdlmake
make
cp spec_pts_sfpeeprom.bin ../../../firmwares
cd ../..

# test05.py -> spec_pts_gtp_clkfmc.bin and spec_pts_gtp_clkpll.bin
cd ./spec_pts_gtp_clkfmc/syn
hdlmake
make
cp spec_pts_gtp_clkfmc.bin ../../../firmwares
cd ../..
cd ./spec_pts_gtp_clkpll/syn
hdlmake
make
cp spec_pts_gtp_clkpll.bin ../../../firmwares
cd ../..

# test06.py -> spec_pts_si570.bin
cd ./spec_pts_si570/syn
hdlmake
make
cp spec_pts_si570.bin ../../../firmwares
cd ../..

# test07.py -> spec_pts_ddr.bin
cd ./spec_pts_ddr/syn
hdlmake
make
cp spec_pts_ddr.bin ../../../firmwares
cd ../..

# test08.py -> spec_pts_vcxo_pll.bin
cd ./spec_pts_vcxo_pll/syn
hdlmake
make
cp spec_pts_vcxo_pll.bin ../../../firmwares
cd ../..

# test09.py -> spec_pts_tempid.bin
cd ./spec_pts_tempid/syn
hdlmake
make
cp spec_pts_tempid.bin ../../../firmwares
cd ../..

# test10.py -> spec_pts_usb
cd ./spec_pts_usb/syn
hdlmake
make
cp spec_pts_usb.bin ../../../firmwares
cd ../..
