Skip to content

Commit 6dd1eb2

Browse files
committedFeb 29, 2016
artiq_flash: use term 'gateware'
1 parent 5fad570 commit 6dd1eb2

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed
 

‎artiq/frontend/artiq_flash.py

+11-12
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import subprocess
77
import tempfile
88

9-
import artiq
109
from artiq import __artiq_dir__ as artiq_dir
1110
from artiq.frontend.bit2bin import bit2bin
1211

@@ -18,13 +17,13 @@ def get_argparser():
1817
epilog="""\
1918
Valid actions:
2019
21-
* proxy: load the flash proxy bitstream
22-
* bitstream: write bitstream to flash
20+
* proxy: load the flash proxy gateware bitstream
21+
* gateware: write gateware bitstream to flash
2322
* bios: write bios to flash
2423
* runtime: write runtime to flash
2524
* storage: write storage image to flash
26-
* load: load bitstream into device (volatile but fast)
27-
* start: trigger the target to (re)load its bitstream from flash
25+
* load: load gateware bitstream into device (volatile but fast)
26+
* start: trigger the target to (re)load its gateware bitstream from flash
2827
2928
Prerequisites:
3029
@@ -42,7 +41,7 @@ def get_argparser():
4241
parser.add_argument("-f", "--storage", help="write file to storage area")
4342
parser.add_argument("-d", "--dir", help="look for files in this directory")
4443
parser.add_argument("ACTION", nargs="*",
45-
default="proxy bitstream bios runtime start".split(),
44+
default="proxy gateware bios runtime start".split(),
4645
help="actions to perform, default: %(default)s")
4746
return parser
4847

@@ -55,15 +54,15 @@ def main():
5554
"kc705": {
5655
"chip": "xc7k325t",
5756
"start": "xc7_program xc7.tap",
58-
"bitstream": 0x000000,
57+
"gateware": 0x000000,
5958
"bios": 0xaf0000,
6059
"runtime": 0xb00000,
6160
"storage": 0xb80000,
6261
},
6362
"pipistrello": {
6463
"chip": "xc6slx45",
6564
"start": "xc6s_program xc6s.tap",
66-
"bitstream": 0x000000,
65+
"gateware": 0x000000,
6766
"bios": 0x170000,
6867
"runtime": 0x180000,
6968
"storage": 0x200000,
@@ -83,23 +82,23 @@ def main():
8382
proxy_base = "bscan_spi_{}.bit".format(config["chip"])
8483
proxy = None
8584
for p in [opts.dir, os.path.expanduser("~/.migen"),
86-
"/usr/local/share/migen", "/usr/share/migen"]:
85+
"/usr/local/share/migen", "/usr/share/migen"]:
8786
proxy_ = os.path.join(p, proxy_base)
8887
if os.access(proxy_, os.R_OK):
8988
proxy = "jtagspi_init 0 {}".format(proxy_)
9089
break
9190
if not proxy:
9291
raise SystemExit(
93-
"proxy bitstream {} not found".format(proxy_base))
92+
"proxy gateware bitstream {} not found".format(proxy_base))
9493
prog.append(proxy)
95-
elif action == "bitstream":
94+
elif action == "gateware":
9695
bin = os.path.join(opts.dir, "top.bin")
9796
if not os.access(bin, os.R_OK):
9897
bin = tempfile.mkstemp()[1]
9998
bit = os.path.join(opts.dir, "top.bit")
10099
conv = True
101100
prog.append("jtagspi_program {} 0x{:x}".format(
102-
bin, config["bitstream"]))
101+
bin, config["gateware"]))
103102
elif action == "bios":
104103
prog.append("jtagspi_program {} 0x{:x}".format(
105104
os.path.join(opts.dir, "bios.bin"), config["bios"]))

0 commit comments

Comments
 (0)
Please sign in to comment.