Wire

chisel3.Wire
object Wire extends WireFactory

Utility for constructing hardware wires

The width of a Wire (inferred or not) is copied from the type template

val w0 = Wire(UInt()) // width is inferred
val w1 = Wire(UInt(8.W)) // width is set to 8

val w2 = Wire(Vec(4, UInt())) // width is inferred
val w3 = Wire(Vec(4, UInt(8.W))) // width of each element is set to 8

class MyBundle {
 val unknown = UInt()
 val known   = UInt(8.W)
}
val w4 = Wire(new MyBundle)
// Width of w4.unknown is inferred
// Width of w4.known is set to 8

Attributes

Source
Data.scala
Graph
Supertypes
trait WireFactory
class Object
trait Matchable
class Any
Self type
Wire.type

Members list

Value members

Inherited methods

def apply[T <: Data](source: => T)(implicit sourceInfo: SourceInfo): T

Construct a Wire from a type template

Construct a Wire from a type template

Value parameters

t

The template from which to construct this wire

Attributes

Inherited from:
WireFactory
Source
Data.scala