forked from M-Labs/artiq
core: add option to trigger analyzer proxy at run end
This commit is contained in:
parent
ede0b37c6e
commit
c2b53ecb43
|
@ -86,7 +86,7 @@ class Core:
|
||||||
|
|
||||||
def __init__(self, dmgr,
|
def __init__(self, dmgr,
|
||||||
host, ref_period,
|
host, ref_period,
|
||||||
analyzer_proxy=None,
|
analyzer_proxy=None, analyze_at_run_end=False,
|
||||||
ref_multiplier=8,
|
ref_multiplier=8,
|
||||||
target="rv32g", satellite_cpu_targets={}):
|
target="rv32g", satellite_cpu_targets={}):
|
||||||
self.ref_period = ref_period
|
self.ref_period = ref_period
|
||||||
|
@ -99,6 +99,7 @@ class Core:
|
||||||
else:
|
else:
|
||||||
self.comm = CommKernel(host)
|
self.comm = CommKernel(host)
|
||||||
self.analyzer_proxy_name = analyzer_proxy
|
self.analyzer_proxy_name = analyzer_proxy
|
||||||
|
self.analyze_at_run_end = analyze_at_run_end
|
||||||
|
|
||||||
self.first_run = True
|
self.first_run = True
|
||||||
self.dmgr = dmgr
|
self.dmgr = dmgr
|
||||||
|
@ -106,6 +107,10 @@ class Core:
|
||||||
self.comm.core = self
|
self.comm.core = self
|
||||||
self.analyzer_proxy = None
|
self.analyzer_proxy = None
|
||||||
|
|
||||||
|
def notify_run_end(self):
|
||||||
|
if self.analyze_at_run_end:
|
||||||
|
self.trigger_analyzer_proxy()
|
||||||
|
|
||||||
def close(self):
|
def close(self):
|
||||||
self.comm.close()
|
self.comm.close()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue