diff options
author | David Shah <davey1576@gmail.com> | 2018-07-25 15:49:43 +0200 |
---|---|---|
committer | David Shah <davey1576@gmail.com> | 2018-07-25 15:49:43 +0200 |
commit | 1529fbe58c825ed04479b98f2c7403adadd4c2f5 (patch) | |
tree | 1bb573857331e347dbbbeb10855d158379c9a486 | |
parent | 3f2e7d9916dd154fa73106c2e5306ad4b9fc8127 (diff) | |
download | nextpnr-1529fbe58c825ed04479b98f2c7403adadd4c2f5.tar.gz nextpnr-1529fbe58c825ed04479b98f2c7403adadd4c2f5.tar.bz2 nextpnr-1529fbe58c825ed04479b98f2c7403adadd4c2f5.zip |
ice40: Tweaking picorv32_benchmark.py
Signed-off-by: David Shah <davey1576@gmail.com>
-rwxr-xr-x | ice40/picorv32_benchmark.py | 3 |
1 files changed, 1 insertions, 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: |