aboutsummaryrefslogtreecommitdiffstats
path: root/tests/xprop/test.py
diff options
context:
space:
mode:
authorJannis Harder <me@jix.one>2023-02-13 17:55:36 +0100
committerGitHub <noreply@github.com>2023-02-13 17:55:36 +0100
commitd2032ac6fd13ea22605d569e6f66b4590daab3a8 (patch)
tree51822f220c66734de988a1272a03b22676eebd56 /tests/xprop/test.py
parent4c334b905faa649f74c6341615a4848fbc40f77f (diff)
parent55ad3fe6c701607ce6b184d03241be38e894c2fd (diff)
downloadyosys-d2032ac6fd13ea22605d569e6f66b4590daab3a8.tar.gz
yosys-d2032ac6fd13ea22605d569e6f66b4590daab3a8.tar.bz2
yosys-d2032ac6fd13ea22605d569e6f66b4590daab3a8.zip
Merge pull request #3669 from jix/fix-xprop-tests-yosys-call
tests: Fix path of yosys invocation in xprop tests
Diffstat (limited to 'tests/xprop/test.py')
-rw-r--r--tests/xprop/test.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/xprop/test.py b/tests/xprop/test.py
index 84ad0a1f4..a275b0d93 100644
--- a/tests/xprop/test.py
+++ b/tests/xprop/test.py
@@ -47,7 +47,7 @@ if "clean" in steps:
def yosys(command):
- subprocess.check_call(["yosys", "-Qp", command])
+ subprocess.check_call(["../../../yosys", "-Qp", command])
def remove(file):
try:
@@ -275,7 +275,7 @@ if "prepare" in steps:
file=tb_file,
)
- print(" $finish;", file=tb_file)
+ print(" $finish(0);", file=tb_file)
print("end", file=tb_file)
print("endmodule", file=tb_file)
@@ -344,8 +344,8 @@ for mode in ["", "_xprop"]:
read_rtlil wrapped{mode}.il
chformal -remove
dffunmap
- write_verilog -noparallelcase vsim_expr{mode}.v
write_verilog -noexpr vsim_noexpr{mode}.v
+ write_verilog -noparallelcase vsim_expr{mode}.v
"""
)
@@ -357,15 +357,15 @@ for mode in ["", "_xprop"]:
"-DSIMLIB_FF",
"-DSIMLIB_GLOBAL_CLOCK=top.gclk",
f"-DDUMPFILE=\"vsim_{expr}.vcd\"",
+ "-o",
+ f"vsim_{expr}",
"verilog_sim_tb.v",
f"vsim_{expr}.v",
*simlibs,
- "-o",
- f"vsim_{expr}",
]
)
with open(f"vsim_{expr}.out", "w") as f:
- subprocess.check_call([f"./vsim_{expr}"], stdout=f)
+ subprocess.check_call(["vvp", f"./vsim_{expr}"], stdout=f)
for mode in ["", "_xprop"]:
if f"sim{mode}" not in steps: