HasCustomConnectable
chisel3.HasCustomConnectable
trait HasCustomConnectable
Trait to indicate that a subclass of Data has a custom Connectable.
Users can implement the customConnectable method, which receives a default Connectable, and is expected to use the methods on Connectable to customize it. For example, a Bundle could define this by using connectable.Connectable.exclude to always exlude a specific member:
class MyBundle extends Bundle with HasCustomConnectable {
val foo = Bool()
val bar = Bool()
override def customConnectable[T <: Data](base: Connectable[T]): Connectable[T] = {
base.exclude(_ => bar)
}
}
Attributes
- Source
- Data.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Members list
In this article