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

  9. def addModule[T <: Module](c: ⇒ T)(implicit p: Parameters = params): T

  10. def addModule[T <: Module](c: ⇒ T, f: PartialFunction[Any, Any]): T

  11. def addPin[T <: Data](pin: T, name: String = ""): T

  12. def addResetPin(reset: Bool): Bool

  13. def apply(name: String): Data

  14. final def asInstanceOf[T0]: T0

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

    Add an assertion in the code generated by a backend.

  16. val asserts: ArrayBuffer[Assert]

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

  18. val bindings: ArrayBuffer[Binding]

  19. val children: ArrayBuffer[Module]

  20. var clock: Clock

  21. val clocks: ArrayBuffer[Clock]

  22. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. def debug(x: Node): Unit

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

  24. val debugs: LinkedHashSet[Node]

  25. var defaultResetPin: Bool

  26. var defaultWidth: Int

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

  28. def emitDec(b: Backend): String

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

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

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

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

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

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

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

  36. def getPathName: String

    Returns the absolute path to a component instance from toplevel.

  37. def getValNames: ArrayBuffer[String]

  38. def hasClock: Boolean

  39. var hasExplicitClock: Boolean

  40. var hasExplicitReset: Boolean

  41. def hasReset: Boolean

  42. def hasWhenCond: Boolean

  43. val hashCode: Int

    Definition Classes
    Module → AnyRef → Any
  44. var ioVal: Data

  45. def isInput(node: Node): Boolean

  46. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  47. object isValName

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

  49. var level: Int

    A backend(Backend.

    A backend(Backend.scala) might generate multiple module source code from one Module, based on the parameters to instantiate 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 guaranteed to generate all Module/modules source text before their first instantiation.

  50. def markComponent(): Unit

  51. var moduleName: String

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

  52. var name: String

    Name of the instance.

  53. var named: Boolean

  54. val names: HashMap[String, Node]

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

    Definition Classes
    AnyRef
  56. def nextIndex: Int

  57. var nindex: Int

  58. val nodes: LinkedHashSet[Node]

  59. final def notify(): Unit

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

    Definition Classes
    AnyRef
  61. def ownIo(): Unit

  62. lazy val params: Parameters

  63. var parent: Module

  64. var pathParent: Module

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

  66. val printfs: ArrayBuffer[Printf]

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

  68. def reset: Bool

  69. def reset_=(): Unit

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

  71. val resets: HashMap[Bool, Bool]

  72. def stripComponent(s: String): String

  73. val switchKeys: Stack[Bits]

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

    Definition Classes
    AnyRef
  75. def toString(): String

    Definition Classes
    Module → AnyRef → Any
  76. var traversal: Int

  77. var verilog_parameters: String

  78. final def wait(): Unit

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

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

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

  82. val whenConds: Stack[Bool]

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

Inherited from AnyRef

Inherited from Any

Ungrouped