Chisel

Module

abstract class Module extends AnyRef

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Module
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Module(clock: Clock = null, _reset: Bool = null)

Abstract Value Members

  1. abstract def io: Data

Concrete Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def <>(src: Module): Unit

  5. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  6. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  7. def addClock(clock: Clock): Unit

  8. def addClockAndReset: Unit

  9. def addDefaultReset: Unit

  10. def addResetPin(reset: Bool): Bool

  11. def apply(name: String): Data

  12. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  13. def assert(cond: Bool, message: String): Unit

    Add an assertion in the code generated by a backend.

  14. val asserts: ArrayBuffer[Assert]

  15. def bfs(visit: (Node) ⇒ Unit): Unit

  16. val bindings: ArrayBuffer[Binding]

  17. val children: ArrayBuffer[Module]

  18. var clock: Clock

  19. val clocks: ArrayBuffer[Clock]

  20. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. def collectNodes(c: Module): Unit

  22. def counter(xs: Node*): Unit

  23. def counter(x: Node): Unit

  24. def debug(x: Node): Unit

    Insures a backend does not remove a signal because it is unreachable from the outputs.

  25. val debugs: LinkedHashSet[Node]

  26. var defaultResetPin: Bool

  27. var defaultWidth: Int

  28. def dfs(visit: (Node) ⇒ Unit): Unit

  29. def elaborate(fake: Int = 0): Unit

  30. def emitDec(b: Backend): String

  31. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  32. def equals(that: Any): Boolean

    Definition Classes
    Module → AnyRef → Any
  33. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  34. def findBinding(m: Node): Binding

  35. def findCombLoop(): Unit

  36. def findConsumers(): Unit

  37. def findGraphDims(): (Int, Int, Int)

  38. def findOrdering(): Unit

  39. def findRoots(): ArrayBuffer[Node]

    Since we are relying on the out-degree of nodes (i.

    Since we are relying on the out-degree of nodes (i.e. consumers.length), this method should only be called after the forward edges have been constructed.

  40. def forceMatchingWidths: Unit

  41. def genAllMuxes: Unit

  42. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  43. def getClassValNames(c: Class[_]): ArrayBuffer[String]

  44. def getPathName(separator: String = "_"): String

  45. def getPathName: String

    Returns the absolute path to a component instance from toplevel.

  46. def getValNames: ArrayBuffer[String]

  47. def hasClock: Boolean

  48. var hasExplicitClock: Boolean

  49. var hasExplicitReset: Boolean

  50. def hasReset: Boolean

  51. def hasWhenCond: Boolean

  52. val hashCode: Int

    Definition Classes
    Module → AnyRef → Any
  53. def inferAll(): Int

  54. def initializeBFS: scala.collection.mutable.Queue[Node]

  55. def initializeDFS: Stack[Node]

  56. var ioVal: Data

  57. def isInput(node: Node): Boolean

  58. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  59. object isValName

  60. var isWalked: HashSet[Node]

  61. var isWalking: HashSet[Node]

  62. def keepInputs(nodes: Seq[Node]): Seq[Node]

  63. var level: Int

    A backend(Backend.

    A backend(Backend.scala) might generate multiple module source code from one Module, based on the parameters to instanciate the component instance. Since we do not want to blindly generate one module per instance the backend will keep a cache of each module's implementation source code and discard textual duplicates. By walking the nodes from level zero (leafs) to level N (root), we are guarenteed to generate all Module/modules source text before their first instantiation.

  64. def lowerNodes(needsLowering: Set[String]): Unit

  65. def markComponent(): Unit

  66. val mods: ArrayBuffer[Node]

  67. var moduleName: String

    Name of the module this component generates (defaults to class name).

  68. var name: String

    Name of the instance.

  69. var named: Boolean

  70. val names: HashMap[String, Node]

  71. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  72. def nextIndex: Int

  73. val nexts: scala.collection.mutable.Queue[Node]

  74. var nindex: Int

  75. val nodes: ArrayBuffer[Node]

  76. final def notify(): Unit

    Definition Classes
    AnyRef
  77. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  78. val omods: ArrayBuffer[Node]

  79. def ownIo(): Unit

  80. var pName: String

  81. def params: Parameters

  82. var parent: Module

  83. var pathParent: Module

  84. def postMarkNet(fake: Int = 0): Unit

  85. def printf(message: String, args: Node*): Unit

  86. val printfs: ArrayBuffer[Printf]

  87. val regs: ArrayBuffer[Reg]

  88. def removeInputs(nodes: Seq[Node]): Seq[Node]

  89. def removeTypeNodes(): Int

    All classes inherited from Data are used to add type information and do not represent logic itself.

  90. def reset: Bool

  91. def reset_=(): Unit

  92. def reset_=(r: Bool): Unit

  93. val resets: HashMap[Bool, Bool]

  94. val signals: LinkedHashSet[Node]

  95. def stripComponent(s: String): String

  96. val switchKeys: Stack[Bits]

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

    Definition Classes
    AnyRef
  98. def toString(): String

    Definition Classes
    Module → AnyRef → Any
  99. def traceNodes(): Unit

  100. def traceableNodes: Array[Node]

  101. var traversal: Int

  102. var verilog_parameters: String

  103. def visitNodes(roots: Array[Node]): Unit

  104. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  107. def whenCond: Bool

  108. val whenConds: Stack[Bool]

  109. def wires: Array[(String, Bits)]

  110. var wiresCache: Array[(String, Bits)]

Inherited from AnyRef

Inherited from Any

Ungrouped