Product Documentation
Virtuoso Parameterized Cell SKILL Reference
Product Version IC23.1, August 2023

pcUserGenerateInstancesOfMaster

pcUserGenerateInstancesOfMaster( 
d_masterCV 
l_instanceList
t_tag 
p_port 
) 
=> t / nil

Description

A user-defined procedure called by the compiler for every master Pcell in a master Pcell. The compiler calls the procedure before it generates code for instances (but not arrays) for the master. The procedure is normally used to generate code to switch masters.

Arguments

d_masterCV

Database ID of master Pcell.

l_instanceList

List of database IDs for all instances of d_masterCV in the master Pcell.

t_tag

Name of the master that can be used in SKILL code for placing instances of the master.

p_port

Port to which the output code is generated.

Value Returned

t

Compiler does not generate the code to reproduce the instances of this master Pcell in the submaster Pcell.

nil

Compiler generates code to reproduce the instances of this master Pcell in the submaster Pcell as if the procedure were not called.

Examples

procedure( pcUserGenerateInstancesOfMaster(master instances tag port )
if( master~>cellName == \"userSpecialNand\" then
; switch master to generic one
fprintf(port %s = dbOpenCellViewByType(pcLib \"nand\" \"%s\")\n"
tag master~>viewName)
)
; always want code for instances to be generated by
; compiler
nil
)

Replaces instances of userSpecialNand cell with instances of nand cell.


Return to top
 ⠀
X