diff options
| author | Jack Koenig | 2020-02-12 14:59:56 -0800 |
|---|---|---|
| committer | GitHub | 2020-02-12 22:59:56 +0000 |
| commit | bcad26c3fd9b9afdf9b27b0d489fec4e910d3d44 (patch) | |
| tree | b1d3771e9b337f7d684cc66b057f74ae693b544f /chiselFrontend/src/main/scala | |
| parent | ebef7f597b7e127652403d46b96f8d16360738fd (diff) | |
Fix := of Reset and AsyncReset to DontCare (#1336)
Diffstat (limited to 'chiselFrontend/src/main/scala')
| -rw-r--r-- | chiselFrontend/src/main/scala/chisel3/Bits.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chiselFrontend/src/main/scala/chisel3/Bits.scala b/chiselFrontend/src/main/scala/chisel3/Bits.scala index 96eb74a4..43c34d9d 100644 --- a/chiselFrontend/src/main/scala/chisel3/Bits.scala +++ b/chiselFrontend/src/main/scala/chisel3/Bits.scala @@ -989,7 +989,7 @@ final class ResetType(private[chisel3] val width: Width = Width(1)) extends Elem this.getClass == that.getClass override def connect(that: Data)(implicit sourceInfo: SourceInfo, connectCompileOptions: CompileOptions): Unit = that match { - case _: Reset => super.connect(that)(sourceInfo, connectCompileOptions) + case _: Reset | DontCare => super.connect(that)(sourceInfo, connectCompileOptions) case _ => super.badConnect(that)(sourceInfo) } @@ -1036,7 +1036,7 @@ sealed class AsyncReset(private[chisel3] val width: Width = Width(1)) extends El this.getClass == that.getClass override def connect(that: Data)(implicit sourceInfo: SourceInfo, connectCompileOptions: CompileOptions): Unit = that match { - case _: AsyncReset => super.connect(that)(sourceInfo, connectCompileOptions) + case _: AsyncReset | DontCare => super.connect(that)(sourceInfo, connectCompileOptions) case _ => super.badConnect(that)(sourceInfo) } |
