echo
echo -----------------------------------------------------------------------
echo Reading Marconi_0 JESD-RX status
echo -----------------------------------------------------------------------
echo
echo "JESD_RX_STAT (RX_SYSREF_ERR=bit20, RX_ERR_CNT=bits19_4)"
afecmd Read 0 0x40025084
echo
echo "JESD_FIFO_STAT_RX (RX_FIFO_FLAG3=bits27_24, RX_FIFO_FLAG2=bits19_16,"
echo "                   RX_FIFO_FLAG1=bits11_8, RX_FIFO_FLAG0=bits3_0)"
afecmd Read 0 0x40025090
echo
echo "JESD_LANE_STAT_RX (RX_LANE3_ERROR=bits31_24, RX_LANE2_ERROR=bits23_16,"
echo "                   RX_LANE1_ERROR=bits15_8, RX_LANE0_ERROR=bits7_0)"
afecmd Read 0 0x4002509C
echo
echo "JESD_STS0_RX (RX_VALID_3_0=bits31_28, RX_LANE_SKEW=bits4_0)"
afecmd Read 0 0x400250AC
echo
echo "JESD_STS1_RX (FS_STATE=bits15_8, CS_STATE=bits7_0)"
afecmd Read 0 0x400250B0
echo
echo -----------------------------------------------------------------------
echo Reading Marconi_0 JESD-TX status
echo -----------------------------------------------------------------------
echo
echo "JESD_STS0_TX (TX_VALID_3_0=bits31_28, STS_SYS_REF_ERR=bit20,"
echo "              STS_ERR_CNT=bits15_0)"
afecmd Read 0 0x40024020
echo
echo "JESD_STS1_TX (FIRST_SYNC_REQ=bit8, TX_SYNC_STATE=bits7_0)"
afecmd Read 0 0x40024024
echo

