summaryrefslogtreecommitdiff
path: root/chiselFrontend
diff options
context:
space:
mode:
authorJack Koenig2018-07-10 18:34:59 -0700
committerGitHub2018-07-10 18:34:59 -0700
commit61810bc68020e087f9464c9eceb574ed2127e44b (patch)
treed8a4389793925558ac7c5efd146ae08316b0f35c /chiselFrontend
parent9591d690f5a3d71fd5de7a0fb2d67a63e8079f48 (diff)
Fix use of read-only refs on rhs of connect in compatibility mode (#854)
Diffstat (limited to 'chiselFrontend')
-rw-r--r--chiselFrontend/src/main/scala/chisel3/core/Aggregate.scala4
-rw-r--r--chiselFrontend/src/main/scala/chisel3/core/Bits.scala4
2 files changed, 4 insertions, 4 deletions
diff --git a/chiselFrontend/src/main/scala/chisel3/core/Aggregate.scala b/chiselFrontend/src/main/scala/chisel3/core/Aggregate.scala
index b1e86ea7..3dbce379 100644
--- a/chiselFrontend/src/main/scala/chisel3/core/Aggregate.scala
+++ b/chiselFrontend/src/main/scala/chisel3/core/Aggregate.scala
@@ -77,9 +77,9 @@ sealed abstract class Aggregate extends Data {
// If the source is a DontCare, generate a DefInvalid for the sink,
// otherwise, issue a Connect.
if (that == DontCare) {
- pushCommand(DefInvalid(sourceInfo, this.lref))
+ pushCommand(DefInvalid(sourceInfo, Node(this)))
} else {
- pushCommand(BulkConnect(sourceInfo, this.lref, that.lref))
+ pushCommand(BulkConnect(sourceInfo, Node(this), Node(that)))
}
}
diff --git a/chiselFrontend/src/main/scala/chisel3/core/Bits.scala b/chiselFrontend/src/main/scala/chisel3/core/Bits.scala
index b67c3fe3..c3645700 100644
--- a/chiselFrontend/src/main/scala/chisel3/core/Bits.scala
+++ b/chiselFrontend/src/main/scala/chisel3/core/Bits.scala
@@ -36,9 +36,9 @@ abstract class Element(private[chisel3] val width: Width) extends Data {
// If the source is a DontCare, generate a DefInvalid for the sink,
// otherwise, issue a Connect.
if (that == DontCare) {
- pushCommand(DefInvalid(sourceInfo, this.lref))
+ pushCommand(DefInvalid(sourceInfo, Node(this)))
} else {
- pushCommand(Connect(sourceInfo, this.lref, that.ref))
+ pushCommand(Connect(sourceInfo, Node(this), that.ref))
}
}
}