Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Build working directories
tools/OpenROAD/build/
tools/yosys-slang/build/
tools/kepler-formal/build/

# Build files
Expand Down
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
[submodule "tools/OpenROAD"]
path = tools/OpenROAD
url = ../OpenROAD.git
[submodule "tools/yosys-slang"]
path = tools/yosys-slang
url = https://github.com/povik/yosys-slang.git
[submodule "tools/kepler-formal"]
path = tools/kepler-formal
url = https://github.com/keplertech/kepler-formal
34 changes: 8 additions & 26 deletions bazel/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -e

# ORFS developer install script
# Builds and installs OpenROAD, Yosys, and yosys-slang to tools/install/
# Builds and installs OpenROAD and Yosys to tools/install/
# where flow/Makefile expects them.
#
# Uses stamp files for fast no-op re-runs (seconds when nothing changed).
Expand Down Expand Up @@ -80,7 +80,7 @@ while [[ $# -gt 0 ]]; do
done

# --- Check submodules are initialized ---
for sub in tools/OpenROAD tools/yosys tools/yosys-slang; do
for sub in tools/OpenROAD tools/yosys; do
if [[ ! -d "${WORKSPACE}/${sub}" ]] || [[ -z "$(ls -A "${WORKSPACE}/${sub}" 2>/dev/null)" ]]; then
echo "ERROR: ${sub} not initialized."
echo "Run: git submodule update --init --recursive"
Expand All @@ -105,37 +105,19 @@ if [[ -f "${YOSYS_STAMP}" ]] && [[ "$(cat "${YOSYS_STAMP}")" == "${YOSYS_COMMIT}
echo "=== Yosys already up to date (${YOSYS_COMMIT:0:12}) ==="
else
echo "=== Building Yosys ==="
# Yosys 0.67+ builds with CMake (no Makefile); mirrors build_openroad.sh.
(
cd "${WORKSPACE}/tools/yosys"
make -j "${NUM_THREADS}" PREFIX="${YOSYS_INSTALL}" ABC_ARCHFLAGS=-Wno-register
make install PREFIX="${YOSYS_INSTALL}"
cmake -B build . \
-DCMAKE_BUILD_TYPE=Release \
-DYOSYS_SKIP_ABC_SUBMODULE_CHECK=ON \
-DCMAKE_INSTALL_PREFIX="${YOSYS_INSTALL}"
cmake --build build --target install -j "${NUM_THREADS}"
)
echo "${YOSYS_COMMIT}" > "${YOSYS_STAMP}"
echo "Yosys installed to ${YOSYS_INSTALL}/bin/yosys"
fi

# --- yosys-slang ---
SLANG_STAMP="${YOSYS_INSTALL}/.slang_commit"
SLANG_COMMIT="$(git -C "${WORKSPACE}/tools/yosys-slang" rev-parse HEAD)"

if [[ -f "${SLANG_STAMP}" ]] && [[ "$(cat "${SLANG_STAMP}")" == "${SLANG_COMMIT}" ]]; then
echo "=== yosys-slang already up to date (${SLANG_COMMIT:0:12}) ==="
else
echo "=== Building yosys-slang ==="
(
cd "${WORKSPACE}/tools/yosys-slang"
cmake -S . -B build \
-DYOSYS_CONFIG="${YOSYS_INSTALL}/bin/yosys-config" \
-DCMAKE_BUILD_TYPE=Release \
-DYOSYS_SLANG_REVISION=unknown \
-DSLANG_REVISION=unknown
cmake --build build -j "${NUM_THREADS}"
cmake --install build --prefix "${YOSYS_INSTALL}"
)
echo "${SLANG_COMMIT}" > "${SLANG_STAMP}"
echo "yosys-slang installed to ${YOSYS_INSTALL}/share/yosys/plugins/"
fi

echo ""
echo "=== Done ==="
echo "cd flow && make"
15 changes: 7 additions & 8 deletions build_openroad.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ PROC=-1
WITH_VERIFIC=0
VERIFIC_SRC=""
VERIFIC_COMPONENTS='database util containers pct hier_tree verilog'
VERIFIC_ARGS=" VERIFIC_COMPONENTS='${VERIFIC_COMPONENTS}'"
VERIFIC_ARGS+=" ENABLE_VERIFIC=1 ENABLE_VERIFIC_VHDL=0 VERIFIC_DIR=verific"
VERIFIC_ARGS=" -DYOSYS_VERIFIC_DIR=\"${DIR}/tools/yosys/verific\""

function usage() {
cat << EOF
Expand Down Expand Up @@ -207,7 +206,7 @@ fi
echo "[INFO FLW-0028] Compiling with ${PROC} threads."

# Only add install prefix variables after parsing arguments.
YOSYS_ARGS+=" PREFIX=${INSTALL_PATH}/yosys"
YOSYS_ARGS+=" -DCMAKE_INSTALL_PREFIX=\"${INSTALL_PATH}/yosys\""
OPENROAD_APP_ARGS+=" -D CMAKE_INSTALL_PREFIX=${INSTALL_PATH}/OpenROAD"
if [ -n "$CMAKE_INSTALL_RPATH" ]; then
OPENROAD_APP_ARGS+=" -D CMAKE_INSTALL_RPATH=${CMAKE_INSTALL_RPATH}"
Expand Down Expand Up @@ -364,11 +363,11 @@ __local_build()
fi

echo "[INFO FLW-0017] Compiling Yosys."
eval ${NICE} make install -C tools/yosys -j "${PROC}" ${YOSYS_ARGS}

echo "[INFO FLW-0030] Compiling yosys-slang."
# CMAKE_FLAGS added to work around yosys-slang#141 (unable to build outside of git checkout)
${NICE} make install -C tools/yosys-slang -j "${PROC}" YOSYS_PREFIX="${INSTALL_PATH}/yosys/bin/" CMAKE_FLAGS="-DYOSYS_SLANG_REVISION=unknown -DSLANG_REVISION=unknown"
eval ${NICE} cmake -B tools/yosys/build tools/yosys \
-DCMAKE_BUILD_TYPE=Release \
-DYOSYS_SKIP_ABC_SUBMODULE_CHECK=ON \
${YOSYS_ARGS}
${NICE} cmake --build tools/yosys/build --target install -j "${PROC}"

echo "[INFO FLW-0031] Compiling kepler-formal"
${NICE} cmake -B tools/kepler-formal/build tools/kepler-formal \
Expand Down
2 changes: 0 additions & 2 deletions docs/user/FlowVariables.md
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,6 @@ configuration file.
| <a name="SKIP_REPAIR_TIE_FANOUT"></a>SKIP_REPAIR_TIE_FANOUT| Skip repair_tie_fanout at floorplan step.| 0|
| <a name="SKIP_REPORT_METRICS"></a>SKIP_REPORT_METRICS| If set to 1, then metrics, report_metrics does nothing. Useful to speed up builds.| 0|
| <a name="SKIP_VT_SWAP"></a>SKIP_VT_SWAP| Do not perform VT swap to improve QoR (default: do VT swap).| |
| <a name="SLANG_PLUGIN_PATH"></a>SLANG_PLUGIN_PATH| Path to the slang plugin for Yosys. This can be a full path to a custom-built plugin (e.g. for Bazel builds) or just the plugin name.| slang|
| <a name="SLEW_MARGIN"></a>SLEW_MARGIN| Specifies a slew margin when fixing max slew violations. This option allows you to overfix.| |
| <a name="SWAP_ARITH_OPERATORS"></a>SWAP_ARITH_OPERATORS| Improve timing QoR by swapping ALU and MULT arithmetic operators.| |
| <a name="SYNTH_ARGS"></a>SYNTH_ARGS| Optional synthesis variables for yosys.| |
Expand Down Expand Up @@ -352,7 +351,6 @@ configuration file.
- [SDC_FILE](#SDC_FILE)
- [SDC_GUT](#SDC_GUT)
- [SKIP_REPORT_METRICS](#SKIP_REPORT_METRICS)
- [SLANG_PLUGIN_PATH](#SLANG_PLUGIN_PATH)
- [SYNTH_ARGS](#SYNTH_ARGS)
- [SYNTH_BLACKBOXES](#SYNTH_BLACKBOXES)
- [SYNTH_CANONICALIZE_TCL](#SYNTH_CANONICALIZE_TCL)
Expand Down
18 changes: 9 additions & 9 deletions flow/designs/asap7/aes-block/rules-base.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"synth__canonical_netlist__hash": {
"value": "3fc8a6d24fdb16116484d2eed15ff2dbe4531126",
"value": "e845e75a0a2ebf22edd0b35335fffe85bf118732",
"compare": "==",
"level": "warning"
},
"synth__netlist__hash": {
"value": "d11001678e38263ee1a14c55bc48935b767ef70e",
"value": "a1413c77490f5f69d469c02fd395b9047501eb60",
"compare": "==",
"level": "warning"
},
Expand Down Expand Up @@ -38,11 +38,11 @@
"compare": "<="
},
"cts__timing__setup__ws": {
"value": -84.1,
"value": -126.0,
"compare": ">="
},
"cts__timing__setup__tns": {
"value": -4320.0,
"value": -5500.0,
"compare": ">="
},
"cts__timing__hold__ws": {
Expand All @@ -58,11 +58,11 @@
"compare": "<="
},
"globalroute__timing__setup__ws": {
"value": -31.1,
"value": -25.0,
"compare": ">="
},
"globalroute__timing__setup__tns": {
"value": -174.0,
"value": -92.5,
"compare": ">="
},
"globalroute__timing__hold__ws": {
Expand All @@ -74,7 +74,7 @@
"compare": ">="
},
"detailedroute__route__wirelength": {
"value": 50261,
"value": 48942,
"compare": "<="
},
"detailedroute__route__drc_errors": {
Expand All @@ -90,11 +90,11 @@
"compare": "<="
},
"finish__timing__setup__ws": {
"value": -56.6,
"value": -55.6,
"compare": ">="
},
"finish__timing__setup__tns": {
"value": -1520.0,
"value": -511.0,
"compare": ">="
},
"finish__timing__hold__ws": {
Expand Down
6 changes: 3 additions & 3 deletions flow/designs/asap7/aes/rules-base.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"compare": "<="
},
"cts__timing__setup__ws": {
"value": -28.9,
"value": -27.5,
"compare": ">="
},
"cts__timing__setup__tns": {
Expand All @@ -58,11 +58,11 @@
"compare": "<="
},
"globalroute__timing__setup__ws": {
"value": -28.0,
"value": -27.8,
"compare": ">="
},
"globalroute__timing__setup__tns": {
"value": -164.0,
"value": -248.0,
"compare": ">="
},
"globalroute__timing__hold__ws": {
Expand Down
20 changes: 10 additions & 10 deletions flow/designs/asap7/ethmac/rules-base.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
{
"synth__canonical_netlist__hash": {
"value": "80bd19c2d0b116a1d88f0f84cbfe00da3a31d68c",
"value": "7acd8f58cb4522b4111742580e4e5e656473ba7d",
"compare": "==",
"level": "warning"
},
"synth__netlist__hash": {
"value": "ef3244761c23b0d7c0d2ee7eaf97545ad0b74921",
"value": "cb3ea9e02e4231a1646261bbc4f6cba6dd58b568",
"compare": "==",
"level": "warning"
},
"synth__design__instance__area__stdcell": {
"value": 8510.0,
"value": 8420.0,
"compare": "<="
},
"constraints__clocks__count": {
"value": 6,
"compare": "=="
},
"placeopt__design__instance__area": {
"value": 8783,
"value": 8704,
"compare": "<="
},
"placeopt__design__instance__count__stdcell": {
"value": 68712,
"value": 68710,
"compare": "<="
},
"detailedplace__design__violations": {
Expand All @@ -38,7 +38,7 @@
"compare": "<="
},
"cts__timing__setup__ws": {
"value": -88.6,
"value": -105.0,
"compare": ">="
},
"cts__timing__setup__tns": {
Expand All @@ -62,7 +62,7 @@
"compare": ">="
},
"globalroute__timing__setup__tns": {
"value": -2120.0,
"value": -2020.0,
"compare": ">="
},
"globalroute__timing__hold__ws": {
Expand All @@ -74,7 +74,7 @@
"compare": ">="
},
"detailedroute__route__wirelength": {
"value": 244604,
"value": 240797,
"compare": "<="
},
"detailedroute__route__drc_errors": {
Expand All @@ -94,7 +94,7 @@
"compare": ">="
},
"finish__timing__setup__tns": {
"value": -1650.0,
"value": -1500.0,
"compare": ">="
},
"finish__timing__hold__ws": {
Expand All @@ -106,7 +106,7 @@
"compare": ">="
},
"finish__design__instance__area": {
"value": 9440,
"value": 9362,
"compare": "<="
}
}
10 changes: 5 additions & 5 deletions flow/designs/asap7/riscv32i/rules-base.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"synth__canonical_netlist__hash": {
"value": "1b153640320fe931005e9414a100c25715206b08",
"value": "24d1128afe4c92ecfe91e78f05b71e9f23fe18a0",
"compare": "==",
"level": "warning"
},
"synth__netlist__hash": {
"value": "3cda72525274bb1b952aec8e0a640cf60c42b6da",
"value": "35c991086e2870003e3a2bd8f0b533614ab30c5a",
"compare": "==",
"level": "warning"
},
Expand Down Expand Up @@ -58,11 +58,11 @@
"compare": "<="
},
"globalroute__timing__setup__ws": {
"value": -49.8,
"value": -49.4,
"compare": ">="
},
"globalroute__timing__setup__tns": {
"value": -222.0,
"value": -206.0,
"compare": ">="
},
"globalroute__timing__hold__ws": {
Expand Down Expand Up @@ -94,7 +94,7 @@
"compare": ">="
},
"finish__timing__setup__tns": {
"value": -10600.0,
"value": -14500.0,
"compare": ">="
},
"finish__timing__hold__ws": {
Expand Down
7 changes: 5 additions & 2 deletions flow/designs/asap7/swerv_wrapper/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ export SYNTH_KEEP_MODULES ?= \
export LIB_MODEL = CCS

export VERILOG_FILES = $(DESIGN_HOME)/src/swerv/swerv_wrapper.sv2v.v \
$(DESIGN_HOME)/$(PLATFORM)/swerv_wrapper/macros.v
$(DESIGN_HOME)/$(PLATFORM)/swerv_wrapper/macros.v \
$(CLKGATE_MAP_FILE)
export SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/swerv_wrapper/constraint.sdc

export ADDITIONAL_LEFS = $(sort $(wildcard $(DESIGN_HOME)/$(PLATFORM)/swerv_wrapper/lef/*.lef))
Expand All @@ -58,7 +59,9 @@ export PLACE_DENSITY_LB_ADDON = 0.20

export ROUTING_LAYER_ADJUSTMENT = 0.2

export SWAP_ARITH_OPERATORS = 1
# Use OpenROAD-native synthesis (SYN) instead of Yosys. SWAP_ARITH_OPERATORS
# removed: its wrapped-operator flow is Yosys-only and unsupported by SYN.
export SYNTH_USE_SYN = 1
export OPENROAD_HIERARCHICAL = 1

export GPL_RANDOM_SEED = 2
Loading