CloneModuleAsRecord

chisel3.experimental.`package`.CloneModuleAsRecord

Attributes

Source
package.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply(proto: BaseModule)(implicit sourceInfo: SourceInfo): ClonePorts

Clones an existing module and returns a record of all its top-level ports. Each element of the record is named with a string matching the corresponding port's name and shares the port's type.

Clones an existing module and returns a record of all its top-level ports. Each element of the record is named with a string matching the corresponding port's name and shares the port's type.

Attributes

Example
val q1 = Module(new Queue(UInt(32.W), 2))
val q2_io = CloneModuleAsRecord(q1)("io").asInstanceOf[q1.io.type]
q2_io.enq <> q1.io.deq
Source
package.scala