Vl-expr-clean-concats
Flatten concatenations and try to merge adjacent, compatible wires
within them into larger part-selects.
- Signature
(vl-expr-clean-concats x ss) → new-x
- Arguments
- x — Any expression that occurs in the module mod.
Guard (vl-expr-p x).
- ss — Containing scope stack.
Guard (vl-scopestack-p ss).
- Returns
- new-x — Perhaps simplified version of X.
Type (vl-expr-p new-x).
We try to simplify the concatenations within x, by
flattening out nested concatenations and merging concatenations like
{foo[3:1], foo[0]} into selects like foo[3:0].
Subtopics
- Vl-spurious-concatenation-p
- Determine if a concatenation such as {foo} can be safely
rewritten to just foo.