From 87c2f119a5d7307118137d1d8205426e8c89b872 Mon Sep 17 00:00:00 2001 From: whitequark Date: Sun, 25 Mar 2018 20:28:48 +0000 Subject: [PATCH] artiq_devtool: add load action. --- artiq/frontend/artiq_devtool.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/artiq/frontend/artiq_devtool.py b/artiq/frontend/artiq_devtool.py index 3bc6d5047..a17c29b26 100755 --- a/artiq/frontend/artiq_devtool.py +++ b/artiq/frontend/artiq_devtool.py @@ -65,7 +65,7 @@ def get_argparser(): parser.add_argument("actions", metavar="ACTION", type=str, default=[], nargs="+", help="actions to perform, sequence of: " - "build clean reset flash flash+log connect hotswap") + "build clean reset flash flash+log load connect hotswap") return parser @@ -199,6 +199,10 @@ def main(): flash("start") client.drain(flterm) + elif action == "load": + logger.info("Loading gateware") + flash("load") + elif action == "connect": lock()