Home Forums Nazca How to open and modify a gds?

Tagged: , ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #6456
    yw3a14
    Participant

    Hi, I’m a new user of Nazca. I get a question about open and modify a gds. I have some ready gds files but they were created by others and there is no pin in the cells. Therefore, I would like to add ‘a0’ ‘b0’ pins in these gds. However, I can only load these gds but I cannot modify them. since the function ‘load_gds’ cannot active the cell. How can I active an existed cell and modify it? Thanks.

    #6458
    Ronald
    Keymaster

    Hello yw3a14,

    This tutorial will be helpful.
    Basically, create a new cell, load the gds with load_gds().put() and create and put pins with nd.Pin().put(). You can also flatten the gds in your new cell using instantiate=False:

    import nazca as nd
    
    with nd.Cell(name='cellname') as C:
        nd.load_gds(
            filename='<filename>',
            cellname='<cellname>',
            instantiate=False, 
        ).put(0) # puts (0, 0) in the gds at (0, 0) of cell C.
    
        # Add Pins
        nd.Pin('<name>', width=<width>, xs=...).put(<x>, <y>, <angle>) 
        ...
    
    C.put(0)

    Ronald

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.