Home Forums Nazca Questions and Answers Pins do not seem to be functioning correctly

Tagged: , , ,

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #6870
    p.forde
    Participant

    Hello!

    I am having some issues with pins in BBs created from gds. As far as I can see my syntax is the same as in the tutorials but when I try to connect to the pins I either get an error that “b0” is not defined or no error but regardless any subsequent bb is not automatically put to the previous bbs b0. Also when I use “print(ECC.pin.keys())” with ECC being the cell name, only “<span style=”color: #000000; font-family: monospace; font-size: 14px; white-space: pre-wrap;”>dict_keys([‘org’])” is returned.

    I’m sure there is some simple reason I am missing.

    My code looks like this:

    import nazca as nd
    import os
    import nazca.geometries as geom
    import nazca.demofab as demofab
    import nazca.interconnects as IC
    
    with nd.Cell(name='EdgeCouplerC') as ECC:
    # load GDS BB
      ECC = nd.load_gds(
      filename='WG_450.gds',
      cellname='WG_450'
      )
    
      # Add Pins
      ECC.put()
      nd.Pin('b0', width=2).put(250, 0, 0)
      nd.put_stub()
    
    
    ECC.put(0)
    nd.export_gds()
    #6873
    Xaveer
    Moderator

    Dear p.forde,

    Indeed, something simple you’re missing: the name you assign to the new cell object (ECC) is the same as the name you assign to the loaded GDS cell (ECC). They should be different as they refer to different objects.

    Xaveer

    #6875
    p.forde
    Participant

    Thank you Xaveer, indeed something very simple overlooked! Flying along now with my layouts, thanks again!

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