Data Objects
CDF descriptions are represented by g_cdfDataId objects, which are SKILL objects that you can manipulate like other SKILL database objects. Just like data IDs, you assign the g_cdfDataId of a particular CDF description to a variable that you create. The most common variable name is g_cdfDataId. To create a new CDF data object for a new CDF description, use this type of ID assignment:
newCellId = cdfCreateUserCellCDF(test_cell)
cdf:25092160
newCellId->type
"userCellData"
To access an existing CDF data object for an existing CDF description, use this type of ID assignment:
baseCell = cdfGetBaseCellCDF(test_cell)
baseCell->dataFile->value
"bjt"
newCellId and baseCell are arbitrary names that you create.
Although you can add any information to a g_cdfDataId, an object uses the following elements to hold the information that it maintains:
id
The database object (cell ID or library ID) to which the g_cdfDataId is attached. This element is not editable.
type
There are seven types of g_cdfDataId:
parameters
List of parameters attached to a g_cdfDataId. This element is not editable.
doneProc
An optional procedure name that is used to validate changes to a parameter on a component instance as a part of post-processing. The procedure must take a single argument–the instance that has been modified.
The doneProc callback function can be used to modify the cdfgForm elements that are editable.
The default value is nil. This element is editable.
formInitProc
An optional procedure name. If specified, the procedure is executed when the contents of the CDF are displayed on a form. The default value is nil. This element is editable.
This procedure runs when you use the Add Instance and Edit Properties commands. You can use the procedure for preprocessing CDF data. This procedure must take a single argument, the g_cdfDataId being added to the form.
formInitProc, the Edit Properties Object command for the schematic application is not aware of the modification and does not update the changes made with formInitProc. You can avoid this problem by setting the variable cdfgForm->cdfModified to the value t.Parameters
The following elements control the display of parameters on a form.
| Element | Description | Default Value |
Return to top