Skip to content

Commit 0a21697

Browse files
committed
Merge branch 'master' into secure-bufrem-test
Resolve all conflicts in favor of this branch. Will be tested on the next build. Signed-off-by: Matt Liberty <mliberty@precisioninno.com>
2 parents 94344d7 + 5dcd585 commit 0a21697

30 files changed

Lines changed: 504 additions & 307 deletions

‎build_openroad.sh‎

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -292,28 +292,17 @@ __local_build()
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

294294
echo "[INFO FLW-0031] Compiling kepler-formal"
295-
cd tools/kepler-formal
296-
git submodule update --init --recursive
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}"
297305

298-
# if build dir does not exist, create it
299-
if [ ! -d build ]; then
300-
mkdir build
301-
fi
302-
cd build
303-
304-
cmake .. \
305-
-DCMAKE_BUILD_TYPE=Release \
306-
-DCMAKE_CXX_FLAGS_RELEASE="-Ofast -march=native -ffast-math -flto" \
307-
-DCMAKE_EXE_LINKER_FLAGS="-flto" \
308-
-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" \
309-
-DCMAKE_INSTALL_RPATH="${INSTALL_PATH}/kepler-formal/lib" \
310-
-DCMAKE_BUILD_WITH_INSTALL_RPATH=OFF \
311-
-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=OFF \
312-
-DCMAKE_INSTALL_PREFIX="${INSTALL_PATH}/kepler-formal"
313-
314-
make -j"${PROC}" install
315-
316-
cd ../../../
317306
if [ ${WITH_VERIFIC} -eq 1 ]; then
318307
echo "[INFO FLW-0032] Cleaning up Verific components."
319308
rm -rf verific

‎flow/designs/rapidus2hp/cva6/constraint_0.3_8T.sdc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ source $::env(PLATFORM_DIR)/util.tcl
55
set clk_name main_clk
66
set clk_port clk_i
77
set clk_ports_list [list $clk_port]
8-
set clk_period 550
8+
set clk_period 500
99

1010
convert_time_value clk_period
1111

‎flow/designs/rapidus2hp/cva6/rules-base.json‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"compare": "<="
2929
},
3030
"cts__timing__setup__ws": {
31-
"value": -0.0403,
31+
"value": -0.088,
3232
"compare": ">="
3333
},
3434
"cts__timing__setup__tns": {
@@ -48,7 +48,7 @@
4848
"compare": "<="
4949
},
5050
"globalroute__timing__setup__ws": {
51-
"value": -0.117,
51+
"value": -0.15,
5252
"compare": ">="
5353
},
5454
"globalroute__timing__setup__tns": {
@@ -64,7 +64,7 @@
6464
"compare": ">="
6565
},
6666
"finish__timing__setup__ws": {
67-
"value": -0.117,
67+
"value": -0.15,
6868
"compare": ">="
6969
},
7070
"finish__timing__setup__tns": {
@@ -83,4 +83,4 @@
8383
"value": 14360,
8484
"compare": "<="
8585
}
86-
}
86+
}

‎flow/designs/rapidus2hp/cva6/rules-verific.json‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@
3636
"compare": ">="
3737
},
3838
"cts__timing__hold__ws": {
39-
"value": -0.0275,
39+
"value": -0.025,
4040
"compare": ">="
4141
},
4242
"cts__timing__hold__tns": {
43-
"value": -0.11,
43+
"value": -0.1,
4444
"compare": ">="
4545
},
4646
"globalroute__antenna_diodes_count": {
@@ -56,11 +56,11 @@
5656
"compare": ">="
5757
},
5858
"globalroute__timing__hold__ws": {
59-
"value": -0.0275,
59+
"value": -0.025,
6060
"compare": ">="
6161
},
6262
"globalroute__timing__hold__tns": {
63-
"value": -0.11,
63+
"value": -0.1,
6464
"compare": ">="
6565
},
6666
"finish__timing__setup__ws": {
@@ -72,15 +72,15 @@
7272
"compare": ">="
7373
},
7474
"finish__timing__hold__ws": {
75-
"value": -0.0275,
75+
"value": -0.025,
7676
"compare": ">="
7777
},
7878
"finish__timing__hold__tns": {
79-
"value": -0.11,
79+
"value": -0.1,
8080
"compare": ">="
8181
},
8282
"finish__design__instance__area": {
8383
"value": 14642,
8484
"compare": "<="
8585
}
86-
}
86+
}

‎flow/designs/rapidus2hp/cva6/test/test_params.py‎

Lines changed: 52 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -42,64 +42,94 @@ def test_pdk_0p3_default(self):
4242
Tests PDK 0.3
4343
"""
4444

45-
front_end = ""
4645
pdk_version = ""
47-
for place_site in self._synopsys_site_list:
48-
exp_sdc = self.get_exp_sdc(place_site, pdk_version)
49-
self.execute_cmd(place_site, pdk_version, front_end, "SDC_FILE", exp_sdc)
46+
for front_end in self._front_end_list:
47+
for place_site in self._synopsys_site_list:
48+
exp_sdc = self.get_exp_sdc(place_site, pdk_version)
49+
self.execute_cmd(
50+
"SDC_FILE",
51+
exp_sdc,
52+
place_site=place_site,
53+
pdk_version=pdk_version,
54+
front_end=front_end,
55+
)
5056

5157
def test_pdk_0p2(self):
5258
"""
5359
Tests PDK 0.2
5460
"""
5561

56-
front_end = ""
5762
pdk_version = "0.2"
58-
for place_site in self._ibm_site_list:
59-
exp_sdc = self.get_exp_sdc(place_site, pdk_version)
60-
self.execute_cmd(place_site, pdk_version, front_end, "SDC_FILE", exp_sdc)
63+
for front_end in self._front_end_list:
64+
for place_site in self._ibm_site_list:
65+
exp_sdc = self.get_exp_sdc(place_site, pdk_version)
66+
self.execute_cmd(
67+
"SDC_FILE",
68+
exp_sdc,
69+
place_site=place_site,
70+
pdk_version=pdk_version,
71+
front_end=front_end,
72+
)
6173

6274
def test_pdk_0p2a(self):
6375
"""
6476
Tests PDK 0.2a
6577
"""
6678

67-
front_end = ""
6879
pdk_version = "0.2a"
69-
for place_site in self._synopsys_site_list:
70-
exp_sdc = self.get_exp_sdc(place_site, pdk_version)
71-
self.execute_cmd(place_site, pdk_version, front_end, "SDC_FILE", exp_sdc)
80+
for front_end in self._front_end_list:
81+
for place_site in self._synopsys_site_list:
82+
exp_sdc = self.get_exp_sdc(place_site, pdk_version)
83+
self.execute_cmd(
84+
"SDC_FILE",
85+
exp_sdc,
86+
place_site=place_site,
87+
pdk_version=pdk_version,
88+
front_end=front_end,
89+
)
7290

7391
def test_pdk_0p15(self):
7492
"""
7593
Tests PDK 0.15
7694
"""
7795

78-
front_end = ""
7996
pdk_version = "0.15"
80-
for place_site in self._synopsys_site_list:
81-
exp_sdc = self.get_exp_sdc(place_site, pdk_version)
82-
self.execute_cmd(place_site, pdk_version, front_end, "SDC_FILE", exp_sdc)
97+
for front_end in self._front_end_list:
98+
for place_site in self._synopsys_site_list:
99+
exp_sdc = self.get_exp_sdc(place_site, pdk_version)
100+
self.execute_cmd(
101+
"SDC_FILE",
102+
exp_sdc,
103+
place_site=place_site,
104+
pdk_version=pdk_version,
105+
front_end=front_end,
106+
)
83107

84108
def test_pdk_0p3(self):
85109
"""
86110
Tests PDK 0.3
87111
"""
88112

89-
front_end = ""
90113
pdk_version = "0.3"
91-
for place_site in self._synopsys_site_list:
92-
exp_sdc = self.get_exp_sdc(place_site, pdk_version)
93-
self.execute_cmd(place_site, pdk_version, front_end, "SDC_FILE", exp_sdc)
114+
for front_end in self._front_end_list:
115+
for place_site in self._synopsys_site_list:
116+
exp_sdc = self.get_exp_sdc(place_site, pdk_version)
117+
self.execute_cmd(
118+
"SDC_FILE",
119+
exp_sdc,
120+
place_site=place_site,
121+
pdk_version=pdk_version,
122+
front_end=front_end,
123+
)
94124

95125
def test_flow_variant(self):
96126
"""Tests that setting the flow variant uses the right frontend"""
97127

98128
test_tag = "flow_variant default"
99-
cmd = self.build_cmd("", "", "", "SYNTH_HDL_FRONTEND")
129+
cmd = self.build_cmd("SYNTH_HDL_FRONTEND")
100130
self.execute_cmd_int(cmd, test_tag, "slang")
101131
test_tag = "flow_variant verific"
102-
cmd = self.build_cmd("", "", "", "SYNTH_HDL_FRONTEND", "verific")
132+
cmd = self.build_cmd("SYNTH_HDL_FRONTEND", flow_variant="verific")
103133
self.execute_cmd_int(cmd, test_tag, "verific")
104134

105135

‎flow/designs/rapidus2hp/ethmac/rules-base.json‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
"compare": "=="
99
},
1010
"placeopt__design__instance__area": {
11-
"value": 4564,
11+
"value": 4563,
1212
"compare": "<="
1313
},
1414
"placeopt__design__instance__count__stdcell": {
15-
"value": 88225,
15+
"value": 88223,
1616
"compare": "<="
1717
},
1818
"detailedplace__design__violations": {
@@ -32,7 +32,7 @@
3232
"compare": ">="
3333
},
3434
"cts__timing__setup__tns": {
35-
"value": -0.251,
35+
"value": -0.278,
3636
"compare": ">="
3737
},
3838
"cts__timing__hold__ws": {
@@ -52,7 +52,7 @@
5252
"compare": ">="
5353
},
5454
"globalroute__timing__setup__tns": {
55-
"value": -0.733,
55+
"value": -0.792,
5656
"compare": ">="
5757
},
5858
"globalroute__timing__hold__ws": {
@@ -68,7 +68,7 @@
6868
"compare": ">="
6969
},
7070
"finish__timing__setup__tns": {
71-
"value": -0.733,
71+
"value": -0.792,
7272
"compare": ">="
7373
},
7474
"finish__timing__hold__ws": {

‎flow/designs/rapidus2hp/ethmac/rules-verific.json‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"compare": "<="
1313
},
1414
"placeopt__design__instance__count__stdcell": {
15-
"value": 86842,
15+
"value": 86838,
1616
"compare": "<="
1717
},
1818
"detailedplace__design__violations": {
@@ -28,11 +28,11 @@
2828
"compare": "<="
2929
},
3030
"cts__timing__setup__ws": {
31-
"value": -0.0224,
31+
"value": -0.0223,
3232
"compare": ">="
3333
},
3434
"cts__timing__setup__tns": {
35-
"value": -0.297,
35+
"value": -0.28,
3636
"compare": ">="
3737
},
3838
"cts__timing__hold__ws": {
@@ -52,7 +52,7 @@
5252
"compare": ">="
5353
},
5454
"globalroute__timing__setup__tns": {
55-
"value": -0.651,
55+
"value": -0.738,
5656
"compare": ">="
5757
},
5858
"globalroute__timing__hold__ws": {
@@ -68,7 +68,7 @@
6868
"compare": ">="
6969
},
7070
"finish__timing__setup__tns": {
71-
"value": -0.651,
71+
"value": -0.738,
7272
"compare": ">="
7373
},
7474
"finish__timing__hold__ws": {

0 commit comments

Comments
 (0)