Not signed in (Sign In)

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorjuliaya
    • CommentTimeNov 23rd 2017
    Hello all,

    I'm trying to write a very simple DRC check and run it in batch mode.
    It is working just fine , but for cases that my gds file have multiple top cells in it.
    Actually I know the name of the top cell I need to check, and tried to select it writing :


    , but the DRC continues to fail with error message:
    klayout -b -rd gds_file=my.gds -rd top_cell=mytop -r try.drc
    *** ERROR: In try.drc: The layout has multiple top cells in Layout::top_cell
    *** ERROR: The layout has multiple top cells in Layout::top_cell in MacroInterpreter::execute
    try.drc:1:in `execute_drc'
    :/built-in-macros/drc_interpreters.lym:94:in `execute'

    It must be something very stupid I'm doing wrong, but still I could not figure out what is wrong.

    Thanks in advance,
    • CommentAuthorMatthias
    • CommentTimeNov 28th 2017 edited

    Hi Yulia,

    the solution is actually very simple:

    source($gds_file, $top_cell)

    should do the job.


    • CommentAuthorjuliaya
    • CommentTimeNov 29th 2017
    Hi Mattias,

    Thank you very much. Did not think it's that simple