From: Cesar Strauss Date: Sun, 23 Aug 2020 18:31:12 +0000 (-0300) Subject: Add comment node type X-Git-Tag: semi_working_ecp5~272^2~9 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=80f3e8838826feb987fbe00397be755f85f1ace8;p=soc.git Add comment node type --- diff --git a/src/soc/experiment/alu_fsm.py b/src/soc/experiment/alu_fsm.py index f3973682..226b8c4f 100644 --- a/src/soc/experiment/alu_fsm.py +++ b/src/soc/experiment/alu_fsm.py @@ -351,6 +351,10 @@ def write_gtkw(gtkw_name, vcd_name, gtkw_style, gtkw_dom, # node is a group if it has a child list if isinstance(node[-1], list): children = node[-1] + # comment + elif isinstance(node, dict): + if 'comment' in node: + gtkw.blank(node['comment']) # emit the group delimiters and walk over the child list if children is not None: gtkw.begin_group(node_name)