-
Notifications
You must be signed in to change notification settings - Fork 592
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -217,7 +217,7 @@ abstract class BaseModule extends HasId { | |
* TODO(twigg): Specifically walk the Data definition to call out which nodes | ||
* are problematic. | ||
*/ | ||
protected def IO[T<:Data](iodef: T): iodef.type = { | ||
protected def IO[T<:Data](iodef: T): T = { | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
jackkoenig
Author
Contributor
|
||
require(!_closed, "Can't add more ports after module close") | ||
requireIsChiselType(iodef, "io type") | ||
|
||
|
IO is actually returning iodef so iodef.type was more precise here.