From c723ef4c50e2baa3c0f9876c2b140718ff9999e8 Mon Sep 17 00:00:00 2001 From: Henry Cook Date: Wed, 29 Feb 2012 12:29:33 -0800 Subject: [PATCH] ioDecoupled now allows inner bundle to be used in covariant positions, i.e. it accepts subtypes --- rocket/src/main/scala/util.scala | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/rocket/src/main/scala/util.scala b/rocket/src/main/scala/util.scala index 23209a4f..c6d6aa09 100644 --- a/rocket/src/main/scala/util.scala +++ b/rocket/src/main/scala/util.scala @@ -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 ready = Bool(OUTPUT)