From 74ea0a29b43f3c6af720e09c7bbd0df3d3631ba3 Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Thu, 26 Mar 2020 10:39:37 -0400 Subject: [PATCH] Corrected problem with ResSimple where extresist was not handling non-manhattan geometry in device types. --- resis/ResSimple.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/resis/ResSimple.c b/resis/ResSimple.c index f55b0845..7c7bc23f 100644 --- a/resis/ResSimple.c +++ b/resis/ResSimple.c @@ -750,7 +750,16 @@ ResCalculateChildCapacitance(me) for (tptr = me->rn_te; tptr != NULL; tptr = tptr->te_nextt) { dev = tptr->te_thist; - t = TiGetType(dev->rd_tile); + /* Hack for non-Manhattan geometry. Only one side of a split */ + /* tile should correspond to a device type. */ + if (IsSplit(dev->rd_tile)) + { + t = TiGetLeftType(dev->rd_tile); + if (ExtCurStyle->exts_device[t] == NULL) + t = TiGetRightType(dev->rd_tile); + } + else + t = TiGetType(dev->rd_tile); if (dev->rd_fet_gate == me) { devptr = ExtCurStyle->exts_device[t];