Apply style from node own name
authorCesar Strauss <cestrauss@gmail.com>
Sun, 23 Aug 2020 17:51:35 +0000 (14:51 -0300)
committerCesar Strauss <cestrauss@gmail.com>
Sun, 23 Aug 2020 17:51:35 +0000 (14:51 -0300)
src/soc/experiment/alu_fsm.py

index 0079bbd5360a4005aec0bc2edfd1f6802b12b392..7e09ab94ef19750eeb798355231782564f737535 100644 (file)
@@ -330,6 +330,9 @@ def write_gtkw(gtkw_name, vcd_name, gtkw_style, gtkw_dom,
                 # node is a signal name string
                 if isinstance(node, str):
                     node_name = node
+                    # apply style from node name, if specified
+                    if node_name in gtkw_style:
+                        node_style.update(gtkw_style[node_name])
                 # node is a tuple
                 # could be a signal or a group
                 elif isinstance(node, tuple):