Hardware Design: SIE
Sign in or create your account | Project List | Help
Hardware Design: SIE Git Source Tree
Root/
| 1 | #!/bin/bash |
| 2 | # |
| 3 | # $Id: bsdl2jtag 1467 2009-03-28 00:31:24Z arniml $ |
| 4 | # |
| 5 | # Convert a BSDL file to a jtag part description |
| 6 | # |
| 7 | # Copyright (C) 2009, A. Laeuger |
| 8 | # |
| 9 | # This program is free software; you can redistribute it and/or |
| 10 | # modify it under the terms of the GNU General Public License |
| 11 | # as published by the Free Software Foundation; either version 2 |
| 12 | # of the License, or (at your option) any later version. |
| 13 | # |
| 14 | # This program is distributed in the hope that it will be useful, |
| 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 17 | # GNU General Public License for more details. |
| 18 | # |
| 19 | # You should have received a copy of the GNU General Public License |
| 20 | # along with this program; if not, write to the Free Software |
| 21 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
| 22 | # 02111-1307, USA. |
| 23 | # |
| 24 | |
| 25 | scriptname=`basename $0` |
| 26 | |
| 27 | function usage () |
| 28 | { |
| 29 | cat <<EOF |
| 30 | Usage: $scriptname <bsdl-file> <jtag-file> |
| 31 | Converts a BSDL file to a jtag part description. |
| 32 | |
| 33 | Parameters |
| 34 | bsdl-file : Name of BSDL file |
| 35 | jtag-file : Name of converted jtag description file |
| 36 | |
| 37 | EOF |
| 38 | } |
| 39 | |
| 40 | if [[ -z $1 || -z $2 ]]; then |
| 41 | usage |
| 42 | exit 1 |
| 43 | fi |
| 44 | |
| 45 | |
| 46 | echo "bsdl dump $1" | jtag > $2 |
| 47 | |
| 48 | exit 0 |
| 49 |
Branches:
master
