diff options
| author | Jack Koenig | 2021-10-05 13:20:28 -0700 |
|---|---|---|
| committer | GitHub | 2021-10-05 20:20:28 +0000 |
| commit | c2985aa6ef95a45d6ce9663a17f835eaba0cb9c5 (patch) | |
| tree | 034269cbfe96292648e43ac597ea2ff972f82604 /core/src/main/scala/chisel3/RawModule.scala | |
| parent | 110705eeace4f9165dc6377e55c86a599f37a465 (diff) | |
Fix naming of unwrapped val io in Chisel.Modules (#2150)
The removal of virtual method io accidentally made the naming of io in
compatibility mode Bundles sensitive to the prefix at the time of the
first access of the field. It also made .suggestName able to override
the name. This commit fixes that issue by forcing the name of the io
Data to be "io" no matter what.
Diffstat (limited to 'core/src/main/scala/chisel3/RawModule.scala')
| -rw-r--r-- | core/src/main/scala/chisel3/RawModule.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/scala/chisel3/RawModule.scala b/core/src/main/scala/chisel3/RawModule.scala index f1b4c1cf..c001772b 100644 --- a/core/src/main/scala/chisel3/RawModule.scala +++ b/core/src/main/scala/chisel3/RawModule.scala @@ -199,7 +199,7 @@ package object internal { tryJavaReflect .orElse(tryScalaReflect) - .map(_.autoSeed("io")) + .map(_.forceFinalName("io")) .orElse { // Fallback if reflection fails, user can wrap in IO(...) self.findPort("io") |
