File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -16,10 +16,10 @@ def main(args, junit_file):
16
16
test_status = 'FAILED'
17
17
test_time = 0
18
18
for line in outfile .readlines ():
19
- look = re .match (' (PASSED| FAILED)' , line )
19
+ look = re .match (r'RAN \d+ CYCLES (PASSED)|( FAILED)' , line )
20
20
if look :
21
21
test_status = look .group (1 )
22
- look = re .match ('.*Total time: (\S+) s,' , line )
22
+ look = re .match (r '.*Total time: (\S+) s,' , line )
23
23
if look :
24
24
test_time = int (look .group (1 ))
25
25
if test_status != 'PASSED' :
Original file line number Diff line number Diff line change @@ -27,6 +27,12 @@ class VecShiftRegister extends Module {
27
27
class VecShiftRegisterTests (c : VecShiftRegister ) extends Tester (c) {
28
28
val reg = Array .fill(4 ){ 0 }
29
29
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
+
30
36
for (t <- 0 until 16 ) {
31
37
for (i <- 0 until 4 )
32
38
ins(i) = rnd.nextInt(16 )
You can’t perform that action at this time.
0 commit comments