diff options
| author | Jared Barocsi | 2021-07-28 14:53:04 -0700 |
|---|---|---|
| committer | GitHub | 2021-07-28 14:53:04 -0700 |
| commit | 0666933b3e902192ef57723a92b57d41d50b3f8e (patch) | |
| tree | f2fa2add2abc897b0cca458876bfd0adac80f0cd /core/src | |
| parent | e3d245e0bfaf164996fac655b2da0818e1ad37d0 (diff) | |
Bundles can no longer be instantiated with bound hardware (#2046)
Co-authored-by: Jack Koenig <koenig@sifive.com>
Diffstat (limited to 'core/src')
| -rw-r--r-- | core/src/main/scala/chisel3/Aggregate.scala | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/main/scala/chisel3/Aggregate.scala b/core/src/main/scala/chisel3/Aggregate.scala index 0031e53b..45ecec36 100644 --- a/core/src/main/scala/chisel3/Aggregate.scala +++ b/core/src/main/scala/chisel3/Aggregate.scala @@ -963,6 +963,8 @@ abstract class Bundle(implicit compileOptions: CompileOptions) extends Record { for (m <- getPublicFields(classOf[Bundle])) { getBundleField(m) match { case Some(d: Data) => + requireIsChiselType(d) + if (nameMap contains m.getName) { require(nameMap(m.getName) eq d) } else { |
