summaryrefslogtreecommitdiff
path: root/core/src/main/scala/chisel3/Data.scala
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/main/scala/chisel3/Data.scala')
-rw-r--r--core/src/main/scala/chisel3/Data.scala9
1 files changed, 4 insertions, 5 deletions
diff --git a/core/src/main/scala/chisel3/Data.scala b/core/src/main/scala/chisel3/Data.scala
index 6b514e21..73b8e8c8 100644
--- a/core/src/main/scala/chisel3/Data.scala
+++ b/core/src/main/scala/chisel3/Data.scala
@@ -602,8 +602,8 @@ abstract class Data extends HasId with NamedComponent {
private[chisel3] def bulkConnect(
that: Data
): Unit = {
- requireIsHardware(this, s"data to be bulk-connected")
- requireIsHardware(that, s"data to be bulk-connected")
+ // requireIsHardware(this, s"data to be bulk-connected")
+ // requireIsHardware(that, s"data to be bulk-connected")
(this.topBinding, that.topBinding) match {
case (_: ReadOnlyBinding, _: ReadOnlyBinding) => throwException(s"Both $this and $that are read-only")
// DontCare cannot be a sink (LHS)
@@ -700,7 +700,6 @@ abstract class Data extends HasId with NamedComponent {
}
private[chisel3] def width: Width
- private[chisel3] def legacyConnect(that: Data): Unit
/** Internal API; Chisel users should look at chisel3.chiselTypeOf(...).
*
@@ -720,7 +719,7 @@ abstract class Data extends HasId with NamedComponent {
val clone = this.cloneType.asInstanceOf[this.type] // get a fresh object, without bindings
// Only the top-level direction needs to be fixed up, cloneType should do the rest
clone.specifiedDirection = specifiedDirection
- clone
+ clone.asInstanceOf[this.type]
}
/** Connect this $coll to that $coll mono-directionally and element-wise.
@@ -1069,7 +1068,7 @@ final case object DontCare extends Element {
Builder.error("connectFromBits: DontCare cannot be a connection sink (LHS)")
}
- def do_asUInt: UInt = {
+ def asUInt: UInt = {
Builder.error("DontCare does not have a UInt representation")
0.U
}