From 8d753b5ac73e612b9e33a3b489518a8b7187f715 Mon Sep 17 00:00:00 2001 From: Matt Guthaus Date: Wed, 7 Nov 2018 11:58:31 -0800 Subject: [PATCH] Primitive cells only keep the largest pin shape. --- compiler/base/utils.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/compiler/base/utils.py b/compiler/base/utils.py index 6e25730b..51f115f4 100644 --- a/compiler/base/utils.py +++ b/compiler/base/utils.py @@ -100,12 +100,11 @@ def get_gds_pins(pin_names, name, gds_filename, units): cell = {} for pin_name in pin_names: cell[str(pin_name)]=[] - pin_list=cell_vlsi.getAllPinShapes(str(pin_name)) - for pin_shape in pin_list: - (layer,boundary)=pin_shape - rect=[vector(boundary[0],boundary[1]),vector(boundary[2],boundary[3])] - # this is a list because other cells/designs may have must-connect pins - cell[str(pin_name)].append(pin_layout(pin_name, rect, layer)) + pin_shape=cell_vlsi.getPinShape(str(pin_name)) + (layer,boundary)=pin_shape + rect=[vector(boundary[0],boundary[1]),vector(boundary[2],boundary[3])] + # this is a list because other cells/designs may have must-connect pins + cell[str(pin_name)].append(pin_layout(pin_name, rect, layer)) return cell def get_libcell_pins(pin_list, name, units):