Skip to content

Commit 451a321

Browse files
committed
Merge pull request #35 from ucb-bar/fixcheckunstable
Fixcheckunstable
2 parents ff15687 + 3a8e612 commit 451a321

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

sbt/check

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ def main(args, junit_file):
1616
test_status = 'FAILED'
1717
test_time = 0
1818
for line in outfile.readlines():
19-
look = re.match('(PASSED|FAILED)', line)
19+
look = re.match(r'RAN \d+ CYCLES (PASSED)|(FAILED)', line)
2020
if look:
2121
test_status = look.group(1)
22-
look = re.match('.*Total time: (\S+) s,', line)
22+
look = re.match(r'.*Total time: (\S+) s,', line)
2323
if look:
2424
test_time = int(look.group(1))
2525
if test_status != 'PASSED':

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