Packages

object InlineBitExtractionsTransform

Source
InlineBitExtractions.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. InlineBitExtractionsTransform
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. type Netlist = HashMap[WrappedExpression, Expression]

    Mapping from references to the Expressions that drive them

Value Members

  1. 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

  2. def onMod(mod: DefModule): DefModule

    Replaces bits in a Module

  3. 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