From bcad26c3fd9b9afdf9b27b0d489fec4e910d3d44 Mon Sep 17 00:00:00 2001 From: Jack Koenig Date: Wed, 12 Feb 2020 14:59:56 -0800 Subject: Fix := of Reset and AsyncReset to DontCare (#1336) --- chiselFrontend/src/main/scala/chisel3/Bits.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'chiselFrontend/src/main/scala') 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) } -- cgit v1.2.3