You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix visualization to handle FIRRTL arrays and vectors
The visualize() function was generating invalid GraphViz DOT syntax when
processing FIRRTL with array types like:
reg zs : UInt<8>[3]
products[0] <= _products_T
Error was: "syntax error in line X near ']'"
Root cause: Array index syntax `name[0]` contains brackets which are invalid
in DOT node identifiers.
Fix: Added sanitizeName() helper that:
- Converts array indices to underscores: zs[0] -> zs_0
- Strips other invalid characters for DOT format
- Applied to all signal names (inputs, outputs, regs, wires, connections)
This allows visualization of complex circuits with vectors and arrays,
such as FIR filters with coefficient arrays.
0 commit comments