Chisel

Module

Related Docs: object Module | package Chisel

abstract class Module extends AnyRef

Source
Module.scala
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: Option[Clock] = None, _reset: Option[Bool] = None)

Type Members

  1. type neededWireWraps = HashMap[StackTraceElement, ArrayBuffer[Data]]

    verifyWireWrap (Chisel3) - verify assignment semantics (type-only nodes must be wire-wrapped)

    verifyWireWrap (Chisel3) - verify assignment semantics (type-only nodes must be wire-wrapped)

    returns

    - HashMap of source lines (and associated nodes) requiring Wire() wrapping.

Abstract Value Members

  1. abstract def io: Data

    the I/O for this module

Concrete Value Members

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

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

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

    Connect io with matching names for two modules

  4. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  5. var _clock: Option[Clock]

  6. def addClock(clock: Clock): Unit

    Add a clock to the module

    Add a clock to the module

    clock

    the clock to add

  7. def addDefaultReset: Unit

    Add a default reset to the module

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

    Add a submodule to this module

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

    Add a submodule to this module

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

    Add a pin with a name to the module

    Add a pin with a name to the module

    pin

    the I/O to add

    name

    A name for the pin

  11. def addResetPin(r: Bool): Bool

    returns

    the pin connected to the reset signal or creates a new one if no such pin exists

  12. def apply(name: String): Data

  13. final def asInstanceOf[T0]: T0

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

    Add an assertion in the code generated by a backend.

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

    A breadth first search of the graph of nodes

  16. val children: ArrayBuffer[Module]

  17. def clock: Clock

    returns

    the implied clock for this module

  18. def clone(): AnyRef

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

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

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

    A depth first search of the graph of nodes

  21. def emitDec(b: Backend): String

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

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

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

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

    A method to trace the graph of nodes backwards looking at inputs

    A method to trace the graph of nodes backwards looking at inputs

    m

    Node to find bindings for

    returns

    nodes which have node m binded as their input

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

    Definition Classes
    AnyRef → Any
  27. def getPathName(separator: String = "_"): String

    separator

    The separator to use for the path name

    returns

    the absolute path to a component instance from toplevel

  28. def getPathName: String

    returns

    the absolute path to a component instance from toplevel

  29. val hashCode: Int

    Definition Classes
    Module → AnyRef → Any
  30. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  31. var moduleName: String

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

  32. var name: String

    Name of the instance.

  33. var named: Boolean

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

    Definition Classes
    AnyRef
  35. def nextIndex: Int

  36. var nindex: Option[Int]

  37. final def notify(): Unit

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

    Definition Classes
    AnyRef
  39. lazy val params: Parameters

  40. var parent: Module

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

    Adds a printf to the module called each clock cycle

    Adds a printf to the module called each clock cycle

    message

    A c style sting to print out eg) %d, %x

    args

    Nodes whos data values should be printed

  42. def reset: Bool

    returns

    the implied reset for this module

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

  44. def setModuleName(n: String): Unit

    Set the declaration name of the module to be string 'n'

  45. def setName(n: String): Unit

    Set the name of this module to the string 'n'

  46. def stripComponent(s: String): String

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

    Definition Classes
    AnyRef
  48. def toString(): String

    Definition Classes
    Module → AnyRef → Any
  49. var verilog_parameters: String

  50. final def wait(): Unit

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

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

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

    Get the I/O names and connections

Inherited from AnyRef

Inherited from Any

Ungrouped