summaryrefslogtreecommitdiff
path: root/chiselFrontend/src/main/scala/chisel3/RawModule.scala
diff options
context:
space:
mode:
Diffstat (limited to 'chiselFrontend/src/main/scala/chisel3/RawModule.scala')
-rw-r--r--chiselFrontend/src/main/scala/chisel3/RawModule.scala6
1 files changed, 4 insertions, 2 deletions
diff --git a/chiselFrontend/src/main/scala/chisel3/RawModule.scala b/chiselFrontend/src/main/scala/chisel3/RawModule.scala
index 2b184a50..ae3b6fe7 100644
--- a/chiselFrontend/src/main/scala/chisel3/RawModule.scala
+++ b/chiselFrontend/src/main/scala/chisel3/RawModule.scala
@@ -49,8 +49,10 @@ abstract class RawModule(implicit moduleCompileOptions: CompileOptions)
" name is already taken by another port!")
}
port.setRef(ModuleIO(this, _namespace.name(name)))
- case None => Builder.error(s"Unable to name port $port in $this, " +
- "try making it a public field of the Module")
+ case None =>
+ Builder.error(s"Unable to name port $port in $this, " +
+ "try making it a public field of the Module")
+ port.setRef(ModuleIO(this, "<UNNAMED>"))
}
}
}