From 1529fbe58c825ed04479b98f2c7403adadd4c2f5 Mon Sep 17 00:00:00 2001 From: David Shah Date: Wed, 25 Jul 2018 15:49:43 +0200 Subject: ice40: Tweaking picorv32_benchmark.py Signed-off-by: David Shah --- ice40/picorv32_benchmark.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ice40/picorv32_benchmark.py b/ice40/picorv32_benchmark.py index 9544db50..a4ec581e 100755 --- a/ice40/picorv32_benchmark.py +++ b/ice40/picorv32_benchmark.py @@ -7,7 +7,6 @@ import re num_runs = 8 if not path.exists("picorv32.json"): - os.remove("picorv32.json") subprocess.run(["wget", "https://raw.githubusercontent.com/cliffordwolf/picorv32/master/picorv32.v"], check=True) subprocess.run(["yosys", "-q", "-p", "synth_ice40 -json picorv32.json -top top", "picorv32.v", "picorv32_top.v"], check=True) @@ -23,7 +22,7 @@ for i in range(num_runs): ascfile = "picorv32_work/picorv32_s{}.asc".format(run) if path.exists(ascfile): os.remove(ascfile) - result = subprocess.run(["../nextpnr-ice40", "--hx8k", "--seed", str(run), "--json", "picorv32.json", "--asc", ascfile], stderr=subprocess.DEVNULL, stdout=subprocess.DEVNULL) + result = subprocess.run(["../nextpnr-ice40", "--hx8k", "--seed", str(run), "--json", "picorv32.json", "--asc", ascfile, "--freq", "70"], stderr=subprocess.DEVNULL, stdout=subprocess.DEVNULL) if result.returncode != 0: print("Run {} failed!".format(run)) else: -- cgit v1.2.3