Object

firrtl

Utils

Related Doc: package firrtl

Permalink

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

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val BoolType: UIntType

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def ceilLog2(x: BigInt): Int

    Permalink
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def create_exps(e: Expression): Seq[Expression]

    Permalink
  9. def create_exps(n: String, t: Type): Seq[Expression]

    Permalink
  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. def error(str: String): Nothing

    Permalink
  13. def field_flip(v: Type, s: String): Orientation

    Permalink
  14. def field_type(v: Type, s: String): Type

    Permalink
  15. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. def gender(e: Expression): Gender

    Permalink
  17. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  18. def getDeclaration(m: Module, expr: Expression): IsDeclaration

    Permalink

    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

  19. def get_field(v: Type, s: String): Field

    Permalink
  20. def get_flip(t: Type, i: Int, f: Orientation): Orientation

    Permalink
  21. def get_gender(p: Port): Gender

    Permalink
  22. def get_gender(s: Statement): Gender

    Permalink
  23. def get_info(s: Statement): Info

    Permalink
  24. def get_point(e: Expression): Int

    Permalink
  25. def get_size(t: Type): Int

    Permalink
  26. def get_valid_points(t1: Type, t2: Type, flip1: Orientation, flip2: Orientation): Seq[(Int, Int)]

    Permalink
  27. def hasFlip(t: Type): Boolean

    Permalink

    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

  28. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  29. def indent(str: String): String

    Permalink

    Indent the results of ir.FirrtlNode.serialize

  30. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  31. def kind(e: Expression): Kind

    Permalink
  32. val logger: Logger

    Permalink
    Definition Classes
    LazyLogging
  33. def max(a: BigInt, b: BigInt): BigInt

    Permalink
  34. def mergeRef(root: Expression, body: Expression): Expression

    Permalink

    Adds a root reference to some SubField/SubIndex chain

  35. def min(a: BigInt, b: BigInt): BigInt

    Permalink
  36. def module_type(m: DefModule): Type

    Permalink
  37. def mux_type(t1: Type, t2: Type): Type

    Permalink
  38. def mux_type(e1: Expression, e2: Expression): Type

    Permalink
  39. def mux_type_and_widths(t1: Type, t2: Type): Type

    Permalink
  40. def mux_type_and_widths(e1: Expression, e2: Expression): Type

    Permalink
  41. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  42. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  43. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  44. val one: UIntLiteral

    Permalink
  45. def pow_minus_one(a: BigInt, b: BigInt): BigInt

    Permalink
  46. def splitRef(e: Expression): (WRef, Expression)

    Permalink

    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

  47. def squashEmpty(s: Statement): Statement

    Permalink

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

  48. def sub_type(v: Type): Type

    Permalink
  49. def swap(f: Orientation): Orientation

    Permalink
  50. def swap(d: Direction): Direction

    Permalink
  51. def swap(g: Gender): Gender

    Permalink
  52. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  53. def throwInternalError: Nothing

    Permalink
  54. def times(f1: Orientation, f2: Orientation): Orientation

    Permalink
  55. def times(flip: Orientation, g: Gender): Gender

    Permalink
  56. def times(g: Gender, flip: Orientation): Gender

    Permalink
  57. def times(d: Direction, g: Gender): Direction

    Permalink
  58. def times(g: Gender, d: Direction): Direction

    Permalink
  59. def times(d: Direction, flip: Orientation): Direction

    Permalink
  60. def times(flip: Orientation, d: Direction): Direction

    Permalink
  61. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  62. implicit def toWrappedExpression(x: Expression): WrappedExpression

    Permalink
  63. def to_dir(g: Gender): Direction

    Permalink
  64. def to_flip(g: Gender): Orientation

    Permalink
  65. def to_flip(d: Direction): Orientation

    Permalink
  66. def to_gender(d: Direction): Gender

    Permalink
  67. def uint(i: BigInt): UIntLiteral

    Permalink
  68. val v_keywords: Set[String]

    Permalink
  69. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  70. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  71. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  72. val zero: UIntLiteral

    Permalink

Inherited from LazyLogging

Inherited from AnyRef

Inherited from Any

Ungrouped