diff options
| author | Jack Koenig | 2018-07-10 18:34:59 -0700 |
|---|---|---|
| committer | GitHub | 2018-07-10 18:34:59 -0700 |
| commit | 61810bc68020e087f9464c9eceb574ed2127e44b (patch) | |
| tree | d8a4389793925558ac7c5efd146ae08316b0f35c /chiselFrontend/src/main/scala/chisel3/core/Bits.scala | |
| parent | 9591d690f5a3d71fd5de7a0fb2d67a63e8079f48 (diff) | |
Fix use of read-only refs on rhs of connect in compatibility mode (#854)
Diffstat (limited to 'chiselFrontend/src/main/scala/chisel3/core/Bits.scala')
| -rw-r--r-- | chiselFrontend/src/main/scala/chisel3/core/Bits.scala | 4 |
1 files changed, 2 insertions, 2 deletions
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)) } } } |
