projects
/
soc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3c0a87
)
Add comment node type
author
Cesar Strauss
<cestrauss@gmail.com>
Sun, 23 Aug 2020 18:31:12 +0000
(15:31 -0300)
committer
Cesar Strauss
<cestrauss@gmail.com>
Sun, 23 Aug 2020 18:31:12 +0000
(15:31 -0300)
src/soc/experiment/alu_fsm.py
patch
|
blob
|
history
diff --git
a/src/soc/experiment/alu_fsm.py
b/src/soc/experiment/alu_fsm.py
index f3973682b915555528eb823e46d14a52748dcf94..226b8c4f94bbdf60bcf29fb68a4b31cb1687aa38 100644
(file)
--- 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)