From: Cesar Strauss Date: Sun, 23 Aug 2020 18:06:21 +0000 (-0300) Subject: Add base and display styles X-Git-Tag: semi_working_ecp5~272^2~10 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e3c0a87ce1f0e719e83985c6645e9a5b26035b33;p=soc.git Add base and display styles --- diff --git a/src/soc/experiment/alu_fsm.py b/src/soc/experiment/alu_fsm.py index 7e09ab94..f3973682 100644 --- a/src/soc/experiment/alu_fsm.py +++ b/src/soc/experiment/alu_fsm.py @@ -363,10 +363,11 @@ def write_gtkw(gtkw_name, vcd_name, gtkw_style, gtkw_dom, # prepend module name to signal if 'module' in node_style: signal_name = node_style['module'] + '.' + signal_name - color = None - if 'color' in node_style: - color = colors[node_style['color']] - gtkw.trace(signal_name, color=color) + color = colors.get(node_style.get('color')) + base = node_style.get('base') + display = node_style.get('display') + gtkw.trace(signal_name, color=color, datafmt=base, + alias=display) walk(gtkw_dom, root_style)