We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da50a45 commit ff15687Copy full SHA for ff15687
solutions/VecShiftRegisterSimple.scala
@@ -7,7 +7,7 @@ class VecShiftRegisterSimple extends Module {
7
val in = UInt(INPUT, 8)
8
val out = UInt(OUTPUT, 8)
9
}
10
- val delays = Vec.fill(4){ Reg(UInt(width = 8)) }
+ val delays = Vec.fill(4){ Reg(UInt(width = 8), init=UInt(0)) }
11
delays(0) := io.in
12
delays(1) := delays(0)
13
delays(2) := delays(1)
0 commit comments