Range of datatype in layer_proc.rbm script

edited August 2013 in Ruby Scripting

I need to associate a range of datatype to a layer and another range to another layer in a layer_proc.rbm script.
For instance :

nwell = input(3,0)

nwell_others = input(3,1 to 255) # : how to write this line ?

Thanks,

OkGuy

Comments

  • edited November -1

    Hi OkGuy,

    Right now it is not possible to specify input in that way. You can map input layers when reading (layer mapping table in the reader options - see http://www.klayout.de/doc/about/layer_mapping.html). That means you can map datatype 1-255 to 1 and work with 1 in the layer processor script. But that is just a workaround.

    Do you really have "all" datatypes? Usually there is a distinct set of datatypes, i.e. for routing, via, fill and it is sufficient to merge three or four. It's a bit tedious to write, but avoids problems when somebody invents a new datatype which is not supposed to be mixed with the others.

    Regards,

    Matthias

Sign In or Register to comment.