From b1fb141d1f560d3c12809a86dfb1429397bdd552 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Boczar?= Date: Tue, 2 Feb 2021 11:12:05 +0100 Subject: [PATCH] Fix gtkwave.py to be compatible with python 3.6 --- litex/build/sim/gtkwave.py | 2 +- litex/tools/litex_sim.py | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/litex/build/sim/gtkwave.py b/litex/build/sim/gtkwave.py index bf047fbaa..cb2bfd32b 100644 --- a/litex/build/sim/gtkwave.py +++ b/litex/build/sim/gtkwave.py @@ -96,7 +96,7 @@ class GTKWSave: return prefix[:last_underscore + 1] def group(self, - signals: list[Signal], + signals: Sequence[Signal], group_name: str = None, alias: bool = True, closed: bool = True, diff --git a/litex/tools/litex_sim.py b/litex/tools/litex_sim.py index 6957c481a..319bed306 100755 --- a/litex/tools/litex_sim.py +++ b/litex/tools/litex_sim.py @@ -472,8 +472,6 @@ def main(): if args.with_analyzer: soc.analyzer.export_csv(vns, "analyzer.csv") if args.gtkwave_savefile: - if sys.version_info[1] < 7: - raise OSError("--gtkwave-savefile option only supported for python 3.7+.") generate_gtkw_savefile(builder, vns, args.trace_fst) if __name__ == "__main__":