Skip to content

Commit 6b9e12f

Browse files
committed
Merge branch 'pr-update-rules' of https://github.com/habibayassin/OpenROAD-flow-scripts into pr-update-rules
2 parents 5ca88a7 + 6834a25 commit 6b9e12f

File tree

15 files changed

+22
-99
lines changed

15 files changed

+22
-99
lines changed

.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,3 @@
44
[submodule "tools/OpenROAD"]
55
path = tools/OpenROAD
66
url = ../OpenROAD.git
7-
[submodule "tools/LSOracle"]
8-
path = tools/LSOracle
9-
url = ../../The-OpenROAD-Project/LSOracle.git

Dockerfile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ WORKDIR /OpenROAD-flow-scripts
55

66
# synthesis tools binaries and plugins
77
COPY --from=openroad/yosys /install ./tools/install/yosys
8-
COPY --from=openroad/lsoracle /LSOracle/build/core/lsoracle ./tools/build/LSOracle/bin/lsoracle
9-
COPY --from=openroad/lsoracle /LSOracle/core/test.ini ./tools/build/LSOracle/share/lsoracle/test.ini
10-
COPY --from=openroad/lsoracle /LSOracle/build/yosys-plugin/oracle.so /OpenROAD-flow/tools/build/yosys/share/yosys/plugins/
118

129
# openroad binary
1310
COPY --from=openroad/ubuntu22.04-builder-gcc /OpenROAD/build/src/openroad ./tools/install/OpenROAD/bin/openroad

build_openroad.sh

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,6 @@ YOSYS_ARGS="CONFIG=clang"
2525
OPENROAD_APP_USER_ARGS=""
2626
OPENROAD_APP_ARGS=""
2727

28-
LSORACLE_USER_ARGS=""
29-
LSORACLE_ARGS="\
30-
-D CMAKE_BUILD_TYPE=RELEASE \
31-
-D YOSYS_INCLUDE_DIR=$(pwd)/tools/yosys \
32-
-D YOSYS_PLUGIN=ON \
33-
"
34-
3528
DOCKER_OS_NAME="ubuntu22.04"
3629
PROC=-1
3730

@@ -43,7 +36,6 @@ Usage: $0 [-h|--help] [-o|--local] [-l|--latest]
4336
[-n|--nice] [-t|--threads N]
4437
[--yosys-args-overwrite] [--yosys-args STRING]
4538
[--openroad-args-overwrite] [--openroad-args STRING]
46-
[--lsoracle-args-overwrite] [--lsoracle-args STRING]
4739
[--install-path PATH] [--clean] [--clean-force]
4840
4941
[-c|--copy-platforms]
@@ -79,16 +71,6 @@ Options:
7971
--openroad-args STRING Aditional compilation flags for OpenROAD app
8072
compilation.
8173
82-
--lsoracle-enable Compile LSOracle. Disable by default as it is not
83-
currently used on the flow.
84-
85-
--lsoracle-args-overwrite
86-
Do not use default flags set by this script during
87-
LSOracle compilation.
88-
89-
--lsoracle-args STRING Aditional compilation flags for LSOracle
90-
compilation.
91-
9274
--install-path PATH Path to install tools. Default is ${INSTALL_PATH}.
9375
9476
--clean Call git clean interactively before compile.
@@ -159,16 +141,6 @@ while (( "$#" )); do
159141
OPENROAD_APP_USER_ARGS="$2"
160142
shift
161143
;;
162-
--lsoracle-enable)
163-
LSORACLE_ENABLE=1
164-
;;
165-
--lsoracle-args-overwrite)
166-
LSORACLE_OVERWIRTE_ARGS=1
167-
;;
168-
--lsoracle-args)
169-
LSORACLE_USER_ARGS="$2"
170-
shift
171-
;;
172144
--install-path)
173145
INSTALL_PATH="$2"
174146
shift
@@ -215,10 +187,6 @@ if [ -n "$CMAKE_INSTALL_RPATH" ]; then
215187
OPENROAD_APP_ARGS+=" -D CMAKE_INSTALL_RPATH=${CMAKE_INSTALL_RPATH}"
216188
OPENROAD_APP_ARGS+=" -D CMAKE_INSTALL_RPATH_USE_LINK_PATH=TRUE"
217189
fi
218-
LSORACLE_ARGS+=" \
219-
-D YOSYS_SHARE_DIR=${INSTALL_PATH}/yosys/share/yosys \
220-
-D CMAKE_INSTALL_PREFIX=${INSTALL_PATH}/LSOracle \
221-
"
222190

223191
__args_setup() {
224192
if [ ! -z "${YOSYS_OVERWIRTE_ARGS+x}" ]; then
@@ -234,13 +202,6 @@ __args_setup() {
234202
else
235203
OPENROAD_APP_ARGS+=" ${OPENROAD_APP_USER_ARGS}"
236204
fi
237-
238-
if [ ! -z "${LSORACLE_OVERWIRTE_ARGS+x}" ]; then
239-
echo "[INFO FLW-0016] Overwriting LSOracle compilation flags."
240-
LSORACLE_ARGS="${LSORACLE_USER_ARGS}"
241-
else
242-
LSORACLE_ARGS+=" ${LSORACLE_USER_ARGS}"
243-
fi
244205
}
245206

246207
__docker_build()
@@ -287,12 +248,6 @@ __local_build()
287248
echo "[INFO FLW-0018] Compiling OpenROAD."
288249
eval ${NICE} cmake tools/OpenROAD -B tools/OpenROAD/build ${OPENROAD_APP_ARGS}
289250
${NICE} cmake --build tools/OpenROAD/build --target install -j "${PROC}"
290-
291-
if [ ! -z "${LSORACLE_ENABLE+x}" ]; then
292-
echo "[INFO FLW-0019] Compiling LSOracle."
293-
${NICE} cmake tools/LSOracle -B tools/LSOracle/build ${LSORACLE_ARGS}
294-
${NICE} cmake --build tools/LSOracle/build --target install -j "${PROC}"
295-
fi
296251
}
297252

298253
__update_openroad_app_remote()

docs/index.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,6 @@ Options for `./build_openroad.sh` script
9191
| `--yosys-args STRING` | Aditional compilation flags for Yosys compilation. |
9292
| `--openroad-args-overwrite` | Do not use default flags set by this script during OpenROAD app compilation. |
9393
| `--openroad-args STRING` | Aditional compilation flags for OpenROAD app compilation. |
94-
| `--lsoracle-enable` | Compile LSOracle. Disable by default as it is not currently used on the flow. |
95-
| `--lsoracle-args-overwrite` | Do not use default flags set by this scrip during LSOracle compilation. |
96-
| `--lsoracle-args STRING` | Aditional compilation flags for LSOracle compilation. |
9794
| `--install-path PATH` | Path to install tools. Default is `${INSTALL_PATH}`. |
9895
| `--clean` | Call git clean interactively before compile. Useful to remove old build files. |
9996
| `--clean-force` | Call git clean before compile. WARNING: this option will not ask for confirmation. Useful to remove old build files. |

docs/user/FlowVariables.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ Note:
144144
| `IO_PLACER_H` | The metal layer on which to place the I/O pins horizontally (top and bottom of the die). |
145145
| `IO_PLACER_V` | The metal layer on which to place the I/O pins vertically (sides of the die). |
146146
| `GUI_NO_TIMING` | Skip loading timing for a faster GUI load. |
147+
| `GUI_SOURCE` | Source the script. |
148+
| `GUI_ARGS` | OpenROAD command line options for gui_ and open_ targets, typically set tup `-exit` in combination with GUI_SOURCE to run a script and exit. |
147149

148150

149151
### Placement

env.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ echo "OPENROAD: ${OPENROAD}"
1313

1414
export PATH=${DIR}/tools/install/OpenROAD/bin:$PATH
1515
export PATH=${DIR}/tools/install/yosys/bin:$PATH
16-
export PATH=${DIR}/tools/install/LSOracle/bin:$PATH
1716
export PATH=${DIR}/dependencies/bin:$PATH
1817

1918
if [[ "$OSTYPE" == "darwin"* ]]; then

flow/Makefile

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -269,17 +269,6 @@ ifeq (,$(strip $(NUM_CORES)))
269269
endif
270270
export NUM_CORES
271271

272-
export LSORACLE_CMD ?= $(shell command -v lsoracle)
273-
ifeq ($(LSORACLE_CMD),)
274-
LSORACLE_CMD = $(abspath $(FLOW_HOME)/../tools/install/LSOracle/bin/lsoracle)
275-
endif
276-
277-
LSORACLE_PLUGIN ?= $(abspath $(FLOW_HOME)/../tools/install/yosys/share/yosys/plugin/oracle.so)
278-
export LSORACLE_KAHYPAR_CONFIG ?= $(abspath $(FLOW_HOME)/../tools/install/LSOracle/share/lsoracle/test.ini)
279-
ifneq ($(USE_LSORACLE),)
280-
YOSYS_FLAGS ?= -m $(LSORACLE_PLUGIN)
281-
endif
282-
283272
YOSYS_FLAGS += -v 3
284273

285274
#-------------------------------------------------------------------------------
@@ -312,7 +301,9 @@ KLAYOUT_BIN_FROM_DIR = $(KLAYOUT_DIR)/klayout
312301
ifeq ($(wildcard $(KLAYOUT_BIN_FROM_DIR)), $(KLAYOUT_BIN_FROM_DIR))
313302
KLAYOUT_CMD ?= sh -c 'LD_LIBRARY_PATH=$(dir $(KLAYOUT_BIN_FROM_DIR)) $$0 "$$@"' $(KLAYOUT_BIN_FROM_DIR)
314303
else
315-
KLAYOUT_CMD ?= $(shell command -v klayout)
304+
ifeq ($(KLAYOUT_CMD),)
305+
KLAYOUT_CMD := $(shell command -v klayout)
306+
endif
316307
endif
317308
KLAYOUT_FOUND = $(if $(KLAYOUT_CMD),,$(error KLayout not found in PATH))
318309

@@ -404,7 +395,7 @@ do-klayout_tech:
404395
cp $(TECH_LEF) $(OBJECTS_DIR)/klayout_tech.lef
405396

406397
KLAYOUT_ENV_VAR_IN_PATH_VERSION = 0.28.11
407-
KLAYOUT_VERSION = $(shell $(KLAYOUT_CMD) -v 2>/dev/null | grep 'KLayout' | cut -d ' ' -f2)
398+
KLAYOUT_VERSION := $(shell $(KLAYOUT_CMD) -v 2>/dev/null | grep 'KLayout' | cut -d ' ' -f2)
408399

409400
KLAYOUT_ENV_VAR_IN_PATH = $(shell \
410401
if [ -z "$(KLAYOUT_VERSION)" ]; then \
@@ -584,7 +575,7 @@ endef
584575
define OPEN_GUI
585576
.PHONY: $(1)_$(2)
586577
$(1)_$(2):
587-
$(3)=$(RESULTS_DIR)/$(2) $(4) $(SCRIPTS_DIR)/gui.tcl
578+
$(3)=$(RESULTS_DIR)/$(2) $(4) $(GUI_ARGS) $(SCRIPTS_DIR)/gui.tcl
588579
endef
589580

590581
# Separate dependency checking and doing a step. This can
@@ -1056,10 +1047,10 @@ $(foreach file,$(RESULTS_DEF) $(RESULTS_GDS) $(RESULTS_OAS),klayout_$(file)): kl
10561047

10571048
.PHONY: gui_synth
10581049
gui_synth:
1059-
$(OPENROAD_GUI_CMD) $(SCRIPTS_DIR)/sta-synth.tcl
1050+
$(OPENROAD_GUI_CMD) $(GUI_ARGS) $(SCRIPTS_DIR)/sta-synth.tcl
10601051
.PHONY: open_synth
10611052
open_synth:
1062-
$(OPENROAD_NO_EXIT_CMD) $(SCRIPTS_DIR)/sta-synth.tcl
1053+
$(OPENROAD_NO_EXIT_CMD) $(GUI_ARGS) $(SCRIPTS_DIR)/sta-synth.tcl
10631054

10641055
$(eval $(call OPEN_GUI_SHORTCUT,floorplan,2_floorplan.odb))
10651056
$(eval $(call OPEN_GUI_SHORTCUT,place,3_place.odb))

flow/platforms/asap7/config.mk

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -258,16 +258,7 @@ endif
258258
# BC - Best case, fastest
259259
# WC - Worst case, slowest
260260
# TC - Typical case
261-
ifeq ($(CORNER),)
262-
export CORNER = BC
263-
ifeq ($(MAKELEVEL),0)
264-
$(info Default PVT selection: $(CORNER) model: $(LIB_MODEL))
265-
endif
266-
else
267-
ifeq ($(MAKELEVEL),0)
268-
$(info User PVT selection: $(CORNER) model: $(LIB_MODEL))
269-
endif
270-
endif
261+
export CORNER ?= BC
271262
export LIB_FILES += $($(CORNER)_$(LIB_MODEL)_LIB_FILES)
272263
export LIB_FILES += $(ADDITIONAL_LIBS)
273264
export DB_FILES += $(realpath $($(CORNER)_DB_FILES))

flow/scripts/gui.tcl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,7 @@ if {![info exist ::env(GUI_NO_TIMING)]} {
6666
# Cleanup temporary variables
6767
unset sdc_file s design_stage
6868
}
69+
70+
if {[info exist env(GUI_SOURCE)]} {
71+
source $::env(GUI_SOURCE)
72+
}

flow/scripts/sta-synth.tcl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
source $::env(SCRIPTS_DIR)/load.tcl
22
load_design 1_synth.v 1_synth.sdc
3+
4+
if {[info exist env(GUI_SOURCE)]} {
5+
source $::env(GUI_SOURCE)
6+
}

0 commit comments

Comments
 (0)