Skip to content

Commit ddb349d

Browse files
committed
Merge branch 'master' of https://github.com/The-OpenROAD-Project-private/OpenROAD-flow-scripts into secure-est_via_res
Signed-off-by: Eder Monteiro <emrmonteiro@precisioninno.com>
2 parents 600606a + b9eee30 commit ddb349d

206 files changed

Lines changed: 105508 additions & 34133 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.gitmodules‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@
77
[submodule "tools/yosys-slang"]
88
path = tools/yosys-slang
99
url = https://github.com/povik/yosys-slang.git
10+
[submodule "tools/kepler-formal"]
11+
path = tools/kepler-formal
12+
url = https://github.com/keplertech/kepler-formal

‎build_openroad.sh‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,11 +291,22 @@ __local_build()
291291
# CMAKE_FLAGS added to work around yosys-slang#141 (unable to build outside of git checkout)
292292
${NICE} make install -C tools/yosys-slang -j "${PROC}" YOSYS_PREFIX="${INSTALL_PATH}/yosys/bin/" CMAKE_FLAGS="-DYOSYS_SLANG_REVISION=unknown -DSLANG_REVISION=unknown"
293293

294+
echo "[INFO FLW-0031] Compiling kepler-formal"
295+
${NICE} cmake -B tools/kepler-formal/build tools/kepler-formal \
296+
-DCMAKE_BUILD_TYPE=Release \
297+
-DCMAKE_CXX_FLAGS_RELEASE="-Ofast -march=native -ffast-math -flto" \
298+
-DCMAKE_EXE_LINKER_FLAGS="-flto" \
299+
-DCMAKE_BUILD_RPATH="${DIR}/tools/kepler-formal/build/thirdparty/naja/src/dnl:${DIR}/tools/kepler-formal/build/thirdparty/naja/src/nl/nl:${DIR}/tools/kepler-formal/build/thirdparty/naja/src/optimization" \
300+
-DCMAKE_INSTALL_RPATH="${INSTALL_PATH}/kepler-formal/lib" \
301+
-DCMAKE_BUILD_WITH_INSTALL_RPATH=OFF \
302+
-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=OFF \
303+
-DCMAKE_INSTALL_PREFIX="${INSTALL_PATH}/kepler-formal"
304+
${NICE} cmake --build tools/kepler-formal/build --target install -j "${PROC}"
305+
294306
if [ ${WITH_VERIFIC} -eq 1 ]; then
295307
echo "[INFO FLW-0032] Cleaning up Verific components."
296308
rm -rf verific
297309
fi
298-
299310
}
300311

301312
__update_openroad_app_remote()

‎docs/user/FlowVariables.md‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ configuration file.
143143
| <a name="FLOW_VARIANT"></a>FLOW_VARIANT| Flow variant to use, used in the flow variant directory name.| base|
144144
| <a name="FOOTPRINT"></a>FOOTPRINT| Custom footprint definition file for ICeWall-based floorplan initialization. Mutually exclusive with FLOORPLAN_DEF or DIE_AREA/CORE_AREA or CORE_UTILIZATION.| |
145145
| <a name="FOOTPRINT_TCL"></a>FOOTPRINT_TCL| Specifies a Tcl script with custom footprint-related commands for floorplan setup.| |
146-
| <a name="GDS_ALLOW_EMPTY"></a>GDS_ALLOW_EMPTY| Regular expression of module names of macros that have no .gds file| |
146+
| <a name="GDS_ALLOW_EMPTY"></a>GDS_ALLOW_EMPTY| Single regular expression of module names of macros that have no .gds file| |
147147
| <a name="GDS_FILES"></a>GDS_FILES| Path to platform GDS files.| |
148148
| <a name="GENERATE_ARTIFACTS_ON_FAILURE"></a>GENERATE_ARTIFACTS_ON_FAILURE| For instance Bazel needs artifacts (.odb and .rpt files) on a failure to allow the user to save hours on re-running the failed step locally, but when working with a Makefile flow, it is more natural to fail the step and leave the user to manually inspect the logs and artifacts directly via the file system. Set to 1 to change the behavior to generate artifacts upon failure to e.g. do a global route. The exit code will still be non-zero on all other failures that aren't covered by the "useful to inspect the artifacts on failure" use-case. Example: just like detailed routing, a global route that fails with congestion, is not a build failure(as in exit code non-zero), it is a successful(as in zero exit code) global route that produce reports detailing the problem. Detailed route will not proceed, if there is global routing congestion This allows build systems, such as bazel, to create artifacts for global and detailed route, even if the operation had problems, without having know about the semantics between global and detailed route. Considering that global and detailed route can run for a long time and use a lot of memory, this allows inspecting results on a laptop for a build that ran on a server.| 0|
149149
| <a name="GLOBAL_PLACEMENT_ARGS"></a>GLOBAL_PLACEMENT_ARGS| Use additional tuning parameters during global placement other than default args defined in global_place.tcl.| |
@@ -161,6 +161,7 @@ configuration file.
161161
| <a name="KLAYOUT_TECH_FILE"></a>KLAYOUT_TECH_FILE| A mapping from LEF/DEF to GDS using the KLayout tool.| |
162162
| <a name="LATCH_MAP_FILE"></a>LATCH_MAP_FILE| Optional mapping file supplied to Yosys to map latches| |
163163
| <a name="LAYER_PARASITICS_FILE"></a>LAYER_PARASITICS_FILE| Path to per layer parasitics file. Defaults to $(PLATFORM_DIR)/setRC.tcl.| |
164+
| <a name="LEC_CHECK"></a>LEC_CHECK| Perform a formal equivalence check between before and after netlists.| 1|
164165
| <a name="LIB_FILES"></a>LIB_FILES| A Liberty file of the standard cell library with PVT characterization, input and output characteristics, timing and power definitions for each cell.| |
165166
| <a name="MACRO_BLOCKAGE_HALO"></a>MACRO_BLOCKAGE_HALO| Distance beyond the edges of a macro that will also be covered by the blockage generated for that macro. Note that the default macro blockage halo comes from the largest of the specified MACRO_PLACE_HALO x or y values. This variable overrides that calculation.| |
166167
| <a name="MACRO_EXTENSION"></a>MACRO_EXTENSION| Sets the number of GCells added to the blockages boundaries from macros.| |
@@ -196,6 +197,7 @@ configuration file.
196197
| <a name="RECOVER_POWER"></a>RECOVER_POWER| Specifies how many percent of paths with positive slacks can be slowed for power savings [0-100].| 0|
197198
| <a name="REMOVE_ABC_BUFFERS"></a>REMOVE_ABC_BUFFERS (deprecated)| Remove abc buffers from the netlist. If timing repair in floorplanning is taking too long, use a SETUP/HOLD_SLACK_MARGIN to terminate timing repair early instead of using REMOVE_ABC_BUFFERS or set SKIP_LAST_GASP=1.| 0|
198199
| <a name="REMOVE_CELLS_FOR_EQY"></a>REMOVE_CELLS_FOR_EQY| String patterns directly passed to write_verilog -remove_cells <> for equivalence checks.| |
200+
| <a name="REMOVE_CELLS_FOR_LEC"></a>REMOVE_CELLS_FOR_LEC| String patterns directly passed to write_verilog -remove_cells <> for lec checks.| |
199201
| <a name="REPAIR_PDN_VIA_LAYER"></a>REPAIR_PDN_VIA_LAYER| Remove power grid vias which generate DRC violations after detailed routing.| |
200202
| <a name="REPORT_CLOCK_SKEW"></a>REPORT_CLOCK_SKEW| Report clock skew as part of reporting metrics, starting at CTS, before which there is no clock skew. This metric can be quite time-consuming, so it can be useful to disable.| 1|
201203
| <a name="ROUTING_LAYER_ADJUSTMENT"></a>ROUTING_LAYER_ADJUSTMENT| Adjusts routing layer capacities to manage congestion and improve detailed routing. High values ease detailed routing but risk excessive detours and long global routing times, while low values reduce global routing failure but can complicate detailed routing. The global routing running time normally reduces dramatically (entirely design specific, but going from hours to minutes has been observed) when the value is low (such as 0.10). Sometimes, global routing will succeed with lower values and fail with higher values. Exploring results with different values can help shed light on the problem. Start with a too low value, such as 0.10, and bisect to value that works by doing multiple global routing runs. As a last resort, `make global_route_issue` and using the tools/OpenROAD/etc/deltaDebug.py can be useful to debug global routing errors. If there is something specific that is impossible to route, such as a clock line over a macro, global routing will terminate with DRC errors routes that could have been routed were it not for the specific impossible routes. deltaDebug.py should weed out the possible routes and leave a minimal failing case that pinpoints the problem.| 0.5|
@@ -212,7 +214,7 @@ configuration file.
212214
| <a name="RTLMP_MIN_AR"></a>RTLMP_MIN_AR| Specifies the minimum aspect ratio (height/width).| 0.33|
213215
| <a name="RTLMP_MIN_INST"></a>RTLMP_MIN_INST| Minimum number of standard cells in a cluster. If unset, rtl_macro_placer will calculate a value based on the design attributes.| |
214216
| <a name="RTLMP_MIN_MACRO"></a>RTLMP_MIN_MACRO| Minimum number of macros in a cluster. If unset, rtl_macro_placer will calculate a value based on the design attributes.| |
215-
| <a name="RTLMP_NOTCH_WT"></a>RTLMP_NOTCH_WT| Weight for the notch, or the existence of dead space that cannot be used for placement and routing.| 10.0|
217+
| <a name="RTLMP_NOTCH_WT"></a>RTLMP_NOTCH_WT| Weight for the notch, or the existence of dead space that cannot be used for placement and routing.| 50.0|
216218
| <a name="RTLMP_OUTLINE_WT"></a>RTLMP_OUTLINE_WT| Weight for violating the fixed outline constraint, meaning that all clusters should be placed within the shape of their parent cluster.| 100.0|
217219
| <a name="RTLMP_RPT_DIR"></a>RTLMP_RPT_DIR| Path to the directory where reports are saved.| |
218220
| <a name="RTLMP_WIRELENGTH_WT"></a>RTLMP_WIRELENGTH_WT| Weight for half-perimiter wirelength.| 100.0|
@@ -248,6 +250,7 @@ configuration file.
248250
| <a name="SYNTH_HDL_FRONTEND"></a>SYNTH_HDL_FRONTEND| Select an alternative language frontend to ingest the design. Available option is "slang". If the variable is empty, design is read with the Yosys read_verilog command.| |
249251
| <a name="SYNTH_HIERARCHICAL"></a>SYNTH_HIERARCHICAL| Enable to Synthesis hierarchically, otherwise considered flat synthesis.| 0|
250252
| <a name="SYNTH_HIER_SEPARATOR"></a>SYNTH_HIER_SEPARATOR| Separator used for the synthesis flatten stage.| .|
253+
| <a name="SYNTH_INSBUF"></a>SYNTH_INSBUF| Insert input buffers on top-level input ports during synthesis. Useful to disable when doing parallel synthesis and concatenating netlists later as we're generating netlists of submodules.| 1|
251254
| <a name="SYNTH_KEEP_MOCKED_MEMORIES"></a>SYNTH_KEEP_MOCKED_MEMORIES| When `SYNTH_MOCK_LARGE_MEMORIES=1`, setting this to 1, will keep mocked memories (not flattening them). This preserves some of the access logic complexity and avoids optimizations outside of the mocked memory.| 1|
252255
| <a name="SYNTH_KEEP_MODULES"></a>SYNTH_KEEP_MODULES| Mark modules to keep from getting removed in flattening.| |
253256
| <a name="SYNTH_MEMORY_MAX_BITS"></a>SYNTH_MEMORY_MAX_BITS| Maximum number of bits for memory synthesis. Ideally, real RAM or realistic fakeram should be used for RAMs much larger than 1024 bits. To temporarily ignore the RAM concerns and investigate other aspects of the design, consider setting `SYNTH_MOCK_LARGE_MEMORIES=1`, or adjusting `SYNTH_MEMORY_MAX_BITS`.| 4096|
@@ -295,6 +298,7 @@ configuration file.
295298
- [SYNTH_HDL_FRONTEND](#SYNTH_HDL_FRONTEND)
296299
- [SYNTH_HIERARCHICAL](#SYNTH_HIERARCHICAL)
297300
- [SYNTH_HIER_SEPARATOR](#SYNTH_HIER_SEPARATOR)
301+
- [SYNTH_INSBUF](#SYNTH_INSBUF)
298302
- [SYNTH_KEEP_MOCKED_MEMORIES](#SYNTH_KEEP_MOCKED_MEMORIES)
299303
- [SYNTH_KEEP_MODULES](#SYNTH_KEEP_MODULES)
300304
- [SYNTH_MEMORY_MAX_BITS](#SYNTH_MEMORY_MAX_BITS)
@@ -419,6 +423,7 @@ configuration file.
419423
- [DETAILED_METRICS](#DETAILED_METRICS)
420424
- [EQUIVALENCE_CHECK](#EQUIVALENCE_CHECK)
421425
- [HOLD_SLACK_MARGIN](#HOLD_SLACK_MARGIN)
426+
- [LEC_CHECK](#LEC_CHECK)
422427
- [MATCH_CELL_FOOTPRINT](#MATCH_CELL_FOOTPRINT)
423428
- [MAX_REPAIR_TIMING_ITER](#MAX_REPAIR_TIMING_ITER)
424429
- [POST_CTS_TCL](#POST_CTS_TCL)
@@ -537,6 +542,7 @@ configuration file.
537542
- [PROCESS](#PROCESS)
538543
- [RCX_RULES](#RCX_RULES)
539544
- [RECOVER_POWER](#RECOVER_POWER)
545+
- [REMOVE_CELLS_FOR_LEC](#REMOVE_CELLS_FOR_LEC)
540546
- [REPAIR_PDN_VIA_LAYER](#REPAIR_PDN_VIA_LAYER)
541547
- [RUN_LOG_NAME_STEM](#RUN_LOG_NAME_STEM)
542548
- [RUN_SCRIPT](#RUN_SCRIPT)

‎env.sh‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ function __setpaths() {
1313
# developer settings go in ./dev_env.sh
1414
export PATH=${DIR}/tools/install/OpenROAD/bin:$PATH
1515
export PATH=${DIR}/tools/install/yosys/bin:$PATH
16+
export PATH=${DIR}/tools/install/kepler-formal/bin:$PATH
1617

1718
if [[ "$OSTYPE" == "darwin"* ]]; then
1819
export PATH="/Applications/KLayout/klayout.app/Contents/MacOS:$PATH"

‎etc/DependencyInstaller.sh‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ _installUbuntuPackages() {
257257

258258
_installDarwinPackages() {
259259
brew install libffi tcl-tk ruby
260-
brew install python libomp
260+
brew install python libomp doxygen capnp tbb bison flex boost spdlog zlib
261261
brew link --force libomp
262262
brew install --cask klayout
263263
brew install docker docker-buildx
@@ -271,7 +271,10 @@ _installCI() {
271271
coreutils \
272272
curl \
273273
python3 \
274-
software-properties-common
274+
software-properties-common \
275+
clang pkg-config \
276+
libboost-dev libfl-dev libtbb-dev capnproto libcapnp-dev \
277+
libgtest-dev libspdlog-dev libfmt-dev libboost-iostreams-dev zlib1g-dev
275278
}
276279

277280
_help() {

‎flow/designs/asap7/aes-block/rules-base.json‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@
2424
"compare": "<="
2525
},
2626
"cts__design__instance__count__hold_buffer": {
27-
"value": 1506,
27+
"value": 923,
2828
"compare": "<="
2929
},
3030
"cts__timing__setup__ws": {
31-
"value": -173.0,
31+
"value": -124.0,
3232
"compare": ">="
3333
},
3434
"cts__timing__setup__tns": {
35-
"value": -9760.0,
35+
"value": -5920.0,
3636
"compare": ">="
3737
},
3838
"cts__timing__hold__ws": {
@@ -48,11 +48,11 @@
4848
"compare": "<="
4949
},
5050
"globalroute__timing__setup__ws": {
51-
"value": -172.0,
51+
"value": -150.0,
5252
"compare": ">="
5353
},
5454
"globalroute__timing__setup__tns": {
55-
"value": -8980.0,
55+
"value": -6750.0,
5656
"compare": ">="
5757
},
5858
"globalroute__timing__hold__ws": {
@@ -80,11 +80,11 @@
8080
"compare": "<="
8181
},
8282
"finish__timing__setup__ws": {
83-
"value": -98.3,
83+
"value": -116.0,
8484
"compare": ">="
8585
},
8686
"finish__timing__setup__tns": {
87-
"value": -3890.0,
87+
"value": -3780.0,
8888
"compare": ">="
8989
},
9090
"finish__timing__hold__ws": {

‎flow/designs/asap7/aes-mbff/config.mk‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ export TNS_END_PERCENT = 100
1616

1717
export CLUSTER_FLOPS = 1
1818
export ENABLE_DPO = 0
19+

‎flow/designs/asap7/aes-mbff/rules-base.json‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"compare": ">="
3333
},
3434
"cts__timing__setup__tns": {
35-
"value": -687.0,
35+
"value": -1130.0,
3636
"compare": ">="
3737
},
3838
"cts__timing__hold__ws": {
@@ -52,7 +52,7 @@
5252
"compare": ">="
5353
},
5454
"globalroute__timing__setup__tns": {
55-
"value": -2160.0,
55+
"value": -2470.0,
5656
"compare": ">="
5757
},
5858
"globalroute__timing__hold__ws": {
@@ -80,11 +80,11 @@
8080
"compare": "<="
8181
},
8282
"finish__timing__setup__ws": {
83-
"value": -44.6,
83+
"value": -42.3,
8484
"compare": ">="
8585
},
8686
"finish__timing__setup__tns": {
87-
"value": -1130.0,
87+
"value": -986.0,
8888
"compare": ">="
8989
},
9090
"finish__timing__hold__ws": {

‎flow/designs/asap7/aes/config.mk‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,4 @@ else ifeq ($(FLOW_VARIANT),combine)
2929
$(WORK_HOME)/results/$(PLATFORM)/$(DESIGN_NICKNAME)/blackbox/1_synth.v \
3030
$(WORK_HOME)/results/$(PLATFORM)/$(DESIGN_NICKNAME)/blackbox/1_synth.v
3131
endif
32+

‎flow/designs/asap7/aes/rules-base.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"compare": ">="
3333
},
3434
"cts__timing__setup__tns": {
35-
"value": -607.0,
35+
"value": -1250.0,
3636
"compare": ">="
3737
},
3838
"cts__timing__hold__ws": {
@@ -52,7 +52,7 @@
5252
"compare": ">="
5353
},
5454
"globalroute__timing__setup__tns": {
55-
"value": -2010.0,
55+
"value": -2660.0,
5656
"compare": ">="
5757
},
5858
"globalroute__timing__hold__ws": {
@@ -84,7 +84,7 @@
8484
"compare": ">="
8585
},
8686
"finish__timing__setup__tns": {
87-
"value": -911.0,
87+
"value": -1100.0,
8888
"compare": ">="
8989
},
9090
"finish__timing__hold__ws": {

0 commit comments

Comments
 (0)