Search
»»»Home «««
Framework
Screenshots
FAQ
»»»TELL «««
Types
Operators
Functions
Example
»»»Toped «««
Database
Cells
Add
Select
Edit
Properties
Rendering
GUI
Miscellaneous
»»»Ifaces «««
GDSII
OASIS
CIF
DRC

Miscellaneous

This chapter describes some functions that could be convenient during the interactive editor sessions.

setparams

Set a various Toped session parameters. This function give the user an opportunity to change a wide variety of Toped features. Here only the general function syntax is described. The features altered are described separately troughout the documentation.

[Tip]void setparams …

void setparams( param_record )

void setparams( param_record_list )

strmap param_record
A record containing the name of the parameter and its value
strmap list param_record_list
A list of records as described above

The second function gives the opportunity to set a number of parameters with a single function call.

Example 1. setparams

   setparams({"UNDO_DEPTH","100"});

top

report_layers

Prints the list of the used layers. Depending on the input parameters, the function reports used layers only in a certain cell, or layers used in that cells and in all cells referenced in it.

[Tip]void report_layers …

layout report_layers( cell_name, recursive )

layout report_layers( recursive )

string cell_name
Target cell name
bool recursive
When false, only the layers used in cell_name will be reported. When true, the layers used in the entire cell hierarchy starting with cell_name will be reported

The second function reports the layers used in the current cell.

Example 2. report_layers

   report_layers("some_cell",true);

top

getlaytext

Returns the string contents of a text object. If the input is a non-text object the function flags a runtime error.

[Tip]string getlaytext( tobject )
layout tobject
target text object

The object type can be obtained using getlaytype function.

Example 3. getlaytext

   layout list objects = select();
   if (length(objects) > 0)
   {
      if (_lmtext == getlaytype(objects[0]))
      {
         string name = getlaytext(objects[0]);
         //... more code
      }
      //... more code
   }

top

getlayref

Returns the name of the referenced cell. If the input is not a reference object the function flags a runtime error.

[Tip]string getlayref( robject )
layout robject
target reference object

The object type can be obtained using getlaytype function.

Example 4. getlayref

   layout list objects = select();
   if (length(objects) > 0)
   {
      if (_lmref == getlaytype(objects[0]))
      {
         string cellname = getlayref(objects[0]);
         //.... more code
      }
      //.... more code
   }

top

getlaytype

Returns the type of the layout object. Toped defines a list of integer constants with the layout types (see constants).

[Tip]int getlaytype( lobject )
layout lobject
target layout object

See the examples in getlayref , getlaytext.

top