* base: numerical base for value display
* display: alternate text to display in the signal pane
* comment: comment to display in the signal pane
+ * bit: select a bit from a wide signal. MSB is zero, unfortunately
**gtkw_dom format**
node_color = colors.get(node_style.get('color'))
node_base = node_style.get('base')
display = node_style.get('display')
- gtkw.trace(signal_name, color=node_color,
- datafmt=node_base, alias=display)
+ if 'bit' not in node_style:
+ gtkw.trace(signal_name, color=node_color,
+ datafmt=node_base, alias=display)
+ else:
+ bit = node_style['bit']
+ gtkw.trace_bit(bit, signal_name, color=node_color,
+ alias=display)
walk(gtkw_dom, root_style)