Python Scripting for reading an Excel file and creating a polar array on Klayout Macro

2»

Comments

  • KLayout >= 0.29.4

    After a long gap (nearly four years), I needed to revise and modify the sample code for this post to work with KLayout >= 0.29.4 (the latest as of today), where

    • Updated the PCell parameters
    • Added one more cell hierarchy to make a complete circular lens (perhaps intended by the original poster)
    • Changed the output file format: GDS2 ---> OASIS

    on macOS Monterey

    ### <KazzzS-RealKL1642A.py> processed <RealKL1642.csv> ###
        (a) KLayout version: KLayout 0.29.4
        (b) Machine info: Darwin, MacBookPro2.local, x86_64
        (c) Using PCell?: Yes
        (d) Total number of instances inserted to 'quadrant': 1,399,419
        (e) Total number of instances under 'MetaLens': 5,597,680
        (f) Verification: 4 x (d) + 4 - (e) = 0
        (g) Timing info: Sys=0.870[sec]  User=24.930[sec]  Wall=25.822[sec]
    




    on Linux Mint 20.3 (14-year old machine)

    ### <KazzzS-RealKL1642A.py> processed <RealKL1642.csv> ###
        (a) KLayout version: KLayout 0.29.4
        (b) Machine info: Linux, xxxxyy, x86_64
        (c) Using PCell?: Yes
        (d) Total number of instances inserted to 'quadrant': 1,399,419
        (e) Total number of instances under 'MetaLens': 5,597,680
        (f) Verification: 4 x (d) + 4 - (e) = 0
        (g) Timing info: Sys=0.040[sec]  User=35.910[sec]  Wall=35.975[sec]
    
Sign In or Register to comment.