2
XOasis Functions
This section provides syntax, descriptions, and examples for the SKILL functions associated with the XOasis translator.
There are three types of SKILL functions in XOasis:
User-defined SKILL Functions
There are two types of user-defined SKILL functions in XOasis:
User-defined Command Line SKILL Functions
poCellNameMap
For information related to this function, see poCellNameMap.
poLayerMap
For information related to this function, see poLayerMap.
poTextMap
For information related to this function, see poTextMap.
poParamCellNameMap
For information related to this function, see poParamCellNameMap.
poPreTranslate
For information related to this function, see poPreTranslate.
poPostTranslate
For information related to this function, see poPostTranslate.
piCellNameMap
For information related to this function, see piCellNameMap.
piLayerMap
For information related to this function, see piLayerMap.
piTextMap
For information related to this function, see piTextMap.
piPreTranslate
For information related to this function, see piPreTranslate.
piPostTranslate
For information related to this function, see piPostTranslate.
User-defined GUI SKILL Functions
xoasInOnCancel
xoasInOnCancel()
Description
This is a user-defined function, which is called when you press the Cancel button.
Value Returned
Example
procedure( xoasInOnCancel()
sprintf(“Translation canceled“)
);procedure
xoasInOnTranslate
xoasInOnTranslate()
Description
This is a user-defined function, which is called when you press the Apply or Translate button.
Value Returned
Example
procedure( xoasInOnTranslate()
sprintf(“Starting Translation“)
);procedure
xoasInOnCompletion
xoasInOnCompletion(t_num) =>t_num
Description
This is a user-defined function, which is called when the translation is completed.
Arguments
Value Returned
|
Returns an integer value. If the translation is completed with error then it returns a non-zero value. However, if the translation is completed without any error then it returns zero. |
Example
In this example, if the function returns 0, the translation is completed successfully. However, if the function returns any non-zero value, then errors occurred during translation.
procedure( xoasInOnCompletion( status )
prog( ( )
fprintf(outPort "In xoasInOnCompletion of XOasis In GUI: %d\n" status)
if( status == 0 then
fprintf(outPort "Successfully completed\n" status)
else
fprintf(outPort "Error occured during translation\n" status)
);if
);prog
)
xoasOutOnCancel
xoasOutOnCancel()
Description
This is a user-defined function, which is called when you press the Cancel button.
Arguments
Value Returned
Example
procedure( xoasOutOnCancel()
sprintf(“Translation canceled“)
);procedure
xoasOutOnTranslate
xoasOutOnTranslate()
Description
This is a user-defined function, which is called when you press the Apply or Translate button.
Arguments
Value Returned
Example
procedure( xoasOutOnTranslate()
sprintf(“Starting Translation“)
);procedure
xoasOutOnCompletion
xoasOutOnCompletion(t_num) =>t_num
Description
This is a user-defined function, which is called when the translation is completed.
Arguments
Value Returned
|
Returns an integer value. If the translation is completed with error then it returns a non-zero value. However, if the translation is completed without any error then it returns 0. |
Example
In this example, if the function returns 0, the translation is completed successfully. However, if the function returns any non-zero value, then the error has occurred during translation.
procedure( xoasOutOnCompletion( status )
prog( ( )
fprintf(outPort "In xoasOutOnCompletion of XOasis Out GUI: %d\n"
status)
if( status == 0 then
fprintf(outPort "Successfully completed\n" status)
else
fprintf(outPort "Error occured during translation\n" status)
);if
);prog
)
GUI SKILL Functions
xoasInGetField
xoasInGetField(t_optionName) =>t_value/ nil
Description
Enables you to access GUI field values from the XOasis In form. You can access all the GUI field values using the appropriate option name.
Arguments
|
The name of the field that needs to be accessed from the XOasis In form.
Valid values are the command line option name of the XOasis In form field, |
Value Returned
|
If the field name specified in the |
Example
Using SKILL commands, you can access the values specified in various fields, such as text box, check box, radio button, drop-down menu, and mapping tables, of the XOasis In form. A few examples are given below:
-
Text box: If you want to access the value in the OASIS File field in the XOasis In form, then you need to enter the following syntax in CIW:
xoasInGetField("oasisFile")=> "
test.gds" -
Check box: On the Geometry tab, if you want to access the value selected in the Ignore Box Records option, then you need to enter the following syntax in CIW:
xoasInGetField("ignoreBoxes")=> "
This field returns a Boolean value.true" -
Radio Button: On the General tab, if you want to access the value selected in the Label Case Sensitivity option, then you need to enter the following syntax in CIW:
xoasInGetField("labelCase")=> "
upper" -
Mapping Table: On the Layer tab, if you want to access the table with the layer map entries, then you need to enter the following syntax in CIW:
xoasInGetField("layerMap")=> "
l.map"
Here, the l.map file contains the layer mapping entries.
xoasInSetField
xoasInSetField(
t_optionName
t_value
)
=> t / nil
Description
Enables you to populate GUI field values in the XOasis In form. You can populate all the GUI field values using the appropriate option name and value.
Arguments
|
The name of the field that needs to be populated in XOasis In form.
Valid values are the command line option name of the XOasis In form field, |
|
Value Returned
Example
Using SKILL commands, you can populate the values in various fields, such as text box, check box, radio button, drop-down menu, and mapping tables, of the XOasis In form. A few examples are given below:
-
Text box: If you want to populate the OASIS File field in the XOasis In form, then you need to enter the following syntax in CIW:
xoasInSetField("oasisFile""test.gds") -
Check box: On the Geometry tab, if you want to select the Ignore Box Records option, then you need to enter the following syntax in CIW:
This field accepts the Boolean value.xoasInSetField("ignoreBoxes""true") -
Radio Button: On the General tab, if you want to select the Label Case Sensitivity option as upper, then you need to enter the following syntax in CIW:
xoasInSetField("labelCase""upper") -
Mapping Table: On the Layer tab, if you want to populate the table with the layer map entries, then you need to enter the following syntax in CIW:
xoasInSetField("layerMap""l.map")
xoasInDoTranslate
xoasInDoTranslate()
Description
Issues the XOasis In command based on the GUI field values. By default, this function is a non-blocking function. However, if the Import OASIS into Virtual Memory option is selected, then this function becomes a blocking function.
xoasInDoTranslate function, you need to specify the value for the OASIS File and specify the value for either Library fields or the OASIS File field in the XOasis In form.Argument
Value Returned
nil
Example
In this example, you translate OASIS File,in.gds, to library,lib1. To do this, you need to execute the following functions:
xoasInSetField("oasisFile" "in.gds")
xoasInSetField("library" "lib1")
xoasInDoTranslate()
xoasOutGetField
xoasOutGetField(t_optionName) =>t_value / nil
Description
Enables you to access GUI field values from the XOasis Out form. You can access all the GUI field values using the appropriate option name.
Arguments
|
The name of the field that needs to be accessed from the XOasis Out form.
Valid values are the command line option name of the XOasis Out form field, |
Value Returned
|
If the field name specified in the t_optionName argument is incorrect |
Example
If you want to access the value in the OASIS File field in the XOasis Out form, then you need to enter the following syntax in CIW:
xoasOutGetField("strmFile")
=> "test.gds"
If you want to access the value selected in the Export OASIS from Virtual Memory check box, then you need to enter the following syntax in CIW:
xoasOutGetField("virtualMemory")
This field returns a Boolean value.
xoasOutSetField
xoasOutSetField(
t_optionName
t_value)
=> t / nil
Description
Enables you to populate GUI field values in the XOasis Out form. You can populate all the GUI field values using the appropriate option name and value.
Arguments
|
The name of the field that needs to be populated in the XOasis Out form.
Valid values are the command line option name of the XOasis Out form field, |
|
Value Returned
Example
If you want to populate the OASIS File field in the XOasis Out form, then you need to enter the following syntax in CIW:
xoasOutSetField("oasisFile""test.gds")
However, there are some special cases where you want to translate a copy of the design present in the virtual memory. To do this, you need to select the Export OASIS from Virtual Memory check box by using the following syntax in CIW:
xoasOutSetField("virtualMemory" "true")
xoasOutDoTranslate
xoasOutDoTranslate()
Description
Issues the XOasis Out command based on the GUI field values. By default, this function is a non-blocking function. However, if the Export OASIS from Virtual Memory option is selected, then this function becomes a blocking function.
xoasOutDoTranslate function, you need to either specify the values for both the OASIS File and Library fields or the Cell List File field in the XOasis Out form.Argument
Value Returned
nil
Example
In this example, you translate library,lib1, to OASIS file,out.gds. To do this, you need to execute the following functions:
xoasOutSetField("oasisFile" "out.gds")
xoasOutSetField("library" "lib1")
xoasOutDoTranslate()
Callback Functions
xoasInOnCancelCB
xoasInOnCancelCB(
t_mode
S_callbackFunction
)
t / nil
Description
Registers or unregisters a user-defined callback function when you click the Cancel button on the XOasis In form.
Arguments
|
Specifies mode to register or unregister the user-defined callback function. |
|
|
Name or function symbol of a user-defined callback function. |
|
Value Returned
Examples
Register the user-defined callback function myxoasInOnCancel when the Cancel button is clicked on the XOasis In form.
procedure( myxoasInOnCancel()
print("Cancel button clicked")
)
xoasInOnCancelCB("r" 'myxoasInOnCancel)
xoasInOnCancelCB("r" "myxoasInOnCancel")
Unregister the user-defined callback function myxoasInOnCancel when the Cancel button is clicked on the XOasis In form.
procedure( myxstInOnCancel()
print("Cancel button clicked")
)
xoasInOnCancelCB ("d" 'myxoasInOnCancel)
xoasInOnCancelCB("d" "myxoasInOnCancel")
xoasInOnCompletionCB
xoasInOnCompletionCB(
t_mode
S_callbackFunction
)
=> t / nil
Description
Registers or unregisters a user-defined callback function when the XOasis In translation is complete.
Arguments
|
Specifies mode to register or unregister the user-defined callback function. |
|
|
Name or function symbol of a user-defined callback function. |
|
Value Returned
Examples
Register the user-defined callback function myxoasInOnCompletion when the XOasis In translation is complete.
procedure( myxoasInOnCompletion()
print("Translation completed with status %L")
)
xoasInOnCompletionCB("r" 'myxoasInOnCompletion)
xoasInOnCompletionCB("r" "myxoasInOnCompletion")
Unregister the user-defined callback function myxoasInOnCompletion when the XOasis In translation is complete.
procedure( myxoasInOnCompletion()
print("Cancel button clicked")
)
xoasInOnCompletionCB ("d" 'myxoasInOnCompletion)
xoasInOnCompletionCB("d" "myxoasInOnCompletion")
xoasInOnTranslateCB
xoasInOnTranslateCB(
t_mode
S_callbackFunction
)
=> t / nil
Description
Registers or unregisters a user-defined callback function when you click the Apply or Translate button on the XOasis In form.
Arguments
|
Specifies mode to register or unregister the user-defined callback function. |
|
|
Name or function symbol of a user-defined callback function. |
|
Value Returned
Examples
Register the user-defined callback function myxoasInOnTranslate when the XOasis In translation is complete.
procedure( myxoasInOnTranslate()
print("Translate button clicked")
)
xoasInOnTranslateCB("r" 'myxoasInOnTranslate)
xoasInOnTranslateCB("r" "myxoasInOnTranslate")
Unregister the user-defined callback function myxoasInOnTranslate when the XOasis In translation is complete.
procedure( myxstInOnTranslate()
print("Cancel button clicked")
)
xoasInOnTranslateCB("d" 'myxoasInOnTranslate)
xoasInOnTranslateCB("d" "myxoasInOnTranslate")
xoasOutOnCancelCB
xoasOutOnCancelCB(
t_mode
S_callbackFunction
)
=> t / nil
Description
Registers or unregisters a user-defined callback function when you click the Cancel button on the XOasis Out form.
Arguments
|
Specifies mode to register or unregister the user-defined callback function. |
|
|
Name or function symbol of a user-defined callback function. |
|
Value Returned
Examples
Register the user-defined callback function myxoasOutOnCancel when you click the Cancel button on the XOasis Out form.
procedure( myxoasOutOnCancel()
print("Cancel button clicked")
)
xoasOutOnCancelCB("r" 'myxoasOutOnCancel)
xoasOutOnCancelCB("r" "myxoasOutOnCancel")
Unregister the user-defined callback function myxoasOutOnCancel when you click the Cancel button on the XOasis Out form.
procedure( myxoasOutOnCancel()
print("Cancel button clicked")
)
xoasOutOnCancelCB("d" 'myxoasOutOnCancel)
xoasOutOnCancelCB("d" "myxoasOutOnCancel")
xoasOutOnCompletionCB
xoasOutOnCompletionCB(
t_mode
S_callbackFunction
)
=> t / nil
Description
Registers or unregisters a user-defined callback function when the XOasis Out translation is complete.
Arguments
|
Specifies mode to register or unregister the user-defined callback function. |
|
|
Name or function symbol of a user-defined callback function. |
|
Value Returned
Examples
Register the user-defined callback function myxoasOutOnCompletion when the XOasis Out translation is complete.
procedure( myxoasOutOnCompletion()
print("Translation completed with status %L")
)
xoasOutOnCompletionCB("r" 'myxoasOutOnCompletion)
xoasOutOnCompletionCB("r" "myxoasOutOnCompletion")
Unregister the user-defined callback function myxoasOutOnCompletion when the XOasis Out translation is complete.
procedure( myxoasOutOnCompletion()
print("Cancel button clicked")
)
xoasOutOnCompletionCB ("d" 'myxoasOutOnCompletion)
xoasOutOnCompletionCB("d" "myxoasOutOnCompletion")
xoasOutOnTranslateCB
xoasOutOnTranslateCB(
t_mode
S_callbackFunction
)
=> t / nil
Description
Registers or unregisters a user-defined callback function when you click the Apply or Translate button on the XOasis Out form
Arguments
|
Specifies mode to register or unregister the user-defined callback function. |
|
|
Name or function symbol of a user-defined callback function. |
|
Value Returned
Examples
Register the user-defined callback function myxoasOutOnTranslate when the XOasis Out translation is complete.
procedure( myxoasOutOnTranslate()
print("Translate button clicked")
)
xoasOutOnTranslateCB("r" 'myxoasOutOnTranslate)
xoasOutOnTranslateCB("r" "myxoasOutOnTranslate")
Unregister the user-defined callback function myxoasOutOnTranslate when the XOasis Out translation is complete.
procedure( myxoasOutOnTranslate()
print("Cancel button clicked")
)
xoasOutOnTranslateCB ("d" 'myxoasOutOnTranslate)
xoasOutOnTranslateCB("d" "myxoasOutOnTranslate")
Return to top