Skip to content

Commit db28b81

Browse files
committed
merge master
Signed-off-by: LucasYuki <[email protected]>
2 parents 887d601 + d8e07f5 commit db28b81

File tree

629 files changed

+22475
-18058
lines changed

Some content is hidden

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

629 files changed

+22475
-18058
lines changed

.github/workflows/github-actions-lint-tcl.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Install Dependencies
2020
run: |
2121
python3 -m venv venv
22-
venv/bin/pip install tclint==0.6.1
22+
venv/bin/pip install tclint==0.7.0
2323
2424
- name: Lint
2525
run: |

src/Exception-py.i

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@
44
#ifdef BAZEL
55
%{
66

7-
#include <boost/stacktrace.hpp>
87
#include <cstdlib>
98
#include <sstream>
109

10+
#include "boost/stacktrace/stacktrace.hpp"
1111
#include "utl/Logger.h"
1212
%}
1313
#else
1414
%{
15-
16-
#include <boost/stacktrace.hpp>
15+
1716
#include <cstdlib>
1817
#include <sstream>
1918

19+
#include "boost/stacktrace/stacktrace.hpp"
2020
#include "ord/OpenRoad.hh"
2121
#include "utl/Logger.h"
2222
%}

src/Exception.i

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
// Copied from OpenSTA/tcl/Exception.i
22
// Copyright (c) 2021, Parallax Software, Inc.
3-
//
3+
//
44
// This program is free software: you can redistribute it and/or modify
55
// it under the terms of the GNU General Public License as published by
66
// the Free Software Foundation, either version 3 of the License, or
77
// (at your option) any later version.
8-
//
8+
//
99
// This program is distributed in the hope that it will be useful,
1010
// but WITHOUT ANY WARRANTY; without even the implied warranty of
1111
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212
// GNU General Public License for more details.
13-
//
13+
//
1414
// You should have received a copy of the GNU General Public License
1515
// along with this program. If not, see <https://www.gnu.org/licenses/>.
1616

1717
%{
18-
#include <boost/stacktrace.hpp>
1918
#include <cstdlib>
2019
#include <new>
2120
#include <sstream>
2221

22+
#include "boost/stacktrace/stacktrace.hpp"
2323
#include "ord/OpenRoad.hh"
2424
#include "utl/Logger.h"
2525
%}

src/OpenRoad.cc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,16 +504,21 @@ void OpenRoad::read3DBloxBMap(const std::string& filename)
504504
odb::ThreeDBlox parser(logger_, db_);
505505
parser.readBMap(filename);
506506
}
507+
507508
void OpenRoad::write3Dbv(const std::string& filename)
508509
{
509510
odb::ThreeDBlox writer(logger_, db_, sta_);
510511
writer.writeDbv(filename, db_->getChip());
511512
}
513+
512514
void OpenRoad::write3Dbx(const std::string& filename)
513515
{
514516
odb::ThreeDBlox writer(logger_, db_, sta_);
515517
writer.writeDbx(filename, db_->getChip());
516518
}
519+
520+
// TODO: bool hierarchy should be removed in the future.
521+
// It is retained for a while for backward compatibility.
517522
void OpenRoad::readDb(const char* filename, bool hierarchy)
518523
{
519524
try {
@@ -523,7 +528,7 @@ void OpenRoad::readDb(const char* filename, bool hierarchy)
523528
logger_->error(ORD, 54, "odb file {} is invalid: {}", filename, f.what());
524529
}
525530
// treat this as a hierarchical network.
526-
if (hierarchy) {
531+
if (hierarchy || db_->hasHierarchy()) {
527532
logger_->warn(
528533
ORD,
529534
12,

src/OpenRoad.tcl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,9 @@ sta::define_cmd_args "write_db" {filename}
233233
sta::define_cmd_args "read_db" {[-hier] filename}
234234

235235
proc read_db { args } {
236+
# TODO: -hier is not needed anymore.
237+
# - It will be removed in a future release.
238+
# - It is currently retained for backward compatibility.
236239
sta::parse_key_args "read_db" args keys {} flags {-hier}
237240
sta::check_argc_eq1or2 "read_db" $args
238241
set filename [file nativename [lindex $args 0]]

src/ant/src/AntennaChecker.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ void AntennaChecker::Impl::initAntennaRules()
167167
const odb::dbTechLayerAntennaRule::pwl_pair diffPSR
168168
= antenna_rule->getDiffPSR();
169169

170-
uint wire_thickness_dbu = 0;
170+
uint32_t wire_thickness_dbu = 0;
171171
tech_layer->getThickness(wire_thickness_dbu);
172172

173173
const odb::dbTechLayerType layerType = tech_layer->getType();
@@ -492,7 +492,7 @@ void AntennaChecker::Impl::calculateAreas(
492492

493493
if (it.first->getRoutingLevel() != 0) {
494494
// Calculate side area of wire
495-
uint wire_thickness_dbu = 0;
495+
uint32_t wire_thickness_dbu = 0;
496496
it.first->getThickness(wire_thickness_dbu);
497497
double wire_thickness = block_->dbuToMicrons(wire_thickness_dbu);
498498
info.side_area = block_->dbuToMicrons(gtl::perimeter(node_it->pol)

src/cts/include/cts/TritonCTS.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,10 @@ class TritonCTS
8181
void setSinkBuffer(const char* buffers);
8282

8383
private:
84-
bool isClockCellCandidate(sta::LibertyCell* cell);
8584
std::string selectRootBuffer(std::vector<std::string>& buffers);
8685
std::string selectSinkBuffer(std::vector<std::string>& buffers);
8786
std::string selectBestMaxCapBuffer(const std::vector<std::string>& buffers,
8887
float totalCap);
89-
void inferBufferList(std::vector<std::string>& buffers);
9088
TreeBuilder* addBuilder(CtsOptions* options,
9189
Clock& net,
9290
odb::dbNet* topInputNet,

src/cts/src/TreeBuilder.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include <algorithm>
77
#include <cassert>
88
#include <cmath>
9+
#include <cstdint>
910
#include <limits>
1011
#include <string>
1112
#include <vector>
@@ -26,7 +27,7 @@ void TreeBuilder::mergeBlockages()
2627
namespace gtl = boost::polygon;
2728
using boost::polygon::operators::operator+=;
2829

29-
uint macros_max_dx = 0, macros_max_dy = 0;
30+
uint32_t macros_max_dx = 0, macros_max_dy = 0;
3031
odb::dbBlock* block = db_->getChip()->getBlock();
3132
gtl::polygon_90_set_data<int> blockage_polygons;
3233
// Add the macros into the polygon set

0 commit comments

Comments
 (0)