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): Unit

  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. def bfs(visit: (Node) ⇒ Unit): Unit

  15. val bindings: ArrayBuffer[Binding]

  16. val blackboxes: ArrayBuffer[BlackBox]

  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. var containsReg: Boolean

  23. def containsRegInTree: Boolean

    Returns true if this module or any of its children contains at least one register.

  24. def debug(x: Node): Unit

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

  25. val debugs: HashSet[Node]

  26. var defaultResetPin: Bool

  27. var defaultWidth: Int

  28. def depthString(depth: Int): String

  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(arg0: Any): Boolean

    Definition Classes
    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 getPathName: String

    Returns the absolute path to a component instance from toplevel.

  44. def getResetPin(reset: Bool): Bool

  45. def hasClock: Boolean

  46. var hasExplicitClock: Boolean

  47. var hasExplicitReset: Boolean

  48. def hasReset: Boolean

  49. def hashCode(): Int

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

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

  52. def initializeDFS: Stack[Node]

  53. var ioVal: Data

  54. def isInferenceTerminal(m: Node): Boolean

  55. def isInput(node: Node): Boolean

  56. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  57. def isSubclassOf(x: Class[_]): Boolean

  58. var isWalked: HashSet[Node]

  59. var isWalking: HashSet[Node]

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

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

  62. def markComponent(): Unit

  63. val mods: ArrayBuffer[Node]

  64. var moduleName: String

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

  65. var name: String

    Name of the instance.

  66. var named: Boolean

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

    Definition Classes
    AnyRef
  68. def nextIndex: Int

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

  70. var nindex: Int

  71. val nodes: ArrayBuffer[Node]

  72. final def notify(): Unit

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

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

  75. def ownIo(): Unit

  76. var parent: Module

  77. var pathParent: Module

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

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

  80. val regs: ArrayBuffer[Reg]

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

  82. def removeTypeNodes(): Int

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

  83. def reset: Bool

  84. def reset_=(): Unit

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

  86. val resets: HashMap[Bool, Bool]

  87. def stripComponent(s: String): String

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

    Definition Classes
    AnyRef
  89. def toString(): String

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

  91. def traceableNodes: Array[Node]

  92. var traversal: Int

  93. def verifyAllMuxes: Unit

  94. var verilog_parameters: String

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

  96. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  99. def wires: Array[(String, Bits)]

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

Inherited from AnyRef

Inherited from Any

Ungrouped