magic file to klayout for SKY130

Hi,

I have tried to transfer a SKY130 magic file .mag to KLayout. It can be read, but the GDS numbers are not OK, only the layer names even if I use the layer mapping such as (also attached) :
NWELL:64/20
DIFF:65/20
TAP:65/44
DNWELL:64/18

What is the proper method to read a SKY130 mag file with KLayout ? Maybe the mapping is sensitive to layer name case ?

Thank you, BRgds,
Laurent

Comments

  • Hi Laurent,

    I just tried to reproduce the issue, but it seems to work for me:

    # With test data from klayout sources:
    strm2gds --layer-map-file=map.txt testdata/magic/gf180mcu_ocd_sram_test/gf180mcu_ocd_sram_top.mag.gz test.gds
    

    with "map.txt":

    metal1:100/0
    via1:101/0
    metal2:102/0
    via2:103/0
    metal3:104/0
    via3:105/0
    metal4:106/0
    via4:107/0
    metal5:108/0
    glass:10/0
    isosubstrate:11/0
    psubdiff:12/0
    fillblock:1/0
    

    gives me a GDS file with the layers mapped.

    However, I found a problem when the map is not fully specified - i.e. some layers are in the Magic file that are not mapped - in that case, KLayout stalls (https://github.com/KLayout/klayout/issues/2438).

    In general, Tim advises against KLayout, since Magic does some magic translating vias and for other reasons. So the recommended method is to use Magic to convert to GDS.

    Best regards,

    Matthias

  • Hi Matthias,

    Indeed, I have installed and used magic command : gds write output.gds
    And my goal was to check if I can get the same result from a KLayout import mag file, because magic is only on linux, not on windows.

    BRgds,
    Laurent

Sign In or Register to comment.