From 669fb1a333ad5f2235b72d09a6d25b87f220d0cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20J=C3=B6rdens?= Date: Thu, 28 Oct 2021 10:47:18 +0000 Subject: [PATCH] brute force only netxpnr --- fastino_phy.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/fastino_phy.py b/fastino_phy.py index 068eee4..29a5455 100644 --- a/fastino_phy.py +++ b/fastino_phy.py @@ -230,13 +230,13 @@ def __init__(self, platform): if __name__ == "__main__": from fastino import Platform - for seed in range(1, 10): - print("Seed: {}".format(seed)) - platform = Platform() - platform.toolchain.nextpnr_build_template[1] = "nextpnr-ice40 {pnr_pkg_opts} --pcf {build_name}.pcf --json {build_name}.json --asc {build_name}.txt --pre-pack {build_name}_pre_pack.py --seed %i" % seed - fastino = Fastino(platform) - try: - platform.build(fastino, build_name="fastino") - break - except: - continue + platform = Platform() + platform.toolchain.nextpnr_build_template[1:2] = [ + "for seed in `seq 1 10`; do", + "echo Seed $seed", + ("nextpnr-ice40 {pnr_pkg_opts} --pcf {build_name}.pcf --json {build_name}.json " + "--asc {build_name}.txt --pre-pack {build_name}_pre_pack.py --seed $seed && break"), + "done" + ] + fastino = Fastino(platform) + platform.build(fastino, build_name="fastino")