ioDecoupled now allows inner bundle to be used in covariant positions, i.e. it accepts subtypes
This commit is contained in:
parent
c38065d0e8
commit
c723ef4c50
@ -166,14 +166,7 @@ class Mux1H [T <: Data](n: Int)(gen: => T) extends Component
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
class ioDecoupled[+T <: Data]()(data: => T) extends Bundle
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class ioDecoupled[T <: Data]()(data: => T) extends Bundle
|
|
||||||
{
|
{
|
||||||
val valid = Bool(INPUT)
|
val valid = Bool(INPUT)
|
||||||
val ready = Bool(OUTPUT)
|
val ready = Bool(OUTPUT)
|
||||||
|
Loading…
Reference in New Issue
Block a user