aboutsummaryrefslogtreecommitdiffstats
path: root/fpga/usrp3/top/impactor.sh
blob: c6699424d643645b54e9a72a0fc339c9bd8bac04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

echo "loading $1 into FPGA..."

CMD_PATH=/tmp/impact.cmd

echo "generating ${CMD_PATH}..."

echo "setmode -bscan" > ${CMD_PATH}
echo "setcable -p auto" >> ${CMD_PATH}
echo "addDevice -p 1 -file $1" >> ${CMD_PATH}
echo "program -p 1" >> ${CMD_PATH}
echo "quit" >> ${CMD_PATH}

impact -batch ${CMD_PATH}

echo "done!"