Skip to content

Commit 7e35e12

Browse files
committed
functional: in test, rely less on wreduce doing a perfect job
1 parent 34748cd commit 7e35e12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/functional/test_functional.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def compile_cpp(in_path, out_path, args):
2424
run(['g++', '-g', '-std=c++17'] + args + [str(in_path), '-o', str(out_path)])
2525

2626
def yosys_synth(verilog_file, rtlil_file):
27-
yosys(f"read_verilog {quote(verilog_file)} ; prep ; write_rtlil {quote(rtlil_file)}")
27+
yosys(f"read_verilog {quote(verilog_file)} ; prep ; setundef -undriven ; write_rtlil {quote(rtlil_file)}")
2828

2929
# simulate an rtlil file with yosys, comparing with a given vcd file, and writing out the yosys simulation results into a second vcd file
3030
def yosys_sim(rtlil_file, vcd_reference_file, vcd_out_file, preprocessing = ""):
@@ -91,4 +91,4 @@ def test_print_graph(tmp_path):
9191
tb_file = base_path / 'tests/functional/picorv32_tb.v'
9292
cpu_file = base_path / 'tests/functional/picorv32.v'
9393
# currently we only check that we can print the graph without getting an error, not that it prints anything sensibl
94-
yosys(f"read_verilog {quote(tb_file)} {quote(cpu_file)}; prep -top gold; flatten; clk2fflogic; test_generic")
94+
yosys(f"read_verilog {quote(tb_file)} {quote(cpu_file)}; prep -top gold; setundef -undriven ; flatten; clk2fflogic; test_generic")

0 commit comments

Comments
 (0)