From cbd279d718a58e4233bde593690908f6bf08cc61 Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Thu, 17 May 2018 09:50:55 -0400 Subject: [PATCH] Changed behavior of DEF read to flag labels as "sticky" so that the layer a label is attached to in the DEF file does not get reassigned. --- lef/defRead.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lef/defRead.c b/lef/defRead.c index 351dff81..dc530af1 100644 --- a/lef/defRead.c +++ b/lef/defRead.c @@ -808,7 +808,7 @@ DefReadPins(f, rootDef, sname, oscale, total) GeoTransRect(&t, currect, &topRect); DBPaint(rootDef, &topRect, curlayer); DBPutLabel(rootDef, &topRect, -1, pinname, curlayer, - pinNum | pinDir | PORT_DIR_MASK); + pinNum | pinDir | PORT_DIR_MASK | LABEL_STICKY); pending = FALSE; pinNum++; } @@ -823,7 +823,7 @@ DefReadPins(f, rootDef, sname, oscale, total) GeoTransRect(&t, currect, &topRect); DBPaint(rootDef, &topRect, curlayer); DBPutLabel(rootDef, &topRect, -1, pinname, curlayer, - pinNum | pinDir | PORT_DIR_MASK); + pinNum | pinDir | PORT_DIR_MASK | LABEL_STICKY); pinNum++; } break;