import gdsfactory as gf

gf.gpdk.PDK.activate()

c = gf.components.die_frame_with_pads(die_frame='die_frame', ngratings=14, npads=31, grating_pitch=250, pad_pitch=300, grating_coupler='grating_coupler_te', cross_section='strip', pad='pad', edge_to_pad_distance=150, edge_to_grating_distance=150, with_loopback=True, pad_port_name_top='e4', pad_port_name_bot='e2').copy()
c.draw_ports()
c.plot()