From c6e8b6930c64125c398fd4f51651a0dd981c7457 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Th=C3=B6rnblad?= Date: Mon, 21 Oct 2024 13:36:59 +0200 Subject: [PATCH] Add place and route script Run multiple threads of nextpnr-ice40 to find a seed that gives a layout that meets timing. --- hw/application_fpga/tools/run_pnr.sh | 238 +++++++++++++++++++++++++++ 1 file changed, 238 insertions(+) create mode 100755 hw/application_fpga/tools/run_pnr.sh diff --git a/hw/application_fpga/tools/run_pnr.sh b/hw/application_fpga/tools/run_pnr.sh new file mode 100755 index 0000000..3c069d1 --- /dev/null +++ b/hw/application_fpga/tools/run_pnr.sh @@ -0,0 +1,238 @@ +#!/bin/bash + +help() { + echo "Usage: $(basename $0) [OPTION]" + echo "Run multiple place and route threads with nextpnr-ice40" + echo "" + echo " --debug Debugging mode, output all data from nextpnr-ice40" + echo " --help Help, display this help and exit" + echo " --freq Set target frequency for design in MHz (might be overridden from value in synthesis file)" + echo " --log-file Set log output filename (default: $LOG_FILE)" + echo " --out-file Set place and route output filename (default: $OUT_FILE)" + echo " --package Set package type (default: $PACKAGE)" + echo " --pin-file Set pin file to use (default: $PIN_FILE)" + echo " --synth-file Set synthesis file to use (default: $SYNTH_FILE)" + echo " --timeout '