Changed the property attribute number used for cell instance names

from 98 (arbitrarily selected) to 61 (apparently commonly used by
other tools).  This should help increase compatibility with GDS
files output from other tools.
This commit is contained in:
Tim Edwards 2021-06-13 12:23:07 -04:00
parent df26cf1ace
commit 6e09586c54
4 changed files with 5 additions and 3 deletions

View File

@ -1 +1 @@
8.3.177 8.3.178

View File

@ -882,7 +882,8 @@ calmaElementSref(filename)
if (rtype == CALMA_PROPATTR) if (rtype == CALMA_PROPATTR)
{ {
READI2(propAttrType); READI2(propAttrType);
if (propAttrType == CALMA_PROP_USENAME) if (propAttrType == CALMA_PROP_USENAME ||
propAttrType == CALMA_PROP_USENAME_STD)
{ {
char *s; char *s;

View File

@ -1346,7 +1346,7 @@ calmaWriteUseFunc(use, f)
if (!calmaIsUseNameDefault(use->cu_def->cd_name, use->cu_id)) if (!calmaIsUseNameDefault(use->cu_def->cd_name, use->cu_id))
{ {
calmaOutRH(6, CALMA_PROPATTR, CALMA_I2, f); calmaOutRH(6, CALMA_PROPATTR, CALMA_I2, f);
calmaOutI2(CALMA_PROP_USENAME, f); calmaOutI2(CALMA_PROP_USENAME_STD, f);
calmaOutStringRecord(CALMA_PROPVALUE, use->cu_id, f); calmaOutStringRecord(CALMA_PROPVALUE, use->cu_id, f);
} }

View File

@ -99,6 +99,7 @@
#define CALMA_NUMRECORDTYPES 60 /* Number of above types */ #define CALMA_NUMRECORDTYPES 60 /* Number of above types */
/* Property types defined for magic */ /* Property types defined for magic */
#define CALMA_PROP_USENAME_STD 61 /* To record non-default cell use ids */
#define CALMA_PROP_USENAME 98 /* To record non-default cell use ids */ #define CALMA_PROP_USENAME 98 /* To record non-default cell use ids */
#define CALMA_PROP_ARRAY_LIMITS 99 /* To record non-default array limits */ #define CALMA_PROP_ARRAY_LIMITS 99 /* To record non-default array limits */