diff options
| author | Jack Koenig | 2020-02-19 10:12:15 -0800 |
|---|---|---|
| committer | GitHub | 2020-02-19 18:12:15 +0000 |
| commit | aac6e175645960b65eace70d16d0e4df523e0327 (patch) | |
| tree | 55472fd82b8e23d44c9c702428bbf5976297ec53 | |
| parent | d183168f610bfe9366a26ab037b7c7f587e7eccf (diff) | |
Patch fix #1109 (#1346)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
| -rw-r--r-- | chiselFrontend/src/main/scala/chisel3/RawModule.scala | 6 |
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>")) } } } |
