summaryrefslogtreecommitdiff
path: root/src/test/scala/cookbook/RegOfVec.scala
diff options
context:
space:
mode:
authorducky2018-01-19 19:19:43 -0800
committerRichard Lin2018-01-19 21:39:36 -0800
commit70ca35b9d7b3884e5f701d49bc5286f89701fd14 (patch)
tree018a4d886b146e326c7dbabf51056a71dd6ccd7d /src/test/scala/cookbook/RegOfVec.scala
parent6b277ff0c3266e9b02fe9b483086ab46085202ce (diff)
Fix deprecations in tests
Diffstat (limited to 'src/test/scala/cookbook/RegOfVec.scala')
-rw-r--r--src/test/scala/cookbook/RegOfVec.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/scala/cookbook/RegOfVec.scala b/src/test/scala/cookbook/RegOfVec.scala
index ba784871..fee7f2e1 100644
--- a/src/test/scala/cookbook/RegOfVec.scala
+++ b/src/test/scala/cookbook/RegOfVec.scala
@@ -19,7 +19,7 @@ class RegOfVec extends CookbookTester(2) {
// Note that Seq.fill constructs 4 32-bit UInt literals with the value 0
// Vec(...) then constructs a Wire of these literals
// The Reg is then initialized to the value of the Wire (which gives it the same type)
- val initRegOfVec = RegInit(Vec(Seq.fill(4)(0.U(32.W))))
+ val initRegOfVec = RegInit(VecInit(Seq.fill(4)(0.U(32.W))))
// Simple test (cycle comes from superclass)
when (cycle === 2.U) { assert(regOfVec(2) === 123.U) }