Product Documentation
Digital Design Netlisting and Simulation SKILL Reference
Product Version IC23.1, June 2023

hnlMapCellModuleName

hnlMapCellModuleName( 
d_cellViewId 
[ t_viewList 
t_pathName 
t_LibName 
t_cellName 
t_viewName 
t_isCellTopCell ]
)
=> name

Description

Returns the netlist module name of the cellview, the cellViewId. It adds the <cell name><module name> mapped pair into the model section of the name map associated with the hnlCurrentCell variable. The cellViewId must be a non-stopping instance. For a design opened in the configuration view, you must specify the additional arguments.

Arguments

d_cellViewId

The cellViewId of cell view.

t_viewList

Effective view list.

This argument must also be supplied if hierarchical configuration is used.

t_pathName

Path name string.

This argument must also be supplied if hierarchical configuration is used.

t_LibName

Configuration library name.

This argument must also be supplied if hierarchical configuration is used.

t_cellName

Cell name.

This argument must also be supplied if hierarchical configuration is used.

t_viewName

View name.

This argument must also be supplied if hierarchical configuration is used.

t_isCellTopCell

If this cell is top cell.

This argument must also be supplied if hierarchical configuration is used.

Value Returned

name

The netlist module name of the cellview, the cellViewId.

Examples

Example 1: You can generate a SILOS netlist in which an instance in a schematic called 122 appears as follows:

(INST1 CKT122

Use the following code in your formatter:

   fprintf( hnlNetlistFile
hnlMapName( hnlCurrentInstName) )
fprintf( hnlNetlistFile
hnlMapCellModuleName( hnlCurrentMaster ) )

To create the netlist for the schematic instance 122, use the following code:

   fprintf( hnlNetlistFile "\n.MACRO %s" 
hnlMapCellModuleName( hnlCurrentCell ) )

Example 2: When working with the configuration view of a design, you can use the hnlMapCellModuleName function for the cell header in the hnlPrintTopCellHeader or hnlPrintDeviceHeader functions as follows:

mapname = hnlMapCellModuleName(
hnlCurrentCell
hnlCurrentCellViewList
hnlCurrentCellPath
hnlCurrentCellConfigLibname
hnlCurrentCellConfigCellname
hnlCurrentCellConfigViewname
hnlIsTopConfigCell
)

In the configuration view, you can also use the hnlMapCellModuleName function for a non-stopping cell in the hnlPrintInst function as follows:

mapname = hnlMapCellModuleName(
hnlCurrentMaster
hnlCurrentMasterViewList
hnlCurrentMasterPathString
hnlCurrentMasterConfigLibName
hnlCurrentMasterConfigCellName
hnlCurrentMasterConfigViewName
hnlCurrentMasterIsTopCellConfig
)

Related Topics

OSS Functions


Return to top
 ⠀
X