Packages

o

firrtl

Utils

object Utils extends LazyLogging

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Utils
  2. LazyLogging
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class DeclarationNotFoundException(msg: String) extends FIRRTLException with Product with Serializable
  2. type NodeMap = HashMap[String, Expression]

    Maps node name to value

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val BoolType: UIntType
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def ceilLog2(x: BigInt): Int
  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  8. def create_exps(e: Expression): Seq[Expression]
  9. def create_exps(n: String, t: Type): Seq[Expression]
  10. def diff(e1: Expression, e2: Expression): Seq[(Expression, Expression)]

    Walks two expression trees and returns a sequence of tuples of where they differ

  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  13. def error(str: String, cause: Throwable = null): Nothing
  14. def field_flip(v: Type, s: String): Orientation
  15. def field_type(v: Type, s: String): Type
  16. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. def gender(e: Expression): Gender
  18. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. def getDeclaration(m: Module, expr: Expression): IsDeclaration

    Gets the root declaration of an expression

    Gets the root declaration of an expression

    m

    the firrtl.ir.Module to search

    expr

    the firrtl.ir.Expression that refers to some declaration

    returns

    the firrtl.ir.IsDeclaration of expr

    Exceptions thrown

    DeclarationNotFoundException if no declaration of expr is found

  20. def getKids(e: Expression): Seq[Expression]

    Returns children Expressions of e

  21. def getThrowable(maybeException: Option[Throwable], first: Boolean): Throwable

    Unwind the causal chain until we hit the initial exception (which may be the first).

    Unwind the causal chain until we hit the initial exception (which may be the first).

    maybeException

    - possible exception triggering the error,

    first

    - true if we want the first (eldest) exception in the chain,

    returns

    first or last Throwable in the chain.

  22. def get_field(v: Type, s: String): Field
  23. def get_flip(t: Type, i: Int, f: Orientation): Orientation
  24. def get_gender(p: Port): Gender
  25. def get_gender(s: Statement): Gender
  26. def get_info(s: Statement): Info
  27. def get_point(e: Expression): Int
  28. def get_size(t: Type): Int
  29. def get_valid_points(t1: Type, t2: Type, flip1: Orientation, flip2: Orientation): Seq[(Int, Int)]
  30. def hasFlip(t: Type): Boolean

    Returns true if t, or any subtype, contains a flipped field

    Returns true if t, or any subtype, contains a flipped field

    t

    type firrtl.ir.Type to be checked

    returns

    if t contains firrtl.ir.Flip

  31. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  32. def indent(str: String): String

    Indent the results of ir.FirrtlNode.serialize

  33. def inline(nodeMap: NodeMap, stop: (String) ⇒ Boolean = x: String => false)(e: Expression): Expression

    Returns an inlined expression (replacing node references with values), stopping on a stopping condition or until the reference is not a node

  34. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  35. def isTemp(str: String): Boolean
  36. def kind(e: Expression): Kind
  37. val logger: Logger
    Definition Classes
    LazyLogging
  38. def max(a: BigInt, b: BigInt): BigInt
  39. def mergeRef(root: Expression, body: Expression): Expression

    Adds a root reference to some SubField/SubIndex chain

  40. def min(a: BigInt, b: BigInt): BigInt
  41. def module_type(m: DefModule): Type
  42. def mux_type(t1: Type, t2: Type): Type
  43. def mux_type(e1: Expression, e2: Expression): Type
  44. def mux_type_and_widths(t1: Type, t2: Type): Type
  45. def mux_type_and_widths(e1: Expression, e2: Expression): Type
  46. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  47. def niceName(depth: Int)(e: Expression): String
  48. def niceName(e: Expression): String

    Provide a nice name to create a temporary *

  49. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  50. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  51. val one: UIntLiteral
  52. def pow_minus_one(a: BigInt, b: BigInt): BigInt
  53. def splitRef(e: Expression): (WRef, Expression)

    Splits an Expression into root Ref and tail

    Splits an Expression into root Ref and tail

    Examples:
    1. Given: SubField(SubIndex(Ref("b"), 2), "c") Returns: (Ref("b"), SubField(SubIndex(EmptyExpression, 2), "c")) b[2].c -> (b, EMPTY[2].c)

    2. ,
    3. Given: SubField(SubIndex(SubField(Ref("a", UIntType(IntWidth(32))), "b"), 2), "c") Returns: (Ref("a"), SubField(SubIndex(Ref("b"), 2), "c")) a.b[2].c -> (a, b[2].c)

    Note

    This function only supports WRef, WSubField, and WSubIndex

  54. def squashEmpty(s: Statement): Statement

    Removes all firrtl.ir.EmptyStmt statements and condenses firrtl.ir.Block statements.

  55. def sub_type(v: Type): Type
  56. def swap(f: Orientation): Orientation
  57. def swap(d: Direction): Direction
  58. def swap(g: Gender): Gender
  59. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  60. def throwInternalError(message: String = "", exception: Option[Exception] = None): Nothing

    Throw an internal error, possibly due to an exception.

    Throw an internal error, possibly due to an exception.

    message

    - possible string to emit,

    exception

    - possible exception triggering the error.

  61. def times(f1: Orientation, f2: Orientation): Orientation
  62. def times(flip: Orientation, g: Gender): Gender
  63. def times(g: Gender, flip: Orientation): Gender
  64. def times(d: Direction, g: Gender): Direction
  65. def times(g: Gender, d: Direction): Direction
  66. def times(d: Direction, flip: Orientation): Direction
  67. def toString(): String
    Definition Classes
    AnyRef → Any
  68. implicit def toWrappedExpression(x: Expression): WrappedExpression
  69. def to_dir(g: Gender): Direction
  70. def to_flip(g: Gender): Orientation
  71. def to_flip(d: Direction): Orientation
  72. def to_gender(d: Direction): Gender
  73. def uint(i: BigInt): UIntLiteral
  74. val v_keywords: Set[String]
  75. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  76. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  77. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  78. val zero: UIntLiteral

Inherited from LazyLogging

Inherited from AnyRef

Inherited from Any

Ungrouped