summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Lawson2017-07-07 13:00:47 -0700
committerGitHub2017-07-07 13:00:47 -0700
commit794812fc2f18767416c2d4c39605f4d8016cc4dc (patch)
tree2f60b9716e8d04de32e764a0018dae2223868550 /src
parentbb9bc4752b4d6d8f0ee05094431941a6ddde66d0 (diff)
Ensure IO is non-null before attempting to autoWrapPorts. (#643)
Diffstat (limited to 'src')
-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)
}
}