HasCustomConnectable

chisel3.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 Object
trait Matchable
class Any
Self type

Members list

Value members

Abstract methods

def customConnectable[T <: Data](base: Connectable[T]): Connectable[T]

Attributes

Source
Data.scala