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
7 changes: 7 additions & 0 deletions src/cts/src/TritonCTS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1931,6 +1931,13 @@ void TritonCTS::writeClockNDRsToDb(TreeBuilder* builder)
odb::dbTech* tech = db_->getTech();
for (int i = 1; i <= tech->getRoutingLayerCount(); i++) {
odb::dbTechLayer* layer = tech->findRoutingLayer(i);
// Backside routing layers (BPR, BM*, BRDL) are not clock-routing
// targets; clock trees live on the frontside. Skip them so we do
// not create NDR rules whose widths/spacings are derived from
// backside design rules and would never apply to a clock net.
if (layer->isBackside()) {
continue;
}
Comment thread
mguthaus marked this conversation as resolved.
odb::dbTechLayerRule* layerRule = clockNDR->getLayerRule(layer);
if (!layerRule) {
layerRule = odb::dbTechLayerRule::create(clockNDR, layer);
Expand Down
17 changes: 16 additions & 1 deletion src/est/src/EstimateParasitics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,22 @@ double EstimateParasitics::computeAverageCutResistance(sta::Scene* scene)
int max_layer = block_->getMaxRoutingLayer();

if (max_layer < 0) {
max_layer = db_->getTech()->getRoutingLayerCount() / 2;
// Fall back to roughly the middle of the frontside routing stack.
// Halving the total routing-layer count picks the wrong stack when
// backside layers (BPR, BM*, BRDL) push the midpoint below the
// frontside boundary; counting only frontside levels keeps the
// heuristic on the side that hosts the signal routes whose cut
// resistance this function averages.
odb::dbTech* tech = db_->getTech();
const int total_levels = tech->getRoutingLayerCount();
odb::dbTechLayer* first_front = tech->firstFrontsideRoutingLayer();
if (first_front != nullptr) {
const int first_level = first_front->getRoutingLevel();
const int frontside_count = total_levels - first_level + 1;
max_layer = first_level - 1 + frontside_count / 2;
Comment thread
maliberty marked this conversation as resolved.
} else {
max_layer = total_levels / 2;
}
}

odb::dbTechLayer* min_tech_layer
Expand Down
7 changes: 7 additions & 0 deletions src/grt/src/GlobalRouter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -796,6 +796,13 @@ void GlobalRouter::checkAdjacentLayersDirection(int min_routing_layer,
for (int l = min_routing_layer; l < max_routing_layer; l++) {
odb::dbTechLayer* layer_a = tech->findRoutingLayer(l);
odb::dbTechLayer* layer_b = tech->findRoutingLayer(l + 1);
// Backside and frontside routing layers sit on opposite sides of the
// substrate, so "adjacent routing level" across the side boundary is
// not a physical neighbor relationship and direction agreement there
// is not a misconfiguration.
if (layer_a->isBackside() != layer_b->isBackside()) {
continue;
}
Comment thread
mguthaus marked this conversation as resolved.
if (layer_a->getDirection() == layer_b->getDirection()) {
logger_->error(
GRT,
Expand Down
Loading