Skip to content
Snippets Groups Projects
Commit 2f32f41a authored by Paulus Kruger's avatar Paulus Kruger
Browse files

ADC JESD test added

parent e99a7618
Branches
Tags
No related merge requests found
Pipeline #57579 passed
...@@ -141,6 +141,9 @@ device_registers: ...@@ -141,6 +141,9 @@ device_registers:
- name: JESD_control1 - name: JESD_control1
description: JESD link control description: JESD link control
address: 0x5F address: 0x5F
- name: JESD_control3
description: JESD link control
address: 0x61
- name: SYNC_control - name: SYNC_control
address: 0x3A address: 0x3A
- name: CML_level - name: CML_level
...@@ -534,11 +537,23 @@ variables: ...@@ -534,11 +537,23 @@ variables:
driver: I2C_RCU driver: I2C_RCU
devreg: [ADC1.JESD_control1,ADC2.JESD_control1,ADC3.JESD_control1] devreg: [ADC1.JESD_control1,ADC2.JESD_control1,ADC3.JESD_control1]
width: 8 width: 8
rw: ro rw: rw
dtype: uint8 dtype: uint8
dim: 96 dim: 96
dim2: [3,32] dim2: [3,32]
debug: true debug: true
mask: ANT_mask
- name: RCU_ADC_JESD3
driver: I2C_RCU
devreg: [ADC1.JESD_control3,ADC2.JESD_control3,ADC3.JESD_control3]
width: 8
rw: rw
dtype: uint8
dim: 96
dim2: [3,32]
debug: true
mask: ANT_mask
- name: RCU_ADC_CML_level - name: RCU_ADC_CML_level
driver: I2C_RCU driver: I2C_RCU
......
from test_common import *
connect()
#name="RCU_ADC_JESD3"
name="RCU_ADC_JESD"
#RCU=[0];
RCU=[x for x in range(32)];
Att=[0x14]*3 #default
Att=[0x34]*3
#RCU=[0,1,2,3,16,17,18,19];
#Att=[0x24]*3 #8-bit 0010, 0100 PN9
#Att=[10,10,10]
setAntmask(RCU)
att=get_debug_value(name+"_R")
print("JESD old:",att[:15])
for r in RCU:
att[3*r:3*r+3]=Att
print("JESD set:",att[:15])
set_debug_value(name+"_RW",att)
time.sleep(0.5)
att=get_debug_value(name+"_R")
print("JESD new:",att[:15])
disconnect()
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment