Skip to content

Commit

Permalink
brute force only netxpnr
Browse files Browse the repository at this point in the history
  • Loading branch information
jordens committed Oct 28, 2021
1 parent 3fac86b commit 669fb1a
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions fastino_phy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

0 comments on commit 669fb1a

Please sign in to comment.