Skip to content

Commit 3a8e612

Browse files
committed
Initialize delay elements (manually).
1 parent d537e0c commit 3a8e612

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

solutions/VecShiftRegister.scala

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ class VecShiftRegister extends Module {
2727
class VecShiftRegisterTests(c: VecShiftRegister) extends Tester(c) {
2828
val reg = Array.fill(4){ 0 }
2929
val ins = Array.fill(4){ 0 }
30+
// Initialize the delays.
31+
for (i <- 0 until 4)
32+
poke(c.io.ins(i), 0)
33+
poke(c.io.load, 1)
34+
step(1)
35+
3036
for (t <- 0 until 16) {
3137
for (i <- 0 until 4)
3238
ins(i) = rnd.nextInt(16)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy