Product Documentation
Virtuoso ADE SKILL Reference
Product Version IC23.1, November 2023

ansCdlPrintSwitchPCellSubcktConn

ansCdlPrintSwitchPCellSubcktConn(
&_fp
l_connections
)

Description

Writes into the auCdl netlist the switch Pcell connections specified by hnlSpecialPCellLibCell in the .simrc file.

Arguments

&_fp

File handle used to write the string in the netlist using the artFprintf SKILL function.

l_connections

List of terminals specified for the switch Pcells.

Value Returned

None

Examples

Consider that hnlSpecialPCellLibCell is defined in .simrc as shown below:

hnlSpecialPCellLibCell = list( list("lib1" "SW") list("lib2" "cell2"))

By default, the value of connections is a list ("POS" "NEG")and subckt definition for the cell SW and cell2 is as below.

.SUBCKT SW_close POS NEG
.ENDS
.SUBCKT SW_open POS NEG
.ENDS
.SUBCKT cell2_close POS NEG
.ENDS
.SUBCKT cell2_open POS NEG
.ENDS

You can use the following procedure to modify connections.

procedure(ansCdlPrintSwitchPCellSubcktConn( fp connections )
    foreach( cn connections
      artFprintf( fp "%s " cn) 
    ) 
)

Return to top
 ⠀
X