Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

7/11/24, 2:38 PM Changing the number of series instances in a schematic - Custom IC Design - Cadence Technology Forums - Cadence Comm…

/* respcell.il

Author A.D.Beckett
Group Custom IC (UK), Cadence Design Systems Ltd.
Language SKILL
Date Apr 07, 2014
Modified
By

Example of a series resistor pcell.

Original version only contained connectivity - this one contains "graphics"


too so that if you descend into the schematic you can probe nets.

***************************************************

SCCS Info: @(#) respcell.il 04/07/14.11:02:22 1.2

*/

procedure(abCreateResPcell(libName cellName)
let( (pcellId)
unless( ddGetObj(libName)
error("Couldn't open library %L" libName)
)

pcellId = pcDefinePCell(
list( ddGetObj(libName) cellName "schematic" "schematic" )

;------------------------------------------------------------------
; Default Parameters
;------------------------------------------------------------------
(
(ns "1")
)
let(( pcCV masterCv instName instId netP netM numInsts y (resHeight 0.37
(wireLen 0.125) pinMaster pinFig wire lastCoord)

pcCV = pcCellView

;------------------------------------------------------------------
; open master cellviews
;------------------------------------------------------------------
masterCv = dbOpenCellViewByType( "analogLib" "res" "symbol" nil "r" )
pinMaster=dbOpenCellViewByType("basic" "iopin" "symbol")

numInsts=atoi(ns)
when(numInsts<1 numInsts=1)

;----------------------------------------------------------------
; Create nets and terminals
;----------------------------------------------------------------
netP=dbMakeNet(pcCV "PLUS")
netM=dbMakeNet(pcCV "MINUS")
dbCreateTerm(netP "PLUS" "inputOutput")
dbCreateTerm(netM "MINUS" "inputOutput")
y=0
pinFig=dbCreateInst(pcCV pinMaster "" 0:y "R0")
dbCreatePin(netP pinFig)
lastCoord=0:y

https://community.cadence.com/cadence_technology_forums/f/custom-ic-design/40177/changing-the-number-of-series-instances-in-a-schematic 5/8

You might also like