Fix gtkwave.py to be compatible with python 3.6

This commit is contained in:
Jędrzej Boczar 2021-02-02 11:12:05 +01:00
parent ba7c503fb6
commit b1fb141d1f
2 changed files with 1 additions and 3 deletions

View File

@ -96,7 +96,7 @@ class GTKWSave:
return prefix[:last_underscore + 1] return prefix[:last_underscore + 1]
def group(self, def group(self,
signals: list[Signal], signals: Sequence[Signal],
group_name: str = None, group_name: str = None,
alias: bool = True, alias: bool = True,
closed: bool = True, closed: bool = True,

View File

@ -472,8 +472,6 @@ def main():
if args.with_analyzer: if args.with_analyzer:
soc.analyzer.export_csv(vns, "analyzer.csv") soc.analyzer.export_csv(vns, "analyzer.csv")
if args.gtkwave_savefile: 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) generate_gtkw_savefile(builder, vns, args.trace_fst)
if __name__ == "__main__": if __name__ == "__main__":