summaryrefslogtreecommitdiff
path: root/core/src/main
diff options
context:
space:
mode:
authorJared Barocsi2021-07-28 14:53:04 -0700
committerGitHub2021-07-28 14:53:04 -0700
commit0666933b3e902192ef57723a92b57d41d50b3f8e (patch)
treef2fa2add2abc897b0cca458876bfd0adac80f0cd /core/src/main
parente3d245e0bfaf164996fac655b2da0818e1ad37d0 (diff)
Bundles can no longer be instantiated with bound hardware (#2046)
Co-authored-by: Jack Koenig <koenig@sifive.com>
Diffstat (limited to 'core/src/main')
-rw-r--r--core/src/main/scala/chisel3/Aggregate.scala2
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 {