Skip to content

Commit 13e0f3a

Browse files
committed
Merge remote-tracking branch 'origin/master' into HEAD
2 parents 1a7fab4 + 9cf53e9 commit 13e0f3a

40 files changed

+792
-238
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,6 @@ mainREADME.md
9595
build
9696
.scala-build/
9797
.bsp/
98+
99+
# autotuner artifacts
100+
metadata-base-at.json

docs/tutorials/FlowTutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ OpenROAD-flow-scripts installation is complete.
6969
Launch the docker with OpenROAD-flow-scripts container as follows:
7070

7171
```shell
72-
docker run --rm -it -u $(id -u ${USER}):$(id -g ${USER}) -v $(pwd)/flow:/OpenROAD-flow-scripts/flow openroad/flow-ubuntu22-builder
72+
docker run --rm -it -u $(id -u ${USER}):$(id -g ${USER}) -v $(pwd)/flow:/OpenROAD-flow-scripts/flow openroad/flow-ubuntu22.04-builder
7373
```
7474

7575
:::{seealso}

docs/user/FlowVariables.md

Lines changed: 112 additions & 112 deletions
Large diffs are not rendered by default.

docs/user/InstructionsForAutoTuner.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ Assuming the virtual environment is setup at `./tools/AutoTuner/autotuner_env`:
208208
./tools/AutoTuner/setup.sh
209209
python3 ./tools/AutoTuner/test/smoke_test_sweep.py
210210
python3 ./tools/AutoTuner/test/smoke_test_tune.py
211+
python3 ./tools/AutoTuner/test/smoke_test_sample_iteration.py
211212
```
212213

213214
## Citation

etc/DependencyInstaller.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,8 @@ _installUbuntuPackages() {
195195
docker-ce \
196196
docker-ce-cli \
197197
containerd.io \
198-
docker-buildx-plugin
198+
docker-buildx-plugin \
199+
docker-compose-plugin
199200
fi
200201
}
201202

flow/Makefile

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ YOSYS_FLAGS += -v 3
262262

263263
#-------------------------------------------------------------------------------
264264
# setup all commands used within this flow
265-
export TIME_BIN ?= /usr/bin/time
265+
export TIME_BIN ?= env time
266266
TIME_CMD = $(TIME_BIN) -f 'Elapsed time: %E[h:]min:sec. CPU time: user %U sys %S (%P). Peak memory: %MKB.'
267267
TIME_TEST = $(shell $(TIME_CMD) echo foo 2>/dev/null)
268268
ifeq (,$(strip $(TIME_TEST)))
@@ -448,8 +448,7 @@ $(WRAPPED_LIBS):
448448
# |____/ |_| |_| \_| |_| |_| |_|_____|____/___|____/
449449
#
450450
.PHONY: synth
451-
synth: $(RESULTS_DIR)/1_synth.v \
452-
$(RESULTS_DIR)/1_synth.sdc
451+
synth: $(RESULTS_DIR)/1_synth.v
453452

454453
.PHONY: synth-report
455454
synth-report: synth
@@ -498,19 +497,14 @@ do-yosys:
498497
.PHONY: do-yosys-canonicalize
499498
do-yosys-canonicalize: yosys-dependencies
500499
mkdir -p $(RESULTS_DIR) $(LOG_DIR) $(REPORTS_DIR) $(OBJECTS_DIR)
501-
# NOTE! YOSYS_FLAGS is omitted here because "-v 3" silences helpful error messages
502-
($(TIME_CMD) $(YOSYS_EXE) -c $(SCRIPTS_DIR)/synth_canonicalize.tcl) 2>&1 | tee $(abspath $(LOG_DIR)/1_1_yosys_canonicalize.log)
500+
($(TIME_CMD) $(YOSYS_EXE) $(YOSYS_FLAGS) -c $(SCRIPTS_DIR)/synth_canonicalize.tcl) 2>&1 | tee $(abspath $(LOG_DIR)/1_1_yosys_canonicalize.log)
503501

504502
$(RESULTS_DIR)/1_synth.rtlil: $(YOSYS_DEPENDENCIES)
505503
$(UNSET_AND_MAKE) do-yosys-canonicalize
506504

507505
$(RESULTS_DIR)/1_1_yosys.v: $(RESULTS_DIR)/1_synth.rtlil
508506
$(UNSET_AND_MAKE) do-yosys-keep-hierarchy do-yosys
509507

510-
$(RESULTS_DIR)/1_synth.sdc: $(SDC_FILE)
511-
mkdir -p $(RESULTS_DIR)
512-
cp $(SDC_FILE) $(RESULTS_DIR)/1_synth.sdc
513-
514508
.PHONY: do-synth
515509
do-synth:
516510
mkdir -p $(RESULTS_DIR) $(LOG_DIR) $(REPORTS_DIR)
@@ -571,9 +565,11 @@ open_$(1): open_$(2)
571565
endef
572566

573567
define OPEN_GUI
574-
.PHONY: $(1)_$(2)
575-
$(1)_$(2):
576-
$(3)=$(RESULTS_DIR)/$(2) $(4) $(SCRIPTS_DIR)/gui.tcl
568+
.PHONY: open_$(1) gui_$(1)
569+
open_$(1):
570+
$(2)=$(RESULTS_DIR)/$(1) $(OPENROAD_NO_EXIT_CMD) $(SCRIPTS_DIR)/open.tcl
571+
gui_$(1):
572+
$$(UNSET_AND_MAKE) GUI_SHOW=1 open_$(1)
577573
endef
578574

579575
# Separate dependency checking and doing a step. This can
@@ -796,6 +792,10 @@ $(eval $(call do-copy,5_route,4_cts.sdc,,.sdc))
796792
do-route:
797793
$(UNSET_AND_MAKE) do-5_1_grt do-5_2_route do-5_3_fillcell do-5_route do-5_route.sdc
798794

795+
.PHONY: do-grt
796+
do-grt:
797+
$(UNSET_AND_MAKE) do-5_1_grt
798+
799799
.PHONY: clean_route
800800
clean_route:
801801
rm -rf output*/ results*.out.dmp layer_*.mps
@@ -1025,10 +1025,8 @@ $(eval $(call OPEN_GUI_SHORTCUT,route,5_route.odb))
10251025
$(eval $(call OPEN_GUI_SHORTCUT,grt,5_1_grt.odb))
10261026
$(eval $(call OPEN_GUI_SHORTCUT,final,6_final.odb))
10271027

1028-
$(foreach file,$(RESULTS_DEF),$(eval $(call OPEN_GUI,gui,$(file),DEF_FILE,$(OPENROAD_GUI_CMD))))
1029-
$(foreach file,$(RESULTS_ODB),$(eval $(call OPEN_GUI,gui,$(file),ODB_FILE,$(OPENROAD_GUI_CMD))))
1030-
$(foreach file,$(RESULTS_DEF),$(eval $(call OPEN_GUI,open,$(file),DEF_FILE,$(OPENROAD_NO_EXIT_CMD))))
1031-
$(foreach file,$(RESULTS_ODB),$(eval $(call OPEN_GUI,open,$(file),ODB_FILE,$(OPENROAD_NO_EXIT_CMD))))
1028+
$(foreach file,$(RESULTS_DEF),$(eval $(call OPEN_GUI,$(file),DEF_FILE)))
1029+
$(foreach file,$(RESULTS_ODB),$(eval $(call OPEN_GUI,$(file),ODB_FILE)))
10321030

10331031
# Write a def for the corresponding odb
10341032
$(foreach file,$(RESULTS_ODB),$(file).def): %.def:

flow/designs/asap7/aes-block/autotuner.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@
3535
"CELL_PAD_IN_SITES_GLOBAL_PLACEMENT": {
3636
"type": "int",
3737
"minmax": [
38-
0,
38+
1,
3939
5
4040
],
4141
"step": 1
4242
},
4343
"CELL_PAD_IN_SITES_DETAIL_PLACEMENT": {
4444
"type": "int",
4545
"minmax": [
46-
0,
46+
1,
4747
5
4848
],
4949
"step": 1

flow/designs/asap7/gcd/autotuner.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@
1919
"CELL_PAD_IN_SITES_GLOBAL_PLACEMENT": {
2020
"type": "int",
2121
"minmax": [
22-
0,
22+
1,
2323
5
2424
],
2525
"step": 1
2626
},
2727
"CELL_PAD_IN_SITES_DETAIL_PLACEMENT": {
2828
"type": "int",
2929
"minmax": [
30-
0,
30+
1,
3131
5
3232
],
3333
"step": 1
@@ -44,7 +44,7 @@
4444
"type": "float",
4545
"minmax": [
4646
0.0,
47-
0.99
47+
0.1
4848
],
4949
"step": 0
5050
},
@@ -64,5 +64,5 @@
6464
],
6565
"step": 1
6666
},
67-
"_FR_FILE_PATH": ""
67+
"_FR_FILE_PATH": "fastroute.tcl"
6868
}

flow/designs/asap7/jpeg/autotuner.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@
3535
"CELL_PAD_IN_SITES_GLOBAL_PLACEMENT": {
3636
"type": "int",
3737
"minmax": [
38-
0,
38+
1,
3939
5
4040
],
4141
"step": 1
4242
},
4343
"CELL_PAD_IN_SITES_DETAIL_PLACEMENT": {
4444
"type": "int",
4545
"minmax": [
46-
0,
46+
1,
4747
5
4848
],
4949
"step": 1

flow/designs/asap7/mock-array/autotuner.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@
2727
"CELL_PAD_IN_SITES_GLOBAL_PLACEMENT": {
2828
"type": "int",
2929
"minmax": [
30-
0,
30+
1,
3131
5
3232
],
3333
"step": 1
3434
},
3535
"CELL_PAD_IN_SITES_DETAIL_PLACEMENT": {
3636
"type": "int",
3737
"minmax": [
38-
0,
38+
1,
3939
5
4040
],
4141
"step": 1
@@ -73,4 +73,4 @@
7373
"step": 1
7474
},
7575
"_FR_FILE_PATH": "fastroute.tcl"
76-
}
76+
}

0 commit comments

Comments
 (0)