1
0

ioDecoupled now allows inner bundle to be used in covariant positions, i.e. it accepts subtypes

This commit is contained in:
Henry Cook 2012-02-29 12:29:33 -08:00
parent c38065d0e8
commit c723ef4c50

View File

@ -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)