get playback module from class method

This commit is contained in:
Fischer Moseley 2023-12-31 20:07:47 -08:00
parent d31aa2650e
commit 07ae9cc2e8
1 changed files with 2 additions and 2 deletions

View File

@ -484,11 +484,11 @@ class LogicAnalyzerCapture:
vcd_file.close()
def export_playback_module(self, path):
def export_playback_module(self):
return LogicAnalyzerPlayback(self.data, self.config)
def export_playback_verilog(self, path):
lap = LogicAnalyzerPlayback(self.data, self.config)
lap = self.export_playback_module()
from amaranth.back import verilog
with open(path, "w") as f: