Chisel

CppBackend

class CppBackend extends Backend

Source
Cpp.scala
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. CppBackend
  2. Backend
  3. FileSystemUtilities
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CppBackend()

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. final def ==(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  6. val CC: String

    Attributes
    protected
    Definition Classes
    FileSystemUtilities
  7. val CCFLAGS: String

    Attributes
    protected
    Definition Classes
    FileSystemUtilities
  8. val CPPFLAGS: String

    Attributes
    protected
    Definition Classes
    FileSystemUtilities
  9. val CXX: String

    Attributes
    protected
    Definition Classes
    FileSystemUtilities
  10. val CXXFLAGS: String

    Attributes
    protected
    Definition Classes
    FileSystemUtilities
  11. val LDFLAGS: String

    Attributes
    protected
    Definition Classes
    FileSystemUtilities
  12. def W0Wtransform(): Unit

    Definition Classes
    Backend
  13. def addBindings: Unit

    Definition Classes
    Backend
  14. def addClocksAndResets: Unit

    Definition Classes
    Backend
  15. def addDefaultResets: Unit

    Definition Classes
    Backend
  16. val allocateOnlyNeededShadowRegisters: Boolean

    Attributes
    protected[this]
  17. val allocatedShadow: HashSet[Node]

    Attributes
    protected[this]
  18. val analyses: ArrayBuffer[(Module) ⇒ Unit]

    Definition Classes
    Backend
  19. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  20. def asValidName(name: String): String

    Definition Classes
    Backend
  21. def assignClockAndResetToModules: Unit

    Definition Classes
    Backend
  22. def block(s: Seq[String]): String

  23. val bpw: Int

    Attributes
    protected[this]
  24. def cc(dir: String, name: String, flags: String = "", isCC: Boolean = false): Unit

    Definition Classes
    FileSystemUtilities
  25. def checkModuleResolution: Unit

    Definition Classes
    Backend
  26. def checkPorts: Unit

    Definition Classes
    Backend
  27. val chiselENV: String

    Attributes
    protected
    Definition Classes
    FileSystemUtilities
  28. def clkName(clock: Clock): String

    Attributes
    protected[this]
  29. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. val coalesceConstants: Boolean

    Attributes
    protected[this]
  31. def collectNodesIntoComp(mod: Module): Unit

    Definition Classes
    Backend
  32. def compile(c: Module, flagsIn: Option[String]): Unit

    Definition Classes
    CppBackendBackend
  33. val compileInitializationUnoptimized: Boolean

    Attributes
    protected[this]
  34. val compileMultipleCppFiles: Boolean

    Attributes
    protected[this]
  35. def computeMemPorts(mod: Module): Unit

    Definition Classes
    Backend
  36. def connectResets: Unit

    Definition Classes
    Backend
  37. val constantPool: HashMap[(String, Width), Literal]

    Attributes
    protected[this]
  38. def convertMaskedWrites(mod: Module): Unit

    Definition Classes
    Backend
  39. def copyToTarget(filename: String): Unit

    Definition Classes
    FileSystemUtilities
  40. def createOutputFile(name: String): FileWriter

    Definition Classes
    FileSystemUtilities
  41. def determineRequiredShadowRegisters(node: Node): Unit

    Attributes
    protected[this]
  42. def elaborate(c: Module): Unit

    Definition Classes
    CppBackendBackend
  43. def emitCircuitAssign(srcPrefix: String, node: Node): String

    Attributes
    protected[this]
  44. def emitDatRef(x: Node): String

  45. def emitDec(node: Node): String

    Definition Classes
    CppBackendBackend
  46. def emitDef(node: Node): String

    Definition Classes
    Backend
  47. def emitDefHi(node: Node): String

  48. def emitDefLo(node: Node): String

  49. def emitInit(node: Node): String

  50. def emitInitHi(node: Node): String

  51. def emitLitVal(n: Node, w: Int): String

    Attributes
    protected[this]
  52. def emitLoWordRef(node: Node): String

  53. def emitLog2(x: Node, priEnc: Boolean = false): String

  54. def emitRef(node: Node): String

    Definition Classes
    CppBackendBackend
  55. def emitRef(c: Module): String

    Definition Classes
    Backend
  56. def emitRefHi(node: Node): String

  57. def emitTmp(node: Node): String

    Definition Classes
    CppBackendBackend
  58. def emitTmpDec(node: Node): String

  59. def emitValue(value: BigInt, w: Int = 0): String

    Attributes
    protected[this]
  60. def emitWordRef(node: Node, w: Int): String

  61. def ensureDir(dir: String): String

    Ensures a directory *dir* exists on the filesystem.

    Ensures a directory *dir* exists on the filesystem.

    Definition Classes
    FileSystemUtilities
  62. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  63. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  64. def execute(c: Module, walks: ArrayBuffer[(Module) ⇒ Unit]): Unit

    Definition Classes
    Backend
  65. def extractClassName(comp: Module): String

    Definition Classes
    Backend
  66. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  67. def findCombLoop: Unit

    Definition Classes
    Backend
  68. def findConsumers(mod: Module): Unit

    Definition Classes
    Backend
  69. def findGraphDims: (Int, Int, Int)

    Definition Classes
    Backend
  70. def flattenAll: Unit

    Definition Classes
    Backend
  71. def forceMatchingWidths: Unit

    Definition Classes
    Backend
  72. def fullWords(node: Node): Int

    Attributes
    protected[this]
  73. def fullyQualifiedName(m: Node): String

    Definition Classes
    Backend
  74. def gatherClocksAndResets: Unit

    Definition Classes
    Backend
  75. def genHarness(c: Module, name: String): Unit

    Attributes
    protected[this]
  76. def genIndent(x: Int): String

    Prints the call stack of Component as seen by the push/pop runtime.

    Prints the call stack of Component as seen by the push/pop runtime.

    Attributes
    protected
    Definition Classes
    Backend
  77. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  78. def hashCode(): Int

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

    Definition Classes
    Backend
  80. def isBitsIo(node: Node, dir: IODirection): Boolean

    Nodes which are created outside the execution trace from the toplevel component constructor (i.

    Nodes which are created outside the execution trace from the toplevel component constructor (i.e. through the () => Module(new Top()) ChiselMain argument) will have a component field set to null. For example, genMuxes, forceMatchWidths and transforms (all called from Backend.elaborate) create such nodes.

    This method walks all nodes from all component roots (outputs, debugs). and reassociates the component to the node both ways (i.e. in Driver.nodes and Node.component).

    We assume here that all nodes at the components boundaries (io) have a non-null and correct node/component association. We further assume that nodes generated in elaborate are inputs to a node whose component field is set.

    Implementation Node: At first we did implement *collectNodesIntoComp* to handle a single component at a time but that did not catch the cases where Regs are passed as input to sub-module without being tied to an output of *this.component*.

    Definition Classes
    Backend
  81. def isEmittingComponents: Boolean

    Definition Classes
    Backend
  82. def isInObject(n: Node): Boolean

    Definition Classes
    CppBackendBackend
  83. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  84. def isLit(node: Node): Boolean

    Attributes
    protected[this]
  85. val keywords: Set[String]

    Definition Classes
    Backend
  86. def link(dir: String, target: String, objects: Seq[String], isCC: Boolean = false, isLib: Boolean = false): Unit

    Definition Classes
    FileSystemUtilities
  87. def lowerNodes(mod: Module): Unit

    Definition Classes
    Backend
  88. def markComponents: Unit

    Definition Classes
    Backend
  89. var maxFiles: Int

    Attributes
    protected[this]
  90. val multiwordLiteralInObject: Boolean

    Attributes
    protected[this]
  91. val multiwordLiterals: HashSet[Literal]

    Attributes
    protected[this]
  92. def nameAll(): Unit

    Definition Classes
    Backend
  93. def nameBindings: Unit

    Definition Classes
    Backend
  94. def nameRsts: Unit

    Definition Classes
    Backend
  95. val nameSpace: HashSet[String]

    Definition Classes
    Backend
  96. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  97. val needShadow: HashSet[Node]

    Attributes
    protected[this]
  98. val needsLowering: Set[String]

    Definition Classes
    Backend
  99. def nodeVars(node: Node): List[(String, String)]

    Attributes
    protected[this]
  100. final def notify(): Unit

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

    Definition Classes
    AnyRef
  102. val onceOnlyFiles: HashSet[String]

    Attributes
    protected[this]
  103. def opFoldLeft(o: Op, initial: (String, String) ⇒ String, subsequent: (String, String, String) ⇒ String): String

  104. var potentialShadowRegisters: Int

    Attributes
    protected[this]
  105. def printStack: Unit

    Attributes
    protected
    Definition Classes
    Backend
  106. def pruneUnconnectedIOs: Unit

    Definition Classes
    Backend
  107. val regWritten: HashSet[Node]

    Attributes
    protected[this]
  108. def removeTypeNodes(mod: Module): Int

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

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

    Definition Classes
    Backend
  109. def renameNodes(nodes: Seq[Node], sep: String = "_"): Unit

    Ensures each node such that it has a unique name across the whole hierarchy by prefixing its name by a component path (except for "reset" and all nodes in *c*).

    Ensures each node such that it has a unique name across the whole hierarchy by prefixing its name by a component path (except for "reset" and all nodes in *c*).

    Definition Classes
    Backend
  110. def run(cmd: String): Boolean

    Definition Classes
    FileSystemUtilities
  111. val shadowRegisterInObject: Boolean

    Attributes
    protected[this]
  112. def sortComponents: Unit

    Definition Classes
    Backend
  113. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  114. def toString(): String

    Definition Classes
    AnyRef → Any
  115. def topMod: Module

    Definition Classes
    Backend
  116. val transforms: ArrayBuffer[(Module) ⇒ Unit]

    Definition Classes
    Backend
  117. def trunc(x: Node): String

  118. val unconnectedInputs: HashSet[Node]

    Attributes
    protected[this]
  119. val unconnectedInputsInObject: Boolean

    Attributes
    protected[this]
  120. val unoptimizedFiles: HashSet[String]

    Attributes
    protected[this]
  121. def verifyAllMuxes: Unit

    Definition Classes
    Backend
  122. def verifyComponents: Unit

    Definition Classes
    Backend
  123. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  126. def wordMangle(x: Node, w: Int): String

    Attributes
    protected[this]
  127. def wordMangle(x: Node, w: String): String

    Attributes
    protected[this]
  128. def words(node: Node): Int

    Attributes
    protected[this]

Inherited from Backend

Inherited from FileSystemUtilities

Inherited from AnyRef

Inherited from Any

Ungrouped