Skip to content

Commit c5f3649

Browse files
committed
fmc_active_clk: add ClksLocked record.
Looking at only the PLL or MMCM clock status is not enough to fully represent the status of the BPM clock chain. We implement this record in fmc_active_clk because the MMCM clock always exists, but the AD9510 PLL clock is only available if the fmc_active_clk module is present. All of our boards have an active clock, so we don't take boards without it into account for now.
1 parent e6b0383 commit c5f3649

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

utcaApp/Db/fmc_active_clk.template

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,20 @@ record(bi,"$(P)$(R)ADCAD9510PllStatus-Mon"){
4242
field(ONAM,"locked")
4343
}
4444

45+
# combining state with fmc_adc_common
46+
record(bi,"$(P)$(R)ClksLocked-Mon"){
47+
field(DESC, "state of PLL and MMCM clocks")
48+
field(ZNAM, "not_locked")
49+
field(ONAM, "locked")
50+
}
51+
record(calcout,"$(P)$(R)ClksLockedCalc"){
52+
field(ASG, "Readonly")
53+
field(INPA, "$(P)$(R)ADCAD9510PllStatus-Mon CP")
54+
field(INPB, "$(P)$(R)MMCMLocked-Mon CP")
55+
field(CALC, "A & B")
56+
field(OUT, "$(P)$(R)ClksLocked-Mon PP")
57+
}
58+
4559
record(bo,"$(P)$(R)ADCClkSel-Sel"){
4660
field(DTYP,"asynInt32")
4761
field(DESC,"set ADC reference clock")

0 commit comments

Comments
 (0)