Add comment node type
authorCesar Strauss <cestrauss@gmail.com>
Sun, 23 Aug 2020 18:31:12 +0000 (15:31 -0300)
committerCesar Strauss <cestrauss@gmail.com>
Sun, 23 Aug 2020 18:31:12 +0000 (15:31 -0300)
src/soc/experiment/alu_fsm.py

index f3973682b915555528eb823e46d14a52748dcf94..226b8c4f94bbdf60bcf29fb68a4b31cb1687aa38 100644 (file)
@@ -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)