diff --git a/Pcie40Applications/statlink.cpp b/Pcie40Applications/statlink.cpp index 8e2179af6bf1f0b3c60d8810d24ace53bc36305e..4c695122666bfc08d8b1084055ea7fbe2dded38d 100644 --- a/Pcie40Applications/statlink.cpp +++ b/Pcie40Applications/statlink.cpp @@ -110,15 +110,15 @@ statpice40(pcie40reg_t pcie40reg) D(pcie40_sta, 28, 17), pcie40_trg_type(dev_slot)); printf("PLLs:%s | rxlink: %s | txlink: %s | txlink: %s | rxdisp: %s | rxdata: %s\n", - pcie40_inputPLLFrequency(dev_slot)?"LOCKED":"NOT LOCKED", + (pcie40_pllLockStatus(dev_slot, 1)&&pcie40_pllLockStatus(dev_slot, 2)&&pcie40_pllLockStatus(dev_slot, 3))?"LOCKED":"NOT LOCKED", B(pcie40_sta, 0)?"READY":"NOT READY", B(pcie40_sta, 1)?"READY":"NOT READY", B(pcie40_sta, 2)?"SYNCED":"NOT SYNCED", B(pcie40_sta, 3)?"ERROR":"OK", B(pcie40_sta, 4)?"ERROR":"OK"); if(INFO){ - printf("PLL[0-23]: %s | %s | %s | %s | %s | %s\nPLL[24-47]: %s | %s | %s | %s | %s | %s\nPLL[FTSW]: %s | %s | %s | %s | %s | %s\n", - pcie40_pllLockStatus(dev_slot, 1)?"LOCKED":"LOL", + printf("Input frequency = %f\nPLL[0-23] : %s | %s | %s | %s | %s | %s\nPLL[24-47]: %s | %s | %s | %s | %s | %s\nPLL[FTSW] : %s | %s | %s | %s | %s | %s\n", + (double)pcie40_inputPLLFrequency(dev_slot)/1000000, pcie40_pllInputStatus(dev_slot, 1)?"OK":"BAD", pcie40_pllFrequencyStatus(dev_slot, 1)?"OK":"BAD", pcie40_pllLockCounter(dev_slot, 1)?"OK":"LOL",