Skip to content

Commit 76fe3d8

Browse files
committed
directional only if needed
1 parent 501a33e commit 76fe3d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tech/techgen.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -580,15 +580,15 @@ void emit_width_spacing_c (pp_t *pp, Contact *mat, char *nm = NULL)
580580
emit_surround (pp, mat, mat->getUpperName(), mat->getSymUp());
581581
}
582582
if (mat->isAsym()) {
583-
if (mat->getAsym() > 0) {
583+
if (mat->getAsym() > 0 && (mat->getAsym() != mat->getSym())) {
584584
pp_printf (pp, "surround %s %s %d directional \\",
585585
mat->getName(), mat->getLowerName(), mat->getAsym());
586586
pp_nl;
587587
pp_printf (pp, " \"%s surround of via %s < %d in one direction\"",
588588
mat->getLowerName(), mat->getName(), mat->getAsym());
589589
pp_nl;
590590
}
591-
if (mat->getAsymUp() > 0) {
591+
if (mat->getAsymUp() > 0 && (mat->getAsymUp() != mat->getSymUp())) {
592592
pp_printf (pp, "surround %s %s %d directional \\",
593593
mat->getName(), mat->getUpperName(), mat->getAsymUp());
594594
pp_nl;

0 commit comments

Comments
 (0)