diff options
| author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-11-20 11:27:56 -0600 |
|---|---|---|
| committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-11-20 11:27:56 -0600 |
| commit | 1e0e20535638122a86f0e44f0505c0eccc4a9fee (patch) | |
| tree | cda81b08ef6e0a4e76b724b20ccb71a142f3c65e /fpga/xilinx/programmer/program_device.sh | |
| parent | f1ead126008e8e73fac05c193450d3aac57fc4e1 (diff) | |
| download | ulab-1e0e20535638122a86f0e44f0505c0eccc4a9fee.tar.gz ulab-1e0e20535638122a86f0e44f0505c0eccc4a9fee.zip | |
Add verified Xilinx programming script and device type extractor
Diffstat (limited to 'fpga/xilinx/programmer/program_device.sh')
| -rwxr-xr-x | fpga/xilinx/programmer/program_device.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/fpga/xilinx/programmer/program_device.sh b/fpga/xilinx/programmer/program_device.sh new file mode 100755 index 0000000..364330f --- /dev/null +++ b/fpga/xilinx/programmer/program_device.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +# (c) 2012 Timothy Pearson <kb9vqf@pearsoncomputing.net> +# Licensed under the GPL v2 + +if [[ $1 == "" ]]; then + echo "Usage: ./program_device.sh bitfile.bit" + exit 1 +fi + +UNIQUEID=$(date "+%s%N") +DEVICETYPE=$(bitdevice $1) +SVFFILE=/tmp/${UNIQUEID}.svf +bit2svf $1 $SVFFILE $DEVICETYPE +xsvf-rpi -v -s $SVFFILE +rm $SVFFILE |
