Skip to content

Commit

Permalink
base_TII3q_v3.bit
Browse files Browse the repository at this point in the history
  • Loading branch information
aorgazf committed Oct 25, 2024
1 parent b2c2f99 commit 7a0fdd7
Showing 1 changed file with 35 additions and 22 deletions.
57 changes: 35 additions & 22 deletions src/qibosoq/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,32 +184,45 @@ def serve(host, port):
with TCPServer((host, port), ConnectionHandler) as server:
server.ad_clock = HMC7044()
server.ti_dac = DAC80508()
print(cfg.QICKSOC_LOCATION)
qick_soc = QickSoc(bitfile=cfg.QICKSOC_LOCATION)

### SET POWER FOR DACs ###
# ### SET POWER FOR DACs ###

# dac_2280 = qick_soc.usp_rf_data_converter_0.dac_tiles[0].blocks[0]
# dac_2281 = qick_soc.usp_rf_data_converter_0.dac_tiles[0].blocks[1]
# dac_2290 = qick_soc.usp_rf_data_converter_0.dac_tiles[1].blocks[0]
# dac_2291 = qick_soc.usp_rf_data_converter_0.dac_tiles[1].blocks[1]
# dac_2292 = qick_soc.usp_rf_data_converter_0.dac_tiles[1].blocks[2]
# dac_2293 = qick_soc.usp_rf_data_converter_0.dac_tiles[1].blocks[3]
# dac_2300 = qick_soc.usp_rf_data_converter_0.dac_tiles[2].blocks[0]
# dac_2280.SetDACVOP(40000) # POWER FOR RF FLUX DAC (muA)
# dac_2281.SetDACVOP(40000) # POWER FOR RF FLUX DAC (muA)
# dac_2290.SetDACVOP(40000) # POWER FOR DRIVE DAC (muA)
# dac_2291.SetDACVOP(40000) # POWER FOR DRIVE DAC (muA)
# dac_2292.SetDACVOP(40000) # POWER FOR DRIVE DAC (muA)
# dac_2293.SetDACVOP(40000) # POWER FOR DRIVE DAC (muA)
# dac_2300.SetDACVOP(2250) # HIGH POWER FOR READOUT DAC (muA) # 2250 uA to 40500 uA

# ### ENABLE MULTI TILE SYNCHRONIZATION ###

# qick_soc.usp_rf_data_converter_0.mts_dac_config.RefTile = 2
# qick_soc.usp_rf_data_converter_0.mts_dac_config.Tiles = 0b0011
# qick_soc.usp_rf_data_converter_0.mts_dac_config.SysRef_Enable = 1
# qick_soc.usp_rf_data_converter_0.mts_dac_config.Target_Latency = -1
# qick_soc.usp_rf_data_converter_0.mts_dac()

dac_2280 = qick_soc.usp_rf_data_converter_0.dac_tiles[0].blocks[0]
dac_2281 = qick_soc.usp_rf_data_converter_0.dac_tiles[0].blocks[1]
dac_2290 = qick_soc.usp_rf_data_converter_0.dac_tiles[1].blocks[0]
dac_2291 = qick_soc.usp_rf_data_converter_0.dac_tiles[1].blocks[1]
dac_2292 = qick_soc.usp_rf_data_converter_0.dac_tiles[1].blocks[2]
dac_2293 = qick_soc.usp_rf_data_converter_0.dac_tiles[1].blocks[3]
dac_2300 = qick_soc.usp_rf_data_converter_0.dac_tiles[2].blocks[0]
dac_2280.SetDACVOP(40000) # POWER FOR RF FLUX DAC (muA)
dac_2281.SetDACVOP(40000) # POWER FOR RF FLUX DAC (muA)
dac_2290.SetDACVOP(40000) # POWER FOR DRIVE DAC (muA)
dac_2291.SetDACVOP(40000) # POWER FOR DRIVE DAC (muA)
dac_2292.SetDACVOP(40000) # POWER FOR DRIVE DAC (muA)
dac_2293.SetDACVOP(40000) # POWER FOR DRIVE DAC (muA)
dac_2300.SetDACVOP(2250) # HIGH POWER FOR READOUT DAC (muA) # 2250 uA to 40500 uA

### ENABLE MULTI TILE SYNCHRONIZATION ###

qick_soc.usp_rf_data_converter_0.mts_dac_config.RefTile = 2
qick_soc.usp_rf_data_converter_0.mts_dac_config.Tiles = 0b0011
qick_soc.usp_rf_data_converter_0.mts_dac_config.SysRef_Enable = 1
qick_soc.usp_rf_data_converter_0.mts_dac_config.Target_Latency = -1
qick_soc.usp_rf_data_converter_0.mts_dac()
dac_2300.SetDACVOP(3000) # LOW POWER FOR READOUT DAC (muA)

dac_2301 = qick_soc.usp_rf_data_converter_0.dac_tiles[2].blocks[1]
dac_2301.SetDACVOP(20000) # LOW POWER FOR READOUT DAC (muA)

dac_2302 = qick_soc.usp_rf_data_converter_0.dac_tiles[2].blocks[2]
dac_2302.SetDACVOP(20000) # LOW POWER FOR READOUT DAC (muA)

dac_2303 = qick_soc.usp_rf_data_converter_0.dac_tiles[2].blocks[3]
dac_2303.SetDACVOP(20000) # LOW POWER FOR READOUT DAC (muA)

server.qick_soc = qick_soc

Expand Down

0 comments on commit 7a0fdd7

Please sign in to comment.