Expr-cleaning
Functions for cleaning up ugly expressions.
Subtopics
- Vl-exprlist-clean-selects
- (vl-exprlist-clean-selects x ss) maps vl-expr-clean-selects across a list.
- Vl-expr-clean-selects1
- Core routine behind vl-expr-clean-selects.
- Vl-maybe-merge-selects-aux
- Identify a sequence of decreasing bit- and part-selects.
- Vl-merge-consts
- Consolidate concatenations of constants.
- Vl-maybe-merge-selects
- Merge together concatenations like {foo[3], foo[2], foo[1]} into
prettier expressions like foo[3:1].
- Vl-expr-clean-selects
- Simplify concatenations and selects in an expression.
- Vl-elim-nested-concats
- Flatten out nested concatenations like {a, b, {c, d}, { { e, f }
}} into {a, b, c, d, e, f}.
- Vl-expr-clean-concats
- Flatten concatenations and try to merge adjacent, compatible wires
within them into larger part-selects.