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
Value Returned
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
Return to top