Example #1
0
        # lv.zoom_fit()

        ### MATLAB COMMANDER SECTION START ###
        ml_terminal = SonnetLab()
        print("starting connection...")
        from sonnetSim.cMD import CMD

        ml_terminal._send(CMD.SAY_HELLO)
        ml_terminal.clear()
        simBox = SimulationBox(CHIP.dx, CHIP.dy, 600, 600)
        ml_terminal.set_boxProps(simBox)
        print("sending cell and layer")
        from sonnetSim.pORT_TYPES import PORT_TYPES

        ports = [
            SonnetPort(xmon_cross1.cpw_l.end, PORT_TYPES.AUTOGROUNDED),
            SonnetPort(xmon_cross2.cpw_r.end, PORT_TYPES.AUTOGROUNDED)
        ]
        ml_terminal.set_ports(ports)

        ml_terminal.send_polygons(cell, layer_photo)
        ml_terminal.set_linspace_sweep(0.01, 0.01, 1)
        print("simulating...")
        result_path = ml_terminal.start_simulation(wait=True)
        # print("visualizing...")
        # ml_terminal.visualize_sever()
        ml_terminal.release()

        # get the .csv result file and exctract capcity of island in fF
        import shutil
        import os
Example #2
0
        ## DRAWING SECTION END ##
        # lv.zoom_fit()

        ### MATLAB COMMANDER SECTION START ###
        ml_terminal = SonnetLab()
        print("starting connection...")
        from sonnetSim.cMD import CMD

        ml_terminal._send(CMD.SAY_HELLO)
        ml_terminal.clear()
        simBox = SimulationBox(CHIP.dx, CHIP.dy, 600, 600)
        ml_terminal.set_boxProps(simBox)
        print("sending cell and layer")
        from sonnetSim.pORT_TYPES import PORT_TYPES

        ports = [SonnetPort(xmon_cross1.cpw_l.end, PORT_TYPES.AUTOGROUNDED)]
        ml_terminal.set_ports(ports)

        ml_terminal.send_polygons(cell, layer_photo)
        ml_terminal.set_linspace_sweep(0.01, 0.01, 1)
        print("simulating...")
        result_path = ml_terminal.start_simulation(wait=True)
        # print("visualizing...")
        # ml_terminal.visualize_sever()
        ml_terminal.release()

        # get the .csv result file and exctract capcity of island in fF
        import shutil
        import os
        import csv
        ## DRAWING SECTION END ##
        lv.zoom_fit()

        ### MATLAB COMMANDER SECTION START ###
        ml_terminal = SonnetLab()
        print("starting connection...")
        from sonnetSim.cMD import CMD
        ml_terminal._send(CMD.SAY_HELLO)
        ml_terminal.clear()
        simBox = SimulationBox(CHIP.dx, CHIP.dy, CHIP.nX, CHIP.nY)
        ml_terminal.set_boxProps(simBox)
        print("sending cell and layer")
        from sonnetSim.pORT_TYPES import PORT_TYPES
        ports = [
            SonnetPort(point, PORT_TYPES.BOX_WALL)
            for point in [Z0.start, Z0.end]
        ]
        ml_terminal.set_ports(ports)

        ml_terminal.send_polygons(cell, layer_photo)
        ml_terminal.set_ABS_sweep(estimated_freq - freqs_span / 2,
                                  estimated_freq + freqs_span / 2)
        print("simulating...")
        result_path = ml_terminal.start_simulation(wait=True)
        ml_terminal.release()
        ### MATLAB COMMANDER SECTION END ###

        ### RESULT SAVING SECTION START ###
        import shutil
        import os
Example #4
0
        ## DRAWING SECTION END ##
        lv.zoom_fit()

        ### MATLAB COMMANDER SECTION START ###
        ml_terminal = SonnetLab()
        print("starting connection...")
        from sonnetSim.cMD import CMD

        ml_terminal._send(CMD.SAY_HELLO)
        ml_terminal.clear()
        simBox = SimulationBox(CHIP.dx, CHIP.dy, CHIP.nX, CHIP.nY)
        ml_terminal.set_boxProps(simBox)
        print("sending cell and layer")
        from sonnetSim.pORT_TYPES import PORT_TYPES

        ports = [SonnetPort(point, PORT_TYPES.BOX_WALL) for point in [Z0.start, Z0.end]]
        ml_terminal.set_ports(ports)

        ml_terminal.send_polygons(cell, layer_photo)
        ml_terminal.set_ABS_sweep(4.9,5.5)
        print("simulating...")
        result_path = ml_terminal.start_simulation(wait=True)
        ml_terminal.release()
        ### MATLAB COMMANDER SECTION END ###

        ### RESULT SAVING SECTION START ###

        import shutil
        import os
        import csv
c_gamma_ef.place(cell, layer_ph)

cpw_params = CPWParameters(20e3, 10e3)

l = 10217304 - 939895 - 11740

segment_lengths = [l]
#print(segment_lengths)

feedline = CPW_RL_Path(c_gamma_ef.end, "L", cpw_params, 200e3, segment_lengths,
                       [])
feedline.place(cell, layer_ph)

lv.zoom_fit()

c1 = Capacitor(feedline.end,
               params=[5, 108e3, 7e3, 20e3, 20e3, 10e3],
               trans_in=DTrans.R180)
c1 = Capacitor(feedline.end + DPoint(c1.get_length(), 0),
               params=[5, 108e3, 7e3, 20e3, 20e3, 10e3],
               trans_in=DTrans.R180)

c1.place(cell, layer_ph)

cpw_params = CPWParameters(c1.get_width() - 40e3, 20e3)
feedline1 = CPW_RL_Path(c1.start, "L", cpw_params, 0, [100e3], [])
feedline1.place(cell, layer_ph)

ports = [SonnetPort(feedline1.end, PORT_TYPES.BOX_WALL)]
#SonnetPort(feedline1.end, PORT_TYPES.BOX_WALL)]
        ml_terminal = SonnetLab()
        # print("starting connection...")
        from sonnetSim.cMD import CMD

        ml_terminal._send(CMD.SAY_HELLO)
        ml_terminal.clear()
        simBox = SimulationBox(crop_box.width(), crop_box.height(),
                               crop_box.width() / resolution_dx,
                               crop_box.height() / resolution_dy)

        ml_terminal.set_boxProps(simBox)
        # print("sending cell and layer")
        from sonnetSim.pORT_TYPES import PORT_TYPES

        ports = [
            SonnetPort(design.sonnet_ports[0], PORT_TYPES.AUTOGROUNDED),
            SonnetPort(design.sonnet_ports[1], PORT_TYPES.AUTOGROUNDED)
        ]
        [print(sp.point) for sp in ports]
        ml_terminal.set_ports(ports)

        ml_terminal.send_polygons(design.cell, design.layer_ph)
        ml_terminal.set_linspace_sweep(0.01, 0.01, 1)
        print("simulating...")
        result_path = ml_terminal.start_simulation(wait=True)
        ml_terminal.release()

        # get the .csv result file and exctract capcity of island in fF
        import shutil
        import os
        import csv
Example #7
0
l = tmon.start.x - arms_vert_len - 70e3
feedline_cp1 = CPW_RL_Path(DPoint(0, CHIP.dy / 2), "L", drive_cpw_params, R,
                           [l], [])
feedline_cp1.place(canvas)

rec = EmptyRectangle(feedline_cp1.end, 4e3, 15e3)
rec.place(canvas)

cell.shapes(layer_photo).insert(canvas)
cell.shapes(layer_el).insert(ebeam)

lv.zoom_fit()

ports = [
    SonnetPort(feedline_cp1.start, PORT_TYPES.BOX_WALL),
    SonnetPort(DPoint(CHIP.dx, CHIP.dy / 2), PORT_TYPES.BOX_WALL)
]

ml_terminal = SonnetLab()
print("starting connection...")
ml_terminal._send(CMD.SAY_HELLO)
ml_terminal.clear()
ml_terminal.set_boxProps(SimulationBox(CHIP.dx, CHIP.dy, 300, 300))
print("sending cell and layer")

ml_terminal.set_ports(ports)

ml_terminal.send_polygons(cell, layer_ph)
ml_terminal.set_ABS_sweep(6, 6)
print("simulating...")
        lv.zoom_fit()

        ### MATLAB COMMANDER SECTION START ###
        ml_terminal = SonnetLab()
        print("starting connection...")
        from sonnetSim.cMD import CMD

        ml_terminal._send(CMD.SAY_HELLO)
        ml_terminal.clear()
        simBox = SimulationBox(CHIP.dx, CHIP.dy, 900, 1200)
        ml_terminal.set_boxProps(simBox)
        print("sending cell and layer")
        from sonnetSim.pORT_TYPES import PORT_TYPES

        ports = [
            SonnetPort(worm.cop_tail.start, PORT_TYPES.AUTOGROUNDED),
            SonnetPort(xmonCross.cpw_b.end, PORT_TYPES.AUTOGROUNDED)
        ]
        ml_terminal.set_ports(ports)

        ml_terminal.send_polygons(cell, layer_photo)
        ml_terminal.set_linspace_sweep(0.01, 0.01, 1)
        print("simulating...")
        result_path = ml_terminal.start_simulation(wait=True)
        ml_terminal.release()

        # get the .csv result file and exctract capcity of island in fF
        import os
        import csv
        project_dir = os.path.dirname(__file__)
cell.shapes(layer_ph).insert(box)

cpw_params = CPWParameters(20e3, 10e3)

R = 200e3
l_sum = 9836930 - 209296 * 2
#l_sum = 10e6

l_sum_1 = 350e3
l_sum_0 = (l_sum - l_sum_1 * 2) / 2
l_sum_2 = l_sum_0 / 2

l_s_0 = l_sum_0 + 2 * R - np.pi * R
l_s_1 = l_sum_1 + R - np.pi / 2 * R
l_s_2 = l_sum_2 + 2 * R - np.pi / 2 * R

segment_lengths = [l_s_1, l_s_2] + [l_s_0] * 1 + [l_s_2, l_s_1]
#print(segment_lengths)

feedline = CPW_RL_Path(DPoint(0, CHIP.dy / 2), "LRLRRLRRLRL", cpw_params, R,
                       segment_lengths, [-pi / 2, pi / 2] +
                       [pi / 2, -pi / 2, -pi / 2, pi / 2] * 1)
feedline.place(cell, layer_ph)

ports = [
    SonnetPort(feedline.start, PORT_TYPES.BOX_WALL),
    SonnetPort(feedline.end, PORT_TYPES.BOX_WALL)
]

lv.zoom_fit()
Example #10
0
c_g_ge.place(cell, layer_ph)

l = 9848387-767005

segment_lengths = [l]
#print(segment_lengths)

feedline = CPW_RL_Path(c_g_ge.end, "L", cpw_params, 200e3, 
      segment_lengths, [])
feedline.place(cell, layer_ph)

lv.zoom_fit()

c1 = Capacitor_small(feedline.end+DPoint(52e3,0), c_params, 22e3, 10e3, 10e3, trans_in=DTrans.R180)
c1.place(cell, layer_ph)


cpw_params = CPWParameters(20e3, 10e3)
feedline1 = CPW_RL_Path(c1.start, "L", cpw_params, 200e3, 
      [30e3], [])
feedline1.place(cell, layer_ph)

cp = Contact_Pad(feedline1.end+DPoint(600e3,0), cpw_params, pad_length=300e3, trans_in=DTrans.R180)
cp.place(cell, layer_ph)



ports = [SonnetPort(c1.start, PORT_TYPES.BOX_WALL)]
          #SonnetPort(feedline1.end, PORT_TYPES.BOX_WALL)]

lv.zoom_fit()