get layer from net trace issue

Hi @Matthias ,
I traced a net and show id of layer of them by following script.
I think the number i got is wrong but i dont know. Can you help?
Here is result i get:

    2
    2
    4
    1000000001 #has issue with this number because i put this number to ly.get_info function but get app crash
    1000000002 #has issue with this number because i put this number to ly.get_info function but get app crash
    1000000003 #has issue with this number because i put this number to ly.get_info function but get app crash
app = RBA::Application.instance
mw = app.main_window
curCell = RBA::CellView::active.cell_name
ly = RBA::CellView::active.layout
lv = mw.current_view
top_c = lv.cellview(0).view().active_cellview().cell
cv = RBA::CellView::active
tech=cv.technology
p_trace = RBA::Point::new(682,893)
layer_trace = ly.layer(32,70)
tracer = RBA::NetTracer::new
tracer.trace(tech, ly , top_c, p_trace,layer_trace)

tracer.each_element do |e|
    if(!e.shape.is_text)
        id = e.layer
        puts id.to_s
        ly.get_info(id) #get app crash here
    end
end

Please find attached gds also

Thank you,
dai

Comments

  • Hi @Matthias ,
    I found the cause for it. There are some layers merged to one.

    Thank you,
    dai

  • Ah, right. These layer numbers are internal ones and there is no representation for that in the original layout.

    Matthias

Sign In or Register to comment.