summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/scala/chisel3/compatibility.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/scala/chisel3/compatibility.scala b/src/main/scala/chisel3/compatibility.scala
index b9357bbd..4223d63b 100644
--- a/src/main/scala/chisel3/compatibility.scala
+++ b/src/main/scala/chisel3/compatibility.scala
@@ -238,7 +238,7 @@ package object Chisel { // scalastyle:ignore package.object.name
this(Option(_clock), Option(_reset))(moduleCompileOptions)
override def _autoWrapPorts() = {
- if (!_ioPortBound()) {
+ if (!_ioPortBound() && io != null) {
IO(io)
}
}