Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Documents-only replay of036c1aded(bfccc26ed4) for the box mirror master
14 lines
1.3 KiB
Bash
Executable file
14 lines
1.3 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
# synthrow.sh <design-nickname> [cycles-short] [cycles-long] : the synthesis-only power row for a design whose
|
|
# ORFS synthesis has already run (1_2_yosys.v and 1_synth.odb present): gate-level sim at two run lengths, then
|
|
# OpenSTA power on the synthesised netlist (no wires). Every step under the lease tool when present.
|
|
set -euo pipefail
|
|
name=$1; cs=${2:-150}; cl=${3:-600}
|
|
cd "$(dirname "$0")/.."
|
|
WORK=$(pwd); top=$(sed -n "s/^$name \([^ ]*\) .*/\1/p" flow/designs.txt)
|
|
UG=$(id -u):$(id -g)
|
|
if [ -x /srv/builds/_bin/lease ]; then L="/srv/builds/_bin/lease pool 8 --label floor-k-synthrow-$name --owner floor-k --nice 19 --"; else L=""; fi
|
|
$L docker run --rm -u $UG -e HOME=/tmp -e NET=1_2_yosys.v -v $WORK:/work -w /work orfs-sim:latest bash /work/flow/gl2sim.sh $name $top
|
|
$L docker run --rm -u $UG -e HOME=/tmp -v $WORK:/work -w /work orfs-sim:latest bash /work/flow/sim.sh $name s$cs +cycles=$cs
|
|
$L docker run --rm -u $UG -e HOME=/tmp -v $WORK:/work -w /work orfs-sim:latest bash /work/flow/sim.sh $name s$cl +cycles=$cl
|
|
$L docker run --rm -u $UG -e HOME=/tmp -e NUM_CORES=8 -v $WORK:/work -w /OpenROAD-flow-scripts/flow openroad/orfs:latest make DESIGN_CONFIG=/work/flow/$name.mk RUN_SCRIPT=/work/flow/power.tcl RUN_LOG_NAME_STEM=power_synth FLOORK_ODB=1_synth.odb FLOORK_SDC=1_synth.sdc run
|