diff options
| author | Jack Koenig | 2020-11-03 14:51:58 -0800 |
|---|---|---|
| committer | GitHub | 2020-11-03 22:51:58 +0000 |
| commit | 679dd54a8e0d65524b782459b64a10e0d91e3a9d (patch) | |
| tree | 79008857bd9711660c420ba4955bb3a34d4db58f /src | |
| parent | 7053848724b86d8a1ae4bf00ab416e0aaa35e3f9 (diff) | |
Remove Data.setRef assertion (#1654)
It causes issues for some legal (if awkward) patterns. A larger refactor
of when refs are set could reinstate this check.
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/scala/chiselTests/BundleSpec.scala | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/scala/chiselTests/BundleSpec.scala b/src/test/scala/chiselTests/BundleSpec.scala index 625c0b5b..df02aa20 100644 --- a/src/test/scala/chiselTests/BundleSpec.scala +++ b/src/test/scala/chiselTests/BundleSpec.scala @@ -128,4 +128,17 @@ class BundleSpec extends ChiselFlatSpec with BundleSpecUtils with Utils { } } }).getMessage should include("aliased fields") } + + "Unbound bundles sharing a field" should "not error" in { + ChiselStage.elaborate { + new RawModule { + val foo = new Bundle { + val x = UInt(8.W) + } + val bar = new Bundle { + val y = foo.x + } + } + } + } } |
