We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 29a4c4c commit e893b42Copy full SHA for e893b42
1 file changed
tests/test_yosys.py
@@ -14,6 +14,9 @@ def run_yosys(dlist):
14
# Generic synthesis
15
proc; opt; flatten; opt
16
17
+# Get stats
18
+stat
19
+
20
# Write synthesized netlist in Verilog
21
write_verilog {{ netlist }}
22
"""
@@ -46,8 +49,13 @@ def run_yosys(dlist):
46
49
script = f"{name}.ys"
47
50
with open(script, 'w') as f:
48
51
f.write(output)
- # run
- subprocess.run(["yosys", "-s", script], check=True)
52
+ # get results
53
+ result = subprocess.run(["yosys", "-s", script],
54
+ check=True,
55
+ capture_output=True,
56
+ text=True)
57
+ #grab stats here if you like
58
+ #print(result)
59
60
def test_yosys_basic():
61
run_yosys(common.basic_list)
0 commit comments