Skip to content

Commit 0cc9e8f

Browse files
pranithedwardcwang
authored andcommitted
solutions/VecShiftRegisterParam: Use parameter for initialization (#116)
1 parent 2827cb9 commit 0cc9e8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/solutions/VecShiftRegisterParam.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class VecShiftRegisterParam(val n: Int, val w: Int) extends Module {
1515
val out = Output(UInt(w.W))
1616
})
1717

18-
val initValues = Seq.fill(n) { 0.U(8.W) }
18+
val initValues = Seq.fill(n) { 0.U(w.W) }
1919
val delays = RegInit(Vec(initValues))
2020

2121
for (i <- n-1 to 1 by -1) {

0 commit comments

Comments
 (0)