Could you please help me with skill script to find out transistors with width less than 1u in complete hierarchy.
Thanks in advance.
Essentially this comes down to traversing a design hierarchically. During that traversal you need for one to collect master cells to make sure you dive down just once into each master and moreover instances with their masters being transistors with a width less than 1u. The (recursive) code below roughly does that:
(defun hierarchyTraverse (cv collectedMasters tinyTransistors) (let () (foreach inst cv~>instances (when <instance is a transistor with a small width> ; <--- pseudo code (if tinyTransistors then (nconc tinyTransistors (list inst)) else tinyTransistors = (list inst)))) (foreach master (setof mst cv~>instanceMasters !mst~>isParamCell) (unless collectedMasters collectedMasters = (list master)) (unless (member master collectedMasters) (nconc collectedMasters (list master)) (hierarchyTraverse master collectedMasters tinyTransistors))) tinyTransistors))
Call it like this: (hierarchyTraverse topDesignCellView nil nil)
There is one piece of pseudo code in there which is in the when statement were I check for the "tiny transistor"...I leave it up to you to determine that. For a PCell instance you might use a PCell parameter, for a fixed cell you don't have that option.There's probably a hundred or ways to achieve what you want...the above is just supposed to give you one idea of how things might work.