lxCanSwapSDFunction
layoutXL lxCanSwapSDFunction string "user_Defined_SKILL_Function"
Description
Sets the name of a user-defined SKILL function that determines whether the source and drain pins can be swapped.
The user-defined SKILL function must return t if the Pcell master of the instance has a Pcell parameter that swaps the locations of the S and D pins, and if for this instance you want swapping to be enabled. Otherwise, it should return nil.
If the user-defined SKILL function set by this environment variable returns t, and Layout XL needs to swap the S and D pins, then the function defined in lxSwapSDFunction is called with an instance to update the Pcell parameter that swaps the locations of the S and D pins.
The
S and D pins can be swapped using the Pcell parameter only when both lxCanSwapSDFunction and lxSwapSDFunction are defined.GUI Equivalent
Example
envGetVal("layoutXL" "lxCanSwapSDFunction")
envSetVal("layoutXL" "lxCanSwapSDFunction" 'string "canSwapSD")
Related Topics
List of Layout XL Environment Variables
Return to top