forked from M-Labs/artiq
1
0
Fork 0

artiq_run/ELFRunner: create a core device object (necessary for runtime exception processing)

This commit is contained in:
Sebastien Bourdeauducq 2015-04-30 10:16:24 +08:00
parent 5df446ec4b
commit 8a796a6818
1 changed files with 4 additions and 4 deletions

View File

@ -21,14 +21,14 @@ logger = logging.getLogger(__name__)
class ELFRunner(Experiment, AutoDB):
class DBKeys:
comm = Device()
core = Device()
file = Argument()
def run(self):
with open(self.file, "rb") as f:
self.comm.load(f.read())
self.comm.run("run")
self.comm.serve(dict(), dict())
self.core.comm.load(f.read())
self.core.comm.run("run")
self.core.comm.serve(dict(), dict())
class SimpleParamLogger: