Skip to content

Commit 4884929

Browse files
committed
Don't connect with M2 on M3 RoutingPads.
1 parent 8b40b6e commit 4884929

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

anabatic/src/NetBuilderHV.cpp

+9-2
Original file line numberDiff line numberDiff line change
@@ -259,16 +259,23 @@ namespace Anabatic {
259259

260260
cdebug_log(145,0) << "flags: " << flags << endl;
261261
if ((rpDepth == 0) or (rpDepth == 2)) {
262+
const Layer* contactLayer = Session::getBuildContactLayer( 1 );
263+
size_t wireDepth = RoutingGauge::nlayerdepth;
262264
cdebug_log(145,0) << "case: METAL1 or METAL3 RoutingPad." << endl;
265+
if (rpDepth == 2) {
266+
cdebug_log(145,0) << "METAL3 override." << endl;
267+
contactLayer = Session::getRoutingLayer( 2 );
268+
wireDepth = 2;
269+
}
263270

264271
if (flags & HAccess) {
265272
cdebug_log(145,0) << "case: HAccess" << endl;
266273

267274
if ( ((flags & VSmall) and not ((flags & UseNonPref))) or (flags & Punctual) ) {
268275
cdebug_log(145,0) << "case: VSmall and *not* UseNonPref" << endl;
269276

270-
AutoContact* subContact1 = AutoContactTurn::create( gcell, rp->getNet(), Session::getBuildContactLayer(1) );
271-
AutoSegment::create( rpSourceContact, subContact1, Flags::Horizontal );
277+
AutoContact* subContact1 = AutoContactTurn::create( gcell, rp->getNet(), contactLayer );
278+
AutoSegment::create( rpSourceContact, subContact1, Flags::Horizontal, wireDepth );
272279
rpSourceContact = subContact1;
273280

274281
flags &= ~UseNonPref;

0 commit comments

Comments
 (0)