Skip to content

Commit

Permalink
logic_analyzer: pass interface when constructing LogicAnalyzerCapture
Browse files Browse the repository at this point in the history
  • Loading branch information
fischermoseley committed Oct 8, 2024
1 parent 4799d5c commit 40fdb34
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/manta/logic_analyzer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,5 +317,9 @@ def capture(self):

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,
)
3 changes: 2 additions & 1 deletion src/manta/logic_analyzer/capture.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down

0 comments on commit 40fdb34

Please sign in to comment.