summaryrefslogtreecommitdiffstats
path: root/toprammer
diff options
context:
space:
mode:
authorMichael Buesch <mb@bu3sch.de>2010-02-20 14:55:17 +0100
committerMichael Buesch <mb@bu3sch.de>2010-02-20 14:55:17 +0100
commite93815c66f04f41806fbc8db9ebbacc742ca1b13 (patch)
treed71f3322655cd49e5a575cb686b44b55fb28d62c /toprammer
parent10180bffa2ee81a05e98e9738f64f08f24192a67 (diff)
downloadtoprammer-e93815c66f04f41806fbc8db9ebbacc742ca1b13.tar.xz
toprammer-e93815c66f04f41806fbc8db9ebbacc742ca1b13.zip
Evaluate bitfile searchpath
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Diffstat (limited to 'toprammer')
-rwxr-xr-xtoprammer12
1 files changed, 10 insertions, 2 deletions
diff --git a/toprammer b/toprammer
index 3b05e3b..a1cb9e5 100755
--- a/toprammer
+++ b/toprammer
@@ -30,7 +30,10 @@ def usage():
print ""
print "Usage: %s [OPTIONS]" % sys.argv[0]
print ""
- print " -b|--bitfile Path to the *.bit file (mandatory)"
+ print " -b|--bitfile The *.bit file (mandatory)"
+ print " A full path to the bitfile is not required. Specifying the"
+ print " chip-ID (see --list) usually is sufficient. The .bit file will"
+ print " be searched for in the standard paths then."
print ""
print "Actions:"
print " -s|--read-sig FILE Read the signature bytes"
@@ -307,7 +310,12 @@ def main(argv):
return 1
try:
- top = TOP(bitfileName = opt_bitfile, busDev = opt_device,
+ bitfile = bitfileFind(opt_bitfile)
+ if not bitfile:
+ print "Bitfile " + opt_bitfile + " not found"
+ print "See --list for a list of supported devices"
+ return 1
+ top = TOP(bitfileName = bitfile, busDev = opt_device,
verbose = opt_verbose, forceLevel = opt_forceLevel,
noqueue = opt_noqueue, usebroken = opt_usebroken)
if opt_action == "read-sig":
bues.ch cgit interface