summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjackbackrack2015-04-30 21:39:45 -0700
committerjackbackrack2015-04-30 21:39:45 -0700
commitef0bfe99887e89c3ba526ce14ca80e2f3b11b93c (patch)
tree5b8e3123418624b7bb9f7b7bfa2d1352cbdc4b74
parentf9a2822aa0ed8d407324ab81e8b7ca5528a7c752 (diff)
pad only bits connects
-rw-r--r--src/main/scala/Core.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/scala/Core.scala b/src/main/scala/Core.scala
index bf6826ac..63cfe46e 100644
--- a/src/main/scala/Core.scala
+++ b/src/main/scala/Core.scala
@@ -371,7 +371,7 @@ object Reg {
if (init != null)
pushCommand(ConnectInit(x.lref, init.ref))
if (next != null)
- pushCommand(ConnectPad(x.lref, next.ref))
+ x := next
x
}
def apply[T <: Data](outType: T): T = Reg[T](outType, null.asInstanceOf[T], null.asInstanceOf[T])
@@ -409,7 +409,7 @@ object Vec {
pushCommand(DefWire(vec.defd.id, vec.toType))
var i = 0
for (elt <- elts) {
- pushCommand(ConnectPad(vec(i).lref, elt.ref))
+ vec(i) := elt
i += 1
}
}