Skip to content

Commit

Permalink
directional only if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
rmanohar committed Oct 18, 2021
1 parent 501a33e commit 76fe3d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tech/techgen.cc
Original file line number Diff line number Diff line change
Expand Up @@ -580,15 +580,15 @@ void emit_width_spacing_c (pp_t *pp, Contact *mat, char *nm = NULL)
emit_surround (pp, mat, mat->getUpperName(), mat->getSymUp());
}
if (mat->isAsym()) {
if (mat->getAsym() > 0) {
if (mat->getAsym() > 0 && (mat->getAsym() != mat->getSym())) {
pp_printf (pp, "surround %s %s %d directional \\",
mat->getName(), mat->getLowerName(), mat->getAsym());
pp_nl;
pp_printf (pp, " \"%s surround of via %s < %d in one direction\"",
mat->getLowerName(), mat->getName(), mat->getAsym());
pp_nl;
}
if (mat->getAsymUp() > 0) {
if (mat->getAsymUp() > 0 && (mat->getAsymUp() != mat->getSymUp())) {
pp_printf (pp, "surround %s %s %d directional \\",
mat->getName(), mat->getUpperName(), mat->getAsymUp());
pp_nl;
Expand Down

0 comments on commit 76fe3d8

Please sign in to comment.