From 4b7c03e72259e55f9e303613e72a805b795be5cf Mon Sep 17 00:00:00 2001 From: Fischer Moseley <42497969+fischermoseley@users.noreply.github.com> Date: Mon, 7 Oct 2024 23:14:29 -0700 Subject: [PATCH] logic_analyzer: pass interface when constructing LogicAnalyzerCapture --- src/manta/logic_analyzer/__init__.py | 6 +++++- src/manta/logic_analyzer/capture.py | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/manta/logic_analyzer/__init__.py b/src/manta/logic_analyzer/__init__.py index b566421..0c5f380 100644 --- a/src/manta/logic_analyzer/__init__.py +++ b/src/manta/logic_analyzer/__init__.py @@ -317,5 +317,9 @@ class LogicAnalyzerCore(MantaCore): data = raw_capture[read_pointer:] + raw_capture[:read_pointer] return LogicAnalyzerCapture( - self._probes, self._trigger_location, self._trigger_mode, data + self._probes, + self._trigger_location, + self._trigger_mode, + data, + self.interface, ) diff --git a/src/manta/logic_analyzer/capture.py b/src/manta/logic_analyzer/capture.py index 5a5e2eb..731f654 100644 --- a/src/manta/logic_analyzer/capture.py +++ b/src/manta/logic_analyzer/capture.py @@ -14,11 +14,12 @@ class LogicAnalyzerCapture: CSV file, or a Verilog module. """ - def __init__(self, probes, trigger_location, trigger_mode, data): + def __init__(self, probes, trigger_location, trigger_mode, data, interface): self._probes = probes self._trigger_location = trigger_location self._trigger_mode = trigger_mode self._data = data + self._interface = interface def get_trigger_location(self): """