Skip to content

Commit 97c8c01

Browse files
committed
Merge branch 'master' into mpl-use-best-result
2 parents 6044662 + be58ca3 commit 97c8c01

212 files changed

Lines changed: 30926 additions & 29651 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.

.bazelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ build --incompatible_strict_action_env
5555
#build --remote_cache=https://storage.googleapis.com/megaboom-bazel-artifacts
5656
#build --remote_cache_compression=true
5757

58-
try-import %workspace$/user.bazelrc
58+
try-import %workspace%/user.bazelrc

BUILD.bazel

Lines changed: 28 additions & 210 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ load(
1212
"OPENROAD_LIBRARY_SRCS_EXCLUDE",
1313
"OPENROAD_LIBRARY_SRCS_INCLUDE",
1414
)
15-
load("//bazel:tcl_encode_sta.bzl", "tcl_encode_sta")
1615
load("//bazel:tcl_encode_or.bzl", "tcl_encode")
16+
load("//bazel:tcl_encode_sta.bzl", "tcl_encode_sta")
1717
load("//bazel:tcl_wrap_cc.bzl", "tcl_wrap_cc")
1818

1919
package(
@@ -50,12 +50,21 @@ config_setting(
5050
# TODO: once project is properly decomposed, we don't
5151
# need these blanked dependencies in multiple places anymore.
5252
OPENROAD_LIBRARY_DEPS = [
53-
"//src/utl",
5453
":munkres",
55-
"//src/odb",
56-
"//src/gui",
5754
":openroad_version",
5855
":opensta_lib",
56+
":ord",
57+
"//src/ant",
58+
"//src/ant:make-antenna-checker",
59+
"//src/cts",
60+
"//src/dbSta",
61+
"//src/dpl",
62+
"//src/grt",
63+
"//src/gui",
64+
"//src/odb",
65+
"//src/rsz",
66+
"//src/stt",
67+
"//src/utl",
5968
"@boost.asio",
6069
"@boost.geometry",
6170
"@boost.graph",
@@ -123,6 +132,7 @@ cc_binary(
123132
":openroad_version",
124133
":opensta_lib",
125134
"//src/odb",
135+
"//src/rsz",
126136
"//src/utl",
127137
"@rules_cc//cc/runfiles",
128138
"@tk_tcl//:tcl",
@@ -135,17 +145,8 @@ cc_library(
135145
include = OPENROAD_LIBRARY_SRCS_INCLUDE,
136146
allow_empty = True,
137147
exclude = OPENROAD_LIBRARY_SRCS_EXCLUDE,
138-
) + [
139-
"src/stt/src/flt/etc/POST9.cpp",
140-
"src/stt/src/flt/etc/POWV9.cpp",
141-
],
142-
hdrs = glob(
143-
include = OPENROAD_LIBRARY_HDRS_INCLUDE,
144-
exclude = [
145-
"src/utl/include/utl/Logger.h",
146-
"src/utl/include/utl/CFileUtils.h",
147-
],
148148
),
149+
hdrs = glob(OPENROAD_LIBRARY_HDRS_INCLUDE),
149150
copts = OPENROAD_COPTS,
150151
defines = OPENROAD_DEFINES + [
151152
"BUILD_GUI=false",
@@ -163,8 +164,6 @@ cc_library(
163164
exclude = OPENROAD_LIBRARY_SRCS_EXCLUDE,
164165
) + [
165166
"src/OpenRoad.cc",
166-
"src/stt/src/flt/etc/POST9.cpp",
167-
"src/stt/src/flt/etc/POWV9.cpp",
168167
],
169168
hdrs = glob(
170169
include = OPENROAD_LIBRARY_HDRS_INCLUDE,
@@ -183,28 +182,21 @@ cc_library(
183182
deps = OPENROAD_LIBRARY_DEPS,
184183
)
185184

186-
genrule(
187-
name = "post9",
188-
srcs = [
189-
"src/stt/src/flt/etc/POST9.dat",
190-
],
191-
outs = ["src/stt/src/flt/etc/POST9.cpp"],
192-
cmd = "$(execpath //etc:file_to_string) --inputs $(location src/stt/src/flt/etc/POST9.dat) --output \"$@\" --varname post9 --namespace stt::flt",
193-
tools = [
194-
"//etc:file_to_string",
195-
],
196-
)
197-
198-
genrule(
199-
name = "powv9",
200-
srcs = [
201-
"src/stt/src/flt/etc/POWV9.dat",
185+
cc_library(
186+
name = "ord",
187+
hdrs = [
188+
"include/ord/Design.h",
189+
"include/ord/InitOpenRoad.hh",
190+
"include/ord/OpenRoad.hh",
191+
"include/ord/Tech.h",
192+
"include/ord/Timing.h",
193+
"include/ord/Version.hh",
202194
],
203-
outs = ["src/stt/src/flt/etc/POWV9.cpp"],
204-
cmd = "$(execpath //etc:file_to_string) --inputs $(location src/stt/src/flt/etc/POWV9.dat) --output \"$@\" --varname powv9 --namespace stt::flt",
205-
tools = [
206-
"//etc:file_to_string",
195+
includes = [
196+
"include",
197+
"include/ord",
207198
],
199+
visibility = ["//:__subpackages__"],
208200
)
209201

210202
cc_library(
@@ -226,9 +218,6 @@ cc_library(
226218
hdrs = [
227219
":OpenRoadVersion",
228220
],
229-
includes = [
230-
"include/ord",
231-
],
232221
)
233222

234223
genrule(
@@ -252,17 +241,6 @@ tcl_encode(
252241
namespace = "ifp",
253242
)
254243

255-
tcl_encode(
256-
name = "db_sta_tcl",
257-
srcs = [
258-
"src/dbSta/src/dbReadVerilog.tcl",
259-
"src/dbSta/src/dbSta.tcl",
260-
":tcl_scripts",
261-
],
262-
char_array_name = "dbSta_tcl_inits",
263-
namespace = "sta",
264-
)
265-
266244
tcl_encode(
267245
name = "ioplacer_tcl",
268246
srcs = [
@@ -272,24 +250,6 @@ tcl_encode(
272250
namespace = "ppl",
273251
)
274252

275-
tcl_encode(
276-
name = "resizer_tcl",
277-
srcs = [
278-
"src/rsz/src/Resizer.tcl",
279-
],
280-
char_array_name = "rsz_tcl_inits",
281-
namespace = "rsz",
282-
)
283-
284-
tcl_encode(
285-
name = "opendp_tcl",
286-
srcs = [
287-
"src/dpl/src/Opendp.tcl",
288-
],
289-
char_array_name = "dpl_tcl_inits",
290-
namespace = "dpl",
291-
)
292-
293253
tcl_encode(
294254
name = "finale_tcl",
295255
srcs = [
@@ -299,24 +259,6 @@ tcl_encode(
299259
namespace = "fin",
300260
)
301261

302-
tcl_encode(
303-
name = "ant_tcl",
304-
srcs = [
305-
"src/ant/src/AntennaChecker.tcl",
306-
],
307-
char_array_name = "ant_tcl_inits",
308-
namespace = "ant",
309-
)
310-
311-
tcl_encode(
312-
name = "fastroute_tcl",
313-
srcs = [
314-
"src/grt/src/GlobalRouter.tcl",
315-
],
316-
char_array_name = "grt_tcl_inits",
317-
namespace = "grt",
318-
)
319-
320262
tcl_encode(
321263
name = "tapcell_tcl",
322264
srcs = [
@@ -335,15 +277,6 @@ tcl_encode(
335277
namespace = "gpl",
336278
)
337279

338-
tcl_encode(
339-
name = "triton_cts_tcl",
340-
srcs = [
341-
"src/cts/src/TritonCTS.tcl",
342-
],
343-
char_array_name = "cts_tcl_inits",
344-
namespace = "cts",
345-
)
346-
347280
tcl_encode(
348281
name = "rcx_tcl",
349282
srcs = [
@@ -435,15 +368,6 @@ tcl_encode(
435368
namespace = "dst",
436369
)
437370

438-
tcl_encode(
439-
name = "stt_tcl",
440-
srcs = [
441-
"src/stt/src/SteinerTreeBuilder.tcl",
442-
],
443-
char_array_name = "stt_tcl_inits",
444-
namespace = "stt",
445-
)
446-
447371
tcl_encode(
448372
name = "upf_tcl",
449373
srcs = [
@@ -494,26 +418,6 @@ tcl_wrap_cc(
494418
],
495419
)
496420

497-
tcl_wrap_cc(
498-
name = "dbsta_swig",
499-
srcs = [
500-
"src/dbSta/src/dbSta.i",
501-
":error_swig",
502-
":sta_swig_files",
503-
],
504-
module = "dbSta",
505-
namespace_prefix = "sta",
506-
root_swig_src = "src/dbSta/src/dbSta.i",
507-
swig_includes = [
508-
"src/dbSta/src",
509-
"src/odb/src/swig/common",
510-
"src/sta",
511-
],
512-
deps = [
513-
"//src/odb:swig",
514-
],
515-
)
516-
517421
tcl_wrap_cc(
518422
name = "ioplacer_swig",
519423
srcs = [
@@ -528,36 +432,6 @@ tcl_wrap_cc(
528432
],
529433
)
530434

531-
tcl_wrap_cc(
532-
name = "resizer_swig",
533-
srcs = [
534-
"src/rsz/src/Resizer.i",
535-
":error_swig",
536-
":sta_swig_files",
537-
],
538-
module = "rsz",
539-
namespace_prefix = "rsz",
540-
root_swig_src = "src/rsz/src/Resizer.i",
541-
swig_includes = [
542-
"src/rsz/src",
543-
"src/sta",
544-
],
545-
)
546-
547-
tcl_wrap_cc(
548-
name = "opendp_swig",
549-
srcs = [
550-
"src/dpl/src/Opendp.i",
551-
":error_swig",
552-
],
553-
module = "dpl",
554-
namespace_prefix = "dpl",
555-
root_swig_src = "src/dpl/src/Opendp.i",
556-
swig_includes = [
557-
"src/dpl/src",
558-
],
559-
)
560-
561435
tcl_wrap_cc(
562436
name = "finale_swig",
563437
srcs = [
@@ -572,34 +446,6 @@ tcl_wrap_cc(
572446
],
573447
)
574448

575-
tcl_wrap_cc(
576-
name = "ant_swig",
577-
srcs = [
578-
"src/ant/src/AntennaChecker.i",
579-
":error_swig",
580-
],
581-
module = "ant",
582-
namespace_prefix = "ant",
583-
root_swig_src = "src/ant/src/AntennaChecker.i",
584-
swig_includes = [
585-
"src/ant/src",
586-
],
587-
)
588-
589-
tcl_wrap_cc(
590-
name = "fastroute_swig",
591-
srcs = [
592-
"src/grt/src/GlobalRouter.i",
593-
":error_swig",
594-
],
595-
module = "grt",
596-
namespace_prefix = "grt",
597-
root_swig_src = "src/grt/src/GlobalRouter.i",
598-
swig_includes = [
599-
"src/grt/src",
600-
],
601-
)
602-
603449
tcl_wrap_cc(
604450
name = "replace_swig",
605451
srcs = [
@@ -617,20 +463,6 @@ tcl_wrap_cc(
617463
],
618464
)
619465

620-
tcl_wrap_cc(
621-
name = "triton_cts_swig",
622-
srcs = [
623-
"src/cts/src/TritonCTS.i",
624-
":error_swig",
625-
],
626-
module = "cts",
627-
namespace_prefix = "cts",
628-
root_swig_src = "src/cts/src/TritonCTS.i",
629-
swig_includes = [
630-
"src/cts/src",
631-
],
632-
)
633-
634466
tcl_wrap_cc(
635467
name = "tapcell_swig",
636468
srcs = [
@@ -782,20 +614,6 @@ tcl_wrap_cc(
782614
],
783615
)
784616

785-
tcl_wrap_cc(
786-
name = "stt_swig",
787-
srcs = [
788-
"src/stt/src/SteinerTreeBuilder.i",
789-
":error_swig",
790-
],
791-
module = "stt",
792-
namespace_prefix = "stt",
793-
root_swig_src = "src/stt/src/SteinerTreeBuilder.i",
794-
swig_includes = [
795-
"src/stt/src",
796-
],
797-
)
798-
799617
tcl_wrap_cc(
800618
name = "dft_swig",
801619
srcs = [

Jenkinsfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,20 @@ def getParallelTests(String image) {
224224
}
225225

226226
node {
227+
228+
def isDefaultBranch = (env.BRANCH_NAME == 'master')
229+
def daysToKeep = '20';
230+
def numToKeep = (isDefaultBranch ? '-1' : '10');
231+
232+
properties([
233+
buildDiscarder(logRotator(
234+
daysToKeepStr: daysToKeep,
235+
artifactDaysToKeepStr: daysToKeep,
236+
237+
numToKeepStr: numToKeep,
238+
artifactNumToKeepStr: numToKeep
239+
))
240+
]);
227241
stage('Checkout') {
228242
checkout scm;
229243
}

0 commit comments

Comments
 (0)