mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-08-30 01:48:43 +02:00
Corrected an error that causes alias names for layers to become the
principle layer name, which should not happen (especially in the case of space, where layers may be aliased to "space" to make them ignored on input). Also: Implemented a "-<types>" option to the "substrate" record in the techfile to declare types which shield layers from the substrate. This allows types like pwell to be used in different contexts, e.g., as part of the substrate, or as a P-well in deep N-well, without requiring a different type. This works in conjunction with the recently-implemented "+<types>" ID types for devices. All of this may seem unnecessary but helps to reduce the number of layers needing to be defined, and the subsequent complexity of the DRC rulesets.
This commit is contained in:
@@ -3546,7 +3546,11 @@ extSubsFunc(tile, arg)
|
||||
Tile *tile;
|
||||
FindRegion *arg;
|
||||
{
|
||||
int pNum;
|
||||
Rect tileArea;
|
||||
TileType type;
|
||||
TileTypeBitMask *smask;
|
||||
int extSubsFunc3();
|
||||
|
||||
if (IsSplit(tile))
|
||||
{
|
||||
@@ -3554,6 +3558,17 @@ extSubsFunc(tile, arg)
|
||||
if (type == TT_SPACE) return 0; /* Should not happen */
|
||||
}
|
||||
|
||||
/* Run second search in the area of the tile on the substrate plane */
|
||||
/* to make sure that no shield types are covering this tile. */
|
||||
|
||||
TiToRect(tile, &tileArea);
|
||||
smask = &ExtCurStyle->exts_globSubstrateShieldTypes;
|
||||
for (pNum = PL_TECHDEPBASE; pNum < DBNumPlanes; pNum++)
|
||||
if (TTMaskIntersect(&DBPlaneTypes[pNum], smask))
|
||||
if (DBSrPaintArea((Tile *) NULL, arg->fra_def->cd_planes[pNum],
|
||||
&tileArea, smask, extSubsFunc3, (ClientData)NULL) != 0)
|
||||
return (1);
|
||||
|
||||
/* Mark this tile as pending and push it */
|
||||
PUSHTILE(tile, arg->fra_pNum);
|
||||
|
||||
@@ -3568,11 +3583,22 @@ extSubsFunc2(tile, arg)
|
||||
{
|
||||
int pNum;
|
||||
Rect tileArea;
|
||||
TileTypeBitMask *smask;
|
||||
int extSubsFunc3();
|
||||
|
||||
TiToRect(tile, &tileArea);
|
||||
|
||||
/* Run second search in the area of the tile on the substrate plane */
|
||||
/* to make sure that no shield types are covering this tile. */
|
||||
|
||||
smask = &ExtCurStyle->exts_globSubstrateShieldTypes;
|
||||
for (pNum = PL_TECHDEPBASE; pNum < DBNumPlanes; pNum++)
|
||||
if (TTMaskIntersect(&DBPlaneTypes[pNum], smask))
|
||||
if (DBSrPaintArea((Tile *) NULL, arg->fra_def->cd_planes[pNum],
|
||||
&tileArea, smask, extSubsFunc3, (ClientData)NULL) != 0)
|
||||
return (1);
|
||||
|
||||
/* Run third search in the area of the tile on the substrate plane */
|
||||
/* to make sure that nothing but space is under these tiles. */
|
||||
|
||||
pNum = ExtCurStyle->exts_globSubstratePlane;
|
||||
|
||||
Reference in New Issue
Block a user