The following functions relate to the design rule checking subsystem.
This function always returns 1. Out-of-range arguments are set to the maximum permissible values.
[0] | The batch error count limit. |
[1] | The interactive object count limit. |
[2] | The interactive time limit in milliseconds. |
[3] | A flag which indicates interactive DRC is skipped for subcells. |
The return value is always 1. The function fails if the array argument is bad.
0 or negative | One error is reported per object. |
1 | One error of each type is reported per object. |
2 or larger | All errors are reported. |
This function always succeeds, and the previous level (0, 1, 2) is returned.
0 | One error is reported per object. |
1 | One error of each type is reported per object. |
2 | All errors are reported. |
This function always succeeds.
The array argument is an array of size 4 or larger, or 0 can be passed for this argument. If an array is passed, it represents a rectangular area where checking is performed, and the values are in microns in order L,B,R,T. If 0 is passed, the entire area of the current cell is checked.
The second argument can be a file handle opened with the Open function for writing, or the name of a file to open, or an empty string, or a null string or (equivalently) the scalar 0. This sets the destination for error recording. If the argument is null or 0, a file will be created in the current directory using the name template ``drcerror.log.cellname'', where cellname is the current cell. If an empty string is passed (give "" as the argument), output will go to the error log, and appear in the pop-up wich appears on-screen. If a string is given, it is taken as a file name to open.
The function returns an integer, either the number of errors found or -1 on error. If -1 is returned, an error message is probably available from the GetError function.
If the given cellname is null or 0 is passed, the default cell for the named CHD is assumed.
The checking is performed on the areas of a grid, and only the cells needed to render the grid area are read into memory temporarily. The gridsize argument gives the size of this grid, in microns. If 0 is passed, no grid is used, and the entire layout will be read into memory, as in the normal case. The chosen grid size should be should be small enough to avoid page swapping, but too-small of a grid will lengthen checking time (larger is better in this regard). The user can experiment to find a reasonable value for their designs. A good starting value might be 400.0 microns.
The array argument is an array of size 4 or larger, or 0 can be passed for this argument. If an array is passed, it represents a rectangular area where checking is performed, and the values are in microns in order L,B,R,T. If 0 is passed, the entire area of the cellname is checked.
The file_handle_or_name argument can be a file handle opened with the Open function for writing, or the name of a file to open, or an empty or null string or the scalar 0. This sets the destination for error recording. If the argument is null, empty or 0, a file will be created in the current directory using the name template ``drcerror.log.cellname'', where cellname is the top-level cell being checked. If a string is given, it is taken as a file name to open. There is no provision for sending output to the on-screen error logger, unlike in the DRCcheckArea function.
The function returns an integer, either the number of errors found or -1 on error. If -1 is returned, an error message is probably available from the GetError function.