Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

PROBLEM ON 0.25 VERSION ON LINUX

Hello,

I'm using this script:

=============================

Save as "xor.drc" and run with:

klayout -b -r xor.drc -rd gds1=a.gds -rd gds2=b.gds -rd out=out.gds

#

Useful options:

#

* verbose log:

verbose

#

* enable tiling:

tiles(1.mm, 1.mm)

#

* use 4 cores in parallel (with tiles):

threads(4)

#

l1 = layout($gds1)
l2 = layout($gds2)

$xorresultmio = 0

layers = []
[ l1, l2 ].each do |l|
l.layout.layer_indices.each do |index|
info = l.layout.get_info(index)
layers << [info.layer, info.datatype ]
end
end

layers.sort.uniq.each do |l,d|
log "Running XOR between layer #{l}/ datatype #{d} .."

if l1.input(l, d) ^ l2.input(l, d)
$xorresultmio = 1
end
end

puts [$xorresultmio]

if $xorresultmio == 1
target($out)

collect layers

layers.sort.uniq.each do |l,d|
log "Running XOR between layer #{l}/ datatype #{d} .."

(l1.input(l, d) ^ l2.input(l, d)).output(l, d)

end
end

==========================================

on 0.25 version and I received this error message:

No output cell specified

No error message has been received on version 0.23.11

Regards

Luciano

Comments

  • Please, please, please ... use Markdown formatting for your code. Put a triple backtick in front of it and after it.

    This is unreadable.

    Matthias

  • The solution is to specify an output top cell for "target":

    target($out, "TOP")
    
  • Sorry Matthias for the issue on reading script.
    With your solution It works correctly

    Thanks
    Luciano

Sign In or Register to comment.