#============================================================================== # # Abs: LCLS LLRF GENERIC PAD IOC records, where sampling freq is 102 MHz, # so I and Q is interlaced (i.e. alt terms zero for each, so single # array for storage is possible) # # Name: pad.gen102_template # # Note: Signal names must be all uppercase and 12 chars or less to follow # LCLS naming conventions. Signal names must match the names in # device support tables in padApp/src/dev*.c. # #============================================================================== file db/padwaveform.db { # Primary MicName Unit SigName Description Type Scan Ftvl Nelem (ty ch samp file) Flnk pattern { PRIM, LOCA, UNIT, NAME, DESC, DTYP, SCAN, FTVL,NELM, INP, FLNK } #Channel 0 { LAB, 205, 1, TST_0_RAW_WF, "Raw ADC data", PAD, "I/O Intr", SHORT, 512, "#@0 0 0 nofile", "LAB:205:1:TST_0_AVG0"} { LAB, 205, 1, TST_0_S_R_WF, "Raw ADC data for display", PAD, "1 second", SHORT, 512, "#@0 0 0 nofile", "LAB:205:1:TST_0_S_AVG0"} { LAB, 205, 1, TST_0_ZOF_WF, "Raw Zero Offset ADC data", PAD, "1 second", SHORT, 512, "#@10 0 0 nofile", ""} #Channel 1 { LAB, 205, 1, TST_1_RAW_WF, "Raw ADC data", PAD, "I/O Intr", SHORT, 512, "#@0 1 0 nofile", "LAB:205:1:TST_1_AVG0"} { LAB, 205, 1, TST_1_S_R_WF, "Raw ADC data for display", PAD, "1 second", SHORT, 512, "#@0 1 0 nofile", "LAB:205:1:TST_1_S_AVG0"} { LAB, 205, 1, TST_1_ZOF_WF, "Raw Zero Offset ADC data", PAD, "1 second", SHORT, 512, "#@10 1 0 nofile", ""} #Channel 2 { LAB, 205, 1, TST_2_RAW_WF, "Raw ADC data", PAD, "I/O Intr", SHORT, 512, "#@0 2 0 nofile", "LAB:205:1:TST_2_AVG0"} { LAB, 205, 1, TST_2_S_R_WF, "Raw ADC data for display", PAD, "1 second", SHORT, 512, "#@0 2 0 nofile", "LAB:205:1:TST_2_S_AVG0"} { LAB, 205, 1, TST_2_ZOF_WF, "Raw Zero Offset ADC data", PAD, "1 second", SHORT, 512, "#@10 2 0 nofile", ""} #Channel 3 { LAB, 205, 1, TST_3_RAW_WF, "Raw ADC data", PAD, "I/O Intr", SHORT, 512, "#@0 3 0 nofile", "LAB:205:1:TST_3_AVG0"} { LAB, 205, 1, TST_3_S_R_WF, "Raw ADC data for display", PAD, "1 second", SHORT, 512, "#@0 3 0 nofile", "LAB:205:1:TST_3_S_AVG0"} { LAB, 205, 1, TST_3_ZOF_WF, "Raw Zero Offset ADC data", PAD, "1 second", SHORT, 512, "#@10 3 0 nofile", ""} #Channel 4-7 are calibration waveforms for channels 0-3 { LAB, 205, 1, TST_4_RAW_WF, "Raw ADC calibration data", PAD, "I/O Intr", SHORT, 65536,"#@0 4 0 nofile", ""} { LAB, 205, 1, TST_5_RAW_WF, "Raw ADC calibration data", PAD, "I/O Intr", SHORT, 65536,"#@0 5 0 nofile", ""} { LAB, 205, 1, TST_6_RAW_WF, "Raw ADC calibration data", PAD, "I/O Intr", SHORT, 65536,"#@0 6 0 nofile", ""} { LAB, 205, 1, TST_7_RAW_WF, "Raw ADC calibration data", PAD, "I/O Intr", SHORT, 65536,"#@0 7 0 nofile", ""} #Used by all but IFQ { LAB, 205, 1, TST_0_S_P_WF, "Processed ADC data for d", PAD, "1 second", LONG, 512, "#@2 0 0 nofile", ""} { LAB, 205, 1, TST_1_S_P_WF, "Processed ADC data for d", PAD, "1 second", LONG, 512, "#@2 1 0 nofile", ""} { LAB, 205, 1, TST_2_S_P_WF, "Processed ADC data for d", PAD, "1 second", LONG, 512, "#@2 2 0 nofile", ""} { LAB, 205, 1, TST_3_S_P_WF, "Processed ADC data for d", PAD, "1 second", LONG, 512, "#@2 3 0 nofile", ""} #Used by IFQ - 3/19/7 - shouldn't these be deleted from gen102? { LAB, 205, 1, TST_0_S_I_WF, "Processed ADC data for d", PAD, "1 second", LONG, 512, "#@2 0 3 nofile", ""} { LAB, 205, 1, TST_1_S_I_WF, "Processed ADC data for d", PAD, "1 second", LONG, 512, "#@2 1 3 nofile", ""} { LAB, 205, 1, TST_2_S_I_WF, "Processed ADC data for d", PAD, "1 second", LONG, 512, "#@2 2 3 nofile", ""} { LAB, 205, 1, TST_3_S_I_WF, "Processed ADC data for d", PAD, "1 second", LONG, 512, "#@2 3 3 nofile", ""} { LAB, 205, 1, TST_0_S_Q_WF, "Processed ADC data for d", PAD, "1 second", LONG, 512, "#@2 0 4 nofile", ""} { LAB, 205, 1, TST_1_S_Q_WF, "Processed ADC data for d", PAD, "1 second", LONG, 512, "#@2 1 4 nofile", ""} { LAB, 205, 1, TST_2_S_Q_WF, "Processed ADC data for d", PAD, "1 second", LONG, 512, "#@2 2 4 nofile", ""} { LAB, 205, 1, TST_3_S_Q_WF, "Processed ADC data for d", PAD, "1 second", LONG, 512, "#@2 3 4 nofile", ""} # sample=2 for interleaved IQ scalar { LAB, 205, 1, TST_0_SCL_WF, "Scalar correction", PAD, "Passive", SHORT, 512, "#@1 0 2 /data/input/scalar0.dat", ""} { LAB, 205, 1, TST_1_SCL_WF, "Scalar correction", PAD, "Passive", SHORT, 512, "#@1 1 2 /data/input/scalar1.dat", ""} { LAB, 205, 1, TST_2_SCL_WF, "Scalar correction", PAD, "Passive", SHORT, 512, "#@1 2 2 /data/input/scalar2.dat", ""} { LAB, 205, 1, TST_3_SCL_WF, "Scalar correction", PAD, "Passive", SHORT, 512, "#@1 3 2 /data/input/scalar3.dat", ""} } file db/padlongin.db # NB: Signal specifies Q (0) or I (1) { # Primary MicName Unit SigName Description Type Scan (fn ch samp) Flnk pattern { PRIM, LOCA, UNIT, NAME, DESC, DTYP, SCAN, INP, FLNK } #Channel 0 { LAB, 205, 1, TST_0_AVG0, "Average Q", PAD, "Passive", "#@0 0 0", "LAB:205:1:TST_0_AVG1"} { LAB, 205, 1, TST_0_S_AVG0, "Average Q for display", PAD, "Passive", "#@0 0 0", "LAB:205:1:TST_0_S_AVG1"} { LAB, 205, 1, TST_0_AVG1, "Average I", PAD, "Passive", "#@1 0 0", ""} { LAB, 205, 1, TST_0_S_AVG1, "Average I for display", PAD, "Passive", "#@1 0 0", ""} #Channel 1 { LAB, 205, 1, TST_1_AVG0, "Average Q", PAD, "Passive", "#@0 1 0", "LAB:205:1:TST_1_AVG1"} { LAB, 205, 1, TST_1_S_AVG0, "Average Q for display", PAD, "Passive", "#@0 1 0", "LAB:205:1:TST_1_S_AVG1"} { LAB, 205, 1, TST_1_AVG1, "Average I", PAD, "Passive", "#@1 1 0", ""} { LAB, 205, 1, TST_1_S_AVG1, "Average I for display", PAD, "Passive", "#@1 1 0", ""} #Channel 2 { LAB, 205, 1, TST_2_AVG0, "Average Q or S", PAD, "Passive", "#@0 2 0", "LAB:205:1:TST_2_AVG1"} { LAB, 205, 1, TST_2_S_AVG0, "Average Q or S for display",PAD, "Passive","#@0 2 0", "LAB:205:1:TST_2_S_AVG1"} { LAB, 205, 1, TST_2_AVG1, "Average I", PAD, "Passive", "#@1 2 0", ""} { LAB, 205, 1, TST_2_S_AVG1, "Average I for display", PAD, "Passive", "#@1 2 0", ""} #Channel 3 { LAB, 205, 1, TST_3_AVG0, "Average Q or S", PAD, "Passive", "#@0 3 0", "LAB:205:1:TST_3_AVG1"} { LAB, 205, 1, TST_3_S_AVG0, "Average Q or S for display",PAD,"Passive", "#@0 3 0", "LAB:205:1:TST_3_S_AVG1"} { LAB, 205, 1, TST_3_AVG1, "Average I ", PAD, "Passive", "#@1 3 0", "LAB:205:1:TST_0_AVG02"} { LAB, 205, 1, TST_3_S_AVG1, "Average I for display", PAD, "Passive", "#@1 3 0", "LAB:205:1:TST_0_S_AVG02"} #Other { LAB, 205, 1, TST_NUM_INTR, "Intr processed since boot",PAD, "1 second","#@6 0 0", ""} { LAB, 205, 1, TST_NUM_SCAN, "SCAN IO rqsts since boot", PAD, "1 second","#@7 0 0", ""} { LAB, 205, 1, TST_0_N_READ, "FIFO samples read", PAD, "1 second","#@8 0 0", ""} { LAB, 205, 1, TST_1_N_READ, "FIFO samples read", PAD, "1 second","#@8 1 0", ""} { LAB, 205, 1, TST_2_N_READ, "FIFO samples read", PAD, "1 second","#@8 2 0", ""} { LAB, 205, 1, TST_3_N_READ, "FIFO samples read", PAD, "1 second","#@8 3 0", ""} { LAB, 205, 1, TST_0_SZ_MON, "FIFO Sample Size Mon", PAD, "1 second","#@9 0 0", ""} { LAB, 205, 1, TST_0_OF_MON, "FIFO Sample Ofst Mon", PAD, "1 second","#@10 0 0", ""} { LAB, 205, 1, TST_1_SZ_MON, "FIFO Sample Size Mon", PAD, "1 second","#@9 1 0", ""} { LAB, 205, 1, TST_1_OF_MON, "FIFO Sample Ofst Mon", PAD, "1 second","#@10 1 0", ""} { LAB, 205, 1, TST_2_SZ_MON, "FIFO Sample Size Mon", PAD, "1 second","#@9 2 0", ""} { LAB, 205, 1, TST_2_OF_MON, "FIFO Sample Ofst Mon", PAD, "1 second","#@10 2 0", ""} { LAB, 205, 1, TST_3_SZ_MON, "FIFO Sample Size Mon", PAD, "1 second","#@9 3 0", ""} { LAB, 205, 1, TST_3_OF_MON, "FIFO Sample Ofst Mon", PAD, "1 second","#@10 3 0", ""} { LAB, 205, 1, TST_N_OVER_Q, "Q overflows since boot", PAD, "1 second","#@11 0 0", ""} { LAB, 205, 1, TST_N_OVER_I, "I overflows since boot", PAD, "1 second","#@12 0 0", ""} #USED BY BEAM PHASING CAVITY INSTANCE ONLY. There are only two channels like this. Make them 0 and 1. #Channel 0 # { LAB, 205, 1, TST_0_AVG02, "Average Q", PAD, "Passive", "#@1 0 1", "LAB:205:1:TST_0_AVG12"} # { LAB, 205, 1, TST_0_AVG12, "Average I", PAD, "Passive", "#@0 0 1", "LAB:205:1:TST_0_BI"} # { LAB, 205, 1, TST_0_BI, "I y int", PAD, "Passive", "#@3 0 0", "LAB:205:1:TST_0_BQ"} ## fix up I,Q to 1,0 if desired # { LAB, 205, 1, TST_0_BQ, "Q y int", PAD, "Passive", "#@3 0 0", "LAB:205:1:TST_1_AVGI2"} # { LAB, 205, 1, TST_0_S_AVI2, "Average I for display", PAD, "Passive", "#@1 0 1", "LAB:205:1:TST_0_S_AVQ2"} # { LAB, 205, 1, TST_0_S_AVQ2, "Average Q for display", PAD, "Passive", "#@0 0 1", "LAB:205:1:TST_0_S_BI"} # { LAB, 205, 1, TST_0_S_BI, "I y int for display", PAD, "Passive", "#@3 0 0", "LAB:205:1:TST_0_S_BQ"} # { LAB, 205, 1, TST_0_S_BQ, "Q y int for display", PAD, "Passive", "#@3 0 0", "LAB:205:1:TST_1_S_AVI2"} ##Channel 1 # { LAB, 205, 1, TST_1_AVGI2, "Average I", PAD, "Passive", "#@1 1 1", "LAB:205:1:TST_1_AVGQ2"} # { LAB, 205, 1, TST_1_AVGQ2, "Average Q", PAD, "Passive", "#@0 1 1", "LAB:205:1:TST_1_BI"} # { LAB, 205, 1, TST_1_BI, "I y int", PAD, "Passive", "#@3 1 0", "LAB:205:1:TST_1_BQ"} # { LAB, 205, 1, TST_1_BQ, "Q y int", PAD, "Passive", "#@3 1 0", ""} # { LAB, 205, 1, TST_1_S_AVI2, "Average I for display", PAD, "Passive", "#@1 1 1", "LAB:205:1:TST_1_S_AVQ2"} # { LAB, 205, 1, TST_1_S_AVQ2, "Average Q for display", PAD, "Passive", "#@0 1 1", "LAB:205:1:TST_1_S_BI"} # { LAB, 205, 1, TST_1_S_BI, "I y int for display", PAD, "Passive", "#@3 1 0", "LAB:205:1:TST_1_S_BQ"} # { LAB, 205, 1, TST_1_S_BQ, "Q y int for display", PAD, "Passive", "#@3 1 0", "LAB:205:1:TST_S_X1"} #Other # { LAB, 205, 1, TST_S_X1, "X1 for display", PAD, "Passive", "#@2 0 0", "LAB:205:1:TST_S_X2"} # { LAB, 205, 1, TST_S_X2, "X2 for display", PAD, "Passive", "#@2 0 1", ""} # { LAB, 205, 1, TST_NUM_READ2,"FIFO samples read", PAD, "1 second","#@8 0 1", ""} # { LAB, 205, 1, TST_0_S2_SZ_M,"FIFO Sample Size Mon2", PAD, "1 second","#@9 0 1", ""} # { LAB, 205, 1, TST_0_S2_OF_M,"FIFO Sample Ofst Mon2", PAD, "1 second","#@10 0 1", ""} # { LAB, 205, 1, TST_1_S2_SZ_M,"FIFO Sample Size Mon2", PAD, "1 second","#@9 1 1", ""} # { LAB, 205, 1, TST_1_S2_OF_M,"FIFO Sample Ofst Mon2", PAD, "1 second","#@10 1 1", ""} } file db/padlongout.db # NB: Signal specifies Offset (0) or Size (1) { # Primary MicName Unit SigName Description Type Scan (fn type ch samp) pattern { PRIM, LOCA, UNIT, NAME, DESC, DTYP, SCAN, OUT } { LAB, 205, 1, TST_0_OFST, "FIFO Sample Offset", PAD, "Passive", "#@0 0 0 0" } { LAB, 205, 1, TST_0_SIZE, "FIFO Sample Size", PAD, "Passive", "#@1 0 0 0" } { LAB, 205, 1, TST_1_OFST, "FIFO Sample Offset", PAD, "Passive", "#@0 0 1 0" } { LAB, 205, 1, TST_1_SIZE, "FIFO Sample Size", PAD, "Passive", "#@1 0 1 0" } { LAB, 205, 1, TST_2_OFST, "FIFO Sample Offset", PAD, "Passive", "#@0 0 2 0" } { LAB, 205, 1, TST_2_SIZE, "FIFO Sample Size", PAD, "Passive", "#@1 0 2 0" } { LAB, 205, 1, TST_3_OFST, "FIFO Sample Offset", PAD, "Passive", "#@0 0 3 0" } { LAB, 205, 1, TST_3_SIZE, "FIFO Sample Size", PAD, "Passive", "#@1 0 3 0" } # Channel "4" is an second instance of Channel 0, which is the full FIFO of raw data for calibration { LAB, 205, 1, TST_4_OFST, "FIFO Sample Offset", PAD, "Passive", "#@0 0 4 0" } { LAB, 205, 1, TST_4_SIZE, "FIFO Sample Size", PAD, "Passive", "#@1 0 4 0" } { LAB, 205, 1, TST_5_OFST, "FIFO Sample Offset", PAD, "Passive", "#@0 0 5 0" } { LAB, 205, 1, TST_5_SIZE, "FIFO Sample Size", PAD, "Passive", "#@1 0 5 0" } { LAB, 205, 1, TST_6_OFST, "FIFO Sample Offset", PAD, "Passive", "#@0 0 6 0" } { LAB, 205, 1, TST_6_SIZE, "FIFO Sample Size", PAD, "Passive", "#@1 0 6 0" } { LAB, 205, 1, TST_7_OFST, "FIFO Sample Offset", PAD, "Passive", "#@0 0 7 0" } { LAB, 205, 1, TST_7_SIZE, "FIFO Sample Size", PAD, "Passive", "#@1 0 7 0" } #USED BY BEAM PHASING CAVITY INSTANCE ONLY # { LAB, 205, 1, TST_0_S2_OF, "FIFO Sample Offset", PAD, "Passive", "#@0 0 0 1" } # { LAB, 205, 1, TST_0_S2_SZ, "FIFO Sample Size", PAD, "Passive", "#@1 0 0 1" } # { LAB, 205, 1, TST_1_S2_OF, "FIFO Sample Offset", PAD, "Passive", "#@0 0 1 1" } # { LAB, 205, 1, TST_1_S2_SZ, "FIFO Sample Size", PAD, "Passive", "#@1 0 1 1" } } file db/padai.db { pattern { PRIM, LOCA, UNIT, NAME, DESC, DTYP, SCAN, INP, ASLO, AOFF } #{ LAB, 205, 1, IRQ5, "IRQ5", PADCNST, "Passive", "LAB:1:1:AVG_Q CP NMS", "1", "0" } { LAB, 205, 1, TST_SLOWADC0, "TST_SLOWADC0", PAD, "5 second","#C0 S1 @0", "0.0002128", "-273" } { LAB, 205, 1, TST_SLOWADC1, "TST_SLOWADC1", PAD, "5 second","#CO S1 @1", "0.0002128", "-273" } { LAB, 205, 1, TST_SLOWADC2, "TST_SLOWADC2", PAD, "5 second","#C0 S1 @2", "0.0002128", "-273" } { LAB, 205, 1, TST_SLOWADC3, "TST_SLOWADC3", PAD, "5 second","#CO S1 @3", "0.0002128", "-273" } { LAB, 205, 1, TST_SLOWADC4, "TST_SLOWADC4", PAD, "5 second","#CO S1 @4", "0.0002128", "-273" } { LAB, 205, 1, TST_SLOWADC5, "TST_SLOWADC5", PAD, "5 second","#C0 S1 @5", "0.0002128", "-273" } { LAB, 205, 1, TST_SLOWADC6, "TST_SLOWADC6", PAD, "5 second","#CO S1 @6", "0.0002128", "-273" } { LAB, 205, 1, TST_SLOWADC7, "TST_SLOWADC7", PAD, "5 second","#C0 S1 @7", "0.0002128", "-273" } } file db/padmbbo.db # Use this to set variables with a finite set of choices { # Primary MicroName Unit SigName Description Type (routine) Scan NumBits pattern { PRIM, LOCA, UNIT, NAME, DESC, DTYP, OUT, SCAN, NOBT, ZRST, ONST, TWST, THST} { LAB, 205, 1, TST_D_STATE, "Operational State", "PAD", "#@0", "Passive", 2, "Starting-up", "Calibrating", "Calib Done", "Running" } { LAB, 205, 1, TST_D_CALIB, "Calibration State", "PAD", "#@1", "Passive", 2, "Not Calibrating", "Calibrating", "Done", "" } } file db/padbo.db { # Primary MicroName Unit SigName Description Type Scan Out pattern { PRIM, LOCA, UNIT, NAME, DESC, DTYP, OUT, SCAN } { LAB, 205, 1, TST_INT_CTRL, "Dis/enable interrupts", "PAD", "@0", "Passive" } { LAB, 205, 1, TST_SOFT_TRG, "Software interrupt", "PAD", "#@1", "Passive" } { LAB, 205, 1, TST_REBOOT, "Reboot the PAD", "PAD", "#@2", "Passive" } }