Class

Chisel

AsyncFifo

Related Doc: package Chisel

Permalink

class AsyncFifo[T <: Data] extends Module

Asynchronous Fifo. Used to cross two clock domains.

Source
ChiselUtil.scala
Linear Supertypes
Module, Nameable, AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AsyncFifo
  2. Module
  3. Nameable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AsyncFifo(gen: T, entries: Int, enq_clk: Clock, deq_clk: Clock)

    Permalink

    gen

    the type of data in the fifo

    entries

    the max number of entries in the fifo. The actual size will be rounded up to the next power of 2 - (size = 1<<log2Up(entries))

    enq_clk

    clock for the input (writing, queuing) side

    deq_clk

    clock for the output (reading, dequeuing side) side

Type Members

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

    Permalink

    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.

    Definition Classes
    Module

Value Members

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

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

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

    Permalink

    Connect io with matching names for two modules

    Connect io with matching names for two modules

    Definition Classes
    Module
  4. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  5. def IO[T <: Data](iodef: T): iodef.type

    Permalink
    Definition Classes
    Module
  6. var _clock: Option[Clock]

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

    Permalink

    Add a clock to the module

    Add a clock to the module

    clock

    the clock to add

    Definition Classes
    Module
  8. def addDefaultReset: Unit

    Permalink

    Add a default reset to the module

    Add a default reset to the module

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

    Permalink

    Add a submodule to this module

    Add a submodule to this module

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

    Permalink

    Add a submodule to this module

    Add a submodule to this module

    Definition Classes
    Module
  11. def addNode[T <: Node](node: T): T

    Permalink
    Definition Classes
    Module
  12. def addPin[T <: Data](pin: T, name: String = ""): T

    Permalink

    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

    Definition Classes
    Module
  13. def addResetPin(r: Bool): Bool

    Permalink

    returns

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

    Definition Classes
    Module
  14. def apply(name: String): Data

    Permalink
    Definition Classes
    Module
  15. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  16. val asize: Int

    Permalink
  17. def assert(cond: Bool, message: String = ""): Unit

    Permalink

    Add an assertion in the code generated by a backend.

    Add an assertion in the code generated by a backend.

    Definition Classes
    Module
  18. def bfs(visit: (Node) ⇒ Unit): Unit

    Permalink

    A breadth first search of the graph of nodes

    A breadth first search of the graph of nodes

    Definition Classes
    Module
  19. val children: ArrayBuffer[Module]

    Permalink
    Definition Classes
    Module
  20. def clock: Clock

    Permalink

    returns

    the implied clock for this module

    Definition Classes
    Module
  21. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. def debug(data: Aggregate): Unit

    Permalink
    Definition Classes
    Module
  23. def debug(x: Node): Unit

    Permalink

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

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

    Definition Classes
    Module
  24. def dfs(visit: (Node) ⇒ Unit): Unit

    Permalink

    A depth first search of the graph of nodes

    A depth first search of the graph of nodes

    Definition Classes
    Module
  25. final def eq(arg0: AnyRef): Boolean

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

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

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

    Permalink

    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

    Definition Classes
    Module
  29. final def getClass(): Class[_]

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

    Permalink

    separator

    The separator to use for the path name

    returns

    the absolute path to a component instance from toplevel

    Definition Classes
    Module
  31. def getPathName: String

    Permalink

    returns

    the absolute path to a component instance from toplevel

    Definition Classes
    Module
  32. val hashCode: Int

    Permalink
    Definition Classes
    Module → AnyRef → Any
  33. val io: QueueIO[T]

    Permalink

    the I/O for this module

    the I/O for this module

    Definition Classes
    AsyncFifoModule
  34. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  35. val mem: Mem[T]

    Permalink
  36. var moduleName: String

    Permalink

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

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

    Definition Classes
    Module
  37. var name: String

    Permalink

    Name of the instance.

    Name of the instance.

    Definition Classes
    Nameable
  38. var named: Boolean

    Permalink

    named is used to indicate that name was set explicitly and should not be overriden

    named is used to indicate that name was set explicitly and should not be overriden

    Definition Classes
    Nameable
  39. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  40. def nextIndex: Int

    Permalink
    Definition Classes
    Module
  41. val not_empty: Bool

    Permalink
  42. val not_empty_next: Bool

    Permalink
  43. val not_full: Bool

    Permalink
  44. val not_full_next: Bool

    Permalink
  45. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  47. lazy val params: Parameters

    Permalink
    Definition Classes
    Module
  48. var parent: Module

    Permalink
    Definition Classes
    Module
  49. def printf(message: String, args: Node*): Unit

    Permalink

    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

    Definition Classes
    Module
  50. def reset: Bool

    Permalink

    returns

    the implied reset for this module

    Definition Classes
    Module
  51. val rptr_bin: UInt

    Permalink
  52. val rptr_bin_next: UInt

    Permalink
  53. val rptr_gray: UInt

    Permalink
  54. val rptr_gray_next: UInt

    Permalink
  55. val s1_rptr_gray: UInt

    Permalink
  56. val s1_rst_deq: Bool

    Permalink
  57. val s1_rst_enq: Bool

    Permalink
  58. val s1_wptr_gray: UInt

    Permalink
  59. val s2_rptr_gray: UInt

    Permalink
  60. val s2_rst_deq: Bool

    Permalink
  61. val s2_rst_enq: Bool

    Permalink
  62. val s2_wptr_gray: UInt

    Permalink
  63. def setModuleName(n: String): Unit

    Permalink

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

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

    Definition Classes
    Module
  64. def setName(n: String): Unit

    Permalink

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

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

    Definition Classes
    Nameable
    Example:
    1. my.io.node.setName("MY_IO_NODE")
  65. def stripComponent(s: String): String

    Permalink
    Definition Classes
    Module
  66. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  67. def toString(): String

    Permalink
    Definition Classes
    Module → AnyRef → Any
  68. final def wait(): Unit

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

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

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

    Permalink

    Get the I/O names and connections

    Get the I/O names and connections

    Definition Classes
    Module
  72. val wptr_bin: UInt

    Permalink
  73. val wptr_bin_next: UInt

    Permalink
  74. val wptr_gray: UInt

    Permalink
  75. val wptr_gray_next: UInt

    Permalink

Inherited from Module

Inherited from Nameable

Inherited from AnyRef

Inherited from Any

Ungrouped