Skip to content

Commit 3c604c0

Browse files
committed
Small fix to proginfo. Adjust indent
1 parent c8e0a51 commit 3c604c0

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

proginfo/proginfo.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@ def main():
2222

2323
# Utility Functions
2424

25-
def findFile(f):
25+
def findFile(f, filter=""):
2626
r = glob.glob("../**/" + f, recursive=True)
27+
if filter != "":
28+
r = [s for s in r if filter in s]
2729
if not r:
2830
print("ERROR: Could not find file " + f)
2931
exit(1)

src/test/scala/CPUSingleCycleInstructionSpec.scala

+3-3
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ class CPUSingleCycleInstructionSpec
6969

7070
it should "validate ADD/ADDI instructions" in {
7171
val prog = """
72-
addi x1, x1, 1
73-
addi x2, x2, 1
74-
add x3, x1, x2
72+
addi x1, x1, 1
73+
addi x2, x2, 1
74+
add x3, x1, x2
7575
"""
7676
defaultDut(prog) { c =>
7777
c.clock.setTimeout(0)

0 commit comments

Comments
 (0)