From 80f3e8838826feb987fbe00397be755f85f1ace8 Mon Sep 17 00:00:00 2001 From: Cesar Strauss Date: Sun, 23 Aug 2020 15:31:12 -0300 Subject: [PATCH] Add comment node type --- src/soc/experiment/alu_fsm.py | 4 ++++ 1 file changed, 4 insertions(+) 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) -- 2.30.2