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
- Self type
-
Wire.type
Members list
In this article