object InlineBitExtractionsTransform
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- InlineBitExtractionsTransform
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
- type Netlist = HashMap[WrappedExpression, Expression]
Mapping from references to the Expressions that drive them
Value Members
- def onExpr(netlist: Netlist)(expr: Expression): Expression
Recursively replace WRefs with new Expressions
Recursively replace WRefs with new Expressions
- netlist
a mutable HashMap mapping references to DefNodes to their connected Expression Expressions. It is not mutated in this function
- expr
the Expression being transformed
- returns
Returns expr with Bits inlined
- def onMod(mod: DefModule): DefModule
Replaces bits in a Module
- def onStmt(netlist: Netlist)(stmt: Statement): Statement
Inline bits in a Statement
Inline bits in a Statement
- netlist
a mutable HashMap mapping references to DefNodes to their connected Expressions. This function will mutate it if stmt is a DefNode with a Temporary name and a value that is a PrimOp Bits
- stmt
the Statement being searched for nodes and transformed
- returns
Returns stmt with Bits inlined