Home Forums Nazca Building block from a gds file

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #4425
    Kristif
    Participant

    Hi Nazca team,

    is it possible to create a BB from the gds of  a cell, and defining input/output ports for it? In order to manipulate it through code?

    Thank you.

    #4426
    Xaveer
    Moderator

    Dear Kristif,

    There is a tutorial precisely on this: https://nazca-design.org/how-to-make-bb-from-gds/

    That shows how to import a cell from the GDS file and add pins to it in order to use the full Nazca tool set to connect it to the rest of your circuit, just like any other building block.

    Xaveer

    #5121
    lorenzo_btbw
    Participant

    Hi, is it possible to change the layer number of an imported gds file?

    thanks

    #5125
    Katarzyna
    Keymaster

    Dear lorenzo_btbw,

    You can change the layer number of an imported GDS by using a ‘layermap’ argument.
    ‘layermap’ maps the original layer to a new layer. Omitted layers will not be changed.

    For example, you can change layer #1 from a loaded GDS to layer #10 using the following syntax:

    import nazca as nd
    
    nd.load_gds(
        ...
        layermap={1:10},
        ...)
    

    Katarzyna

    #5224
    lorenzo_btbw
    Participant

    Thanks Katarzyna, very helpful!

    One more question, in the Cell definition by enabling autobbox, the cell will be surrounded by a box. Now, is it possible to get dimension and position of this box?

    thank you again

    Lorenzo

    #5228
    Ronald
    Keymaster

    Dear Lorenzo,

    If C is a cell, use

    C.width
    C.length

    These values are set by the autobbox.

    Ronald

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