forked from M-Labs/artiq
1
0
Fork 0

core: add option to trigger analyzer proxy at run end

This commit is contained in:
Sebastien Bourdeauducq 2023-12-13 14:27:48 +08:00
parent ede0b37c6e
commit c2b53ecb43
1 changed files with 6 additions and 1 deletions

View File

@ -86,7 +86,7 @@ class Core:
def __init__(self, dmgr,
host, ref_period,
analyzer_proxy=None,
analyzer_proxy=None, analyze_at_run_end=False,
ref_multiplier=8,
target="rv32g", satellite_cpu_targets={}):
self.ref_period = ref_period
@ -99,6 +99,7 @@ class Core:
else:
self.comm = CommKernel(host)
self.analyzer_proxy_name = analyzer_proxy
self.analyze_at_run_end = analyze_at_run_end
self.first_run = True
self.dmgr = dmgr
@ -106,6 +107,10 @@ class Core:
self.comm.core = self
self.analyzer_proxy = None
def notify_run_end(self):
if self.analyze_at_run_end:
self.trigger_analyzer_proxy()
def close(self):
self.comm.close()