scf_vector_qsort(path->childs, _ses_child_cmp);
}
-static int _topo_layers(scf_vector_t* paths)
+static int _topo_layers(scf_vector_t* paths, ScfEcomponent* B)
{
ses_path_t* child;
ses_path_t* parent;
+ ScfEpin* Bp;
+ ScfEpin* Bn;
ScfEpin* p0;
ScfEpin* p1;
ScfEpin* p;
int j;
int k;
+ Bp = B->pins[SCF_EDA_Battery_POS];
+ Bn = B->pins[SCF_EDA_Battery_NEG];
+
for (i = 0; i < paths->size; i++) {
child = paths->data[i];
child->index = i;
p0 = child->pins->data[0];
p1 = child->pins->data[child->pins->size - 1];
+ if (p0->lid == Bp->lid && p1->lid == Bn->lid)
+ continue;
+
for (j = paths->size - 1; j >= 0; j--) {
parent = paths->data[j];
}
}
- int ret = _topo_layers(ctx->paths);
+ int ret = _topo_layers(ctx->paths, B);
if (ret < 0)
return ret;