This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

VCP2 decoder output problem

Hello,

I’m now using VCP2 to decode data. The problem is I can’t get the results from the decoder output buffer after successfully decoding the first batch of 86 LLR data.

My procedure is as follows.

1. Power up VCP2 through PSC
2. Initialize VCP2 with instance A
3. Initialize EDMA3 with instance 2 and open two channels (10 as revt & 11 as xevt)
4. Retrieve 5 PaRAMs (0, 1 used for xevt, 2, 3 used for revt, and 4 for dummy) and then the first batch of 86 LLR data.
5. Generate IC and configure EDMA for parameter setup
6. CSL_edma3HwChannelControl for both channels (disable、clearerr、clear、enable)
7. Start VCP2 (VCP2_setPacked32Endian、VCP2_reset、VCP2_emuDisable、VCP2_start)

Through this procedure, I can get correct decoding results (NSYMPROC=112).
But, when I input the second batch of 40 LLR data and repeat procedure 5, 6, and 7, I got nothing.
I have checked the registers for VCP2.
The second batch of data was indeed written into the registers (VCPIC0~5), WIC in VCPSTATO is 1, and NSYMPROC=66.
Looks like the decoder did its job, but I got nothing in the output buffer.

Can someone help me out of this problem?

Best Regards,

Bob
  • Can you provide screenshots of the PaRAM entries after step 6 but before step 7 executes and then again after step 7.  Do this for both the first and second times steps 5-7.  Also, provide the Secondary Event Register values at these points. 

    Best Regards,
    Chad

  • Hi Chad,

     

    Thanks for your help!

    The PaRAM entries and Secondary Even Register values are provided as below.

    Note that left and right side columns are for the end of step 6 and 7, respectively.

     

    Best Regards,

    Bob

     

    =======================   First Round   ==========================

    _hParamVcp2Ic(0x02744000):                    _hParamVcp2Ic(0x02744000):   
        OPT: 0x80000000                            OPT: 0x80000000          
        SRC: 0x0C06B900                            SRC: 0x00000000          
        A_B_CNT: 0x00010018                            A_B_CNT: 0x00000000      
        DST: 0x22A00000                            DST: 0x00000000          
        SRC_DST_BIDX: 0x00000000                        SRC_DST_BIDX: 0x00000000 
        LINK_BCNTRLD: 0x00004020                        LINK_BCNTRLD: 0x00000000 
        SRC_DST_CIDX: 0x00000000                        SRC_DST_CIDX: 0x00000000 
        CCNT: 0x00000001                            CCNT: 0x00000000         
                                                                 
    _hParamVcp2BMXmit(0x02744020):                    _hParamVcp2BMXmit(0x02744020):
        OPT: 0x80000002                            OPT: 0x80000002          
        SRC: 0x0C06BB00                            SRC: 0x0C06BB00          
        A_B_CNT: 0x00040080                            A_B_CNT: 0x00040080      
        DST: 0x22A00080                            DST: 0x22A00080          
        SRC_DST_BIDX: 0x00000080                        SRC_DST_BIDX: 0x00000080 
        LINK_BCNTRLD: 0x00004080                        LINK_BCNTRLD: 0x00004080 
        SRC_DST_CIDX: 0x00000000                        SRC_DST_CIDX: 0x00000000 
        CCNT: 0x00000001                            CCNT: 0x00000001         
                                                                 
    _hParamVcp2Dec(0x02744040):                    _hParamVcp2Dec(0x02744040):  
        OPT: 0x80000001                            OPT: 0x00000000          
        SRC: 0x22A000C0                            SRC: 0x00000000          
        A_B_CNT: 0x00010010                            A_B_CNT: 0x00000000      
        DST: 0x0C06BF00                            DST: 0x00000000          
        SRC_DST_BIDX: 0x00100000                        SRC_DST_BIDX: 0x00000000 
        LINK_BCNTRLD: 0x00004060                        LINK_BCNTRLD: 0x0000FFFF 
        SRC_DST_CIDX: 0x00000000                        SRC_DST_CIDX: 0x00000000 
        CCNT: 0x00000001                            CCNT: 0x00000000         
                                                                 
    _hParamVcp2OutPar(0x02744060):                    _hParamVcp2OutPar(0x02744060):
        OPT: 0x80000000                            OPT: 0x80000000          
        SRC: 0x22A00048                            SRC: 0x22A00048          
        A_B_CNT: 0x00010008                            A_B_CNT: 0x00010008      
        DST: 0x0C06BA00                            DST: 0x0C06BA00          
        SRC_DST_BIDX: 0x00000000                        SRC_DST_BIDX: 0x00000000 
        LINK_BCNTRLD: 0x0000FFFF                        LINK_BCNTRLD: 0x0000FFFF 
        SRC_DST_CIDX: 0x00000000                        SRC_DST_CIDX: 0x00000000 
        CCNT: 0x00000001                            CCNT: 0x00000001         
                                                                 
    _hParamDummy(0x02744080):                    _hParamDummy(0x02744080):    
        OPT: 0x80000000                            OPT: 0x80000000          
        SRC: 0x00000000                            SRC: 0x00000000          
        A_B_CNT: 0x00000000                            A_B_CNT: 0x00000000      
        DST: 0x00000000                            DST: 0x00000000          
        SRC_DST_BIDX: 0x00000000                        SRC_DST_BIDX: 0x00000000 
        LINK_BCNTRLD: 0x00000000                        LINK_BCNTRLD: 0x00000000 
        SRC_DST_CIDX: 0x00000000                        SRC_DST_CIDX: 0x00000000 
        CCNT: 0x00000000                            CCNT: 0x00000000         

    TPCC_EMR    unsigned int    0    0x02740300        TPCC_EMR    unsigned int    2048    0x02740300   
    TPCC_EMRH    unsigned int    0    0x02740304        TPCC_EMRH    unsigned int    0    0x02740304   
    TPCC_EMCR    unsigned int    0    0x02740308        TPCC_EMCR    unsigned int    0    0x02740308   
    TPCC_EMCRH    unsigned int    0    0x0274030C        TPCC_EMCRH    unsigned int    0    0x0274030C   
    TPCC_QEMR    unsigned int    0    0x02740310        TPCC_QEMR    unsigned int    0    0x02740310   
    TPCC_QEMCR    unsigned int    0    0x02740314        TPCC_QEMCR    unsigned int    0    0x02740314   
    TPCC_CCERR    unsigned int    0    0x02740318        TPCC_CCERR    unsigned int    0    0x02740318   
    TPCC_CCERRCLR    unsigned int    0    0x0274031C        TPCC_CCERRCLR    unsigned int    0    0x0274031C   
    TPCC_EEVAL    unsigned int    0    0x02740320        TPCC_EEVAL    unsigned int    0    0x02740320   

    TPCC_ER        unsigned int    0    0x02741000        TPCC_ER        unsigned int    0    0x02741000
    TPCC_ERH    unsigned int    3    0x02741004        TPCC_ERH    unsigned int    3    0x02741004
    TPCC_ECR    unsigned int    0    0x02741008        TPCC_ECR    unsigned int    0    0x02741008
    TPCC_ECRH    unsigned int    0    0x0274100C        TPCC_ECRH    unsigned int    0    0x0274100C
    TPCC_ESR    unsigned int    0    0x02741010        TPCC_ESR    unsigned int    0    0x02741010
    TPCC_ESRH    unsigned int    0    0x02741014        TPCC_ESRH    unsigned int    0    0x02741014
    TPCC_CER    unsigned int    0    0x02741018        TPCC_CER    unsigned int    0    0x02741018
    TPCC_CERH    unsigned int    0    0x0274101C        TPCC_CERH    unsigned int    0    0x0274101C
    TPCC_EER    unsigned int    3072    0x02741020        TPCC_EER    unsigned int    3072    0x02741020
    TPCC_EERH    unsigned int    0    0x02741024        TPCC_EERH    unsigned int    0    0x02741024
    TPCC_EECR    unsigned int    0    0x02741028        TPCC_EECR    unsigned int    0    0x02741028
    TPCC_EECRH    unsigned int    0    0x0274102C        TPCC_EECRH    unsigned int    0    0x0274102C
    TPCC_EESR    unsigned int    0    0x02741030        TPCC_EESR    unsigned int    0    0x02741030
    TPCC_EESRH    unsigned int    0    0x02741034        TPCC_EESRH    unsigned int    0    0x02741034
    TPCC_SER    unsigned int    0    0x02741038        TPCC_SER    unsigned int    2048    0x02741038
    TPCC_SERH    unsigned int    0    0x0274103C        TPCC_SERH    unsigned int    0    0x0274103C
    TPCC_SECR    unsigned int    0    0x02741040        TPCC_SECR    unsigned int    0    0x02741040
    TPCC_SECRH    unsigned int    0    0x02741044        TPCC_SECRH    unsigned int    0    0x02741044


    ======================   Second Round  ========================================

    _hParamVcp2Ic(0x02744000):                    _hParamVcp2Ic(0x02744000):   
        OPT: 0x80000000                                   OPT: 0x80000000          
        SRC: 0x0C06B900                                   SRC: 0x00000000          
        A_B_CNT: 0x00010018                               A_B_CNT: 0x00000000      
        DST: 0x22A00000                                   DST: 0x00000000          
        SRC_DST_BIDX: 0x00000000                          SRC_DST_BIDX: 0x00000000 
        LINK_BCNTRLD: 0x00004020                          LINK_BCNTRLD: 0x00000000 
        SRC_DST_CIDX: 0x00000000                          SRC_DST_CIDX: 0x00000000 
        CCNT: 0x00000001                                  CCNT: 0x00000000         
                                                                                   
    _hParamVcp2BMXmit(0x02744020):                    _hParamVcp2BMXmit(0x02744020):
        OPT: 0x80000002                                   OPT: 0x80000002          
        SRC: 0x0C06BB00                                   SRC: 0x0C06BB00          
        A_B_CNT: 0x00030080                               A_B_CNT: 0x00030080      
        DST: 0x22A00080                                   DST: 0x22A00080          
        SRC_DST_BIDX: 0x00000080                          SRC_DST_BIDX: 0x00000080 
        LINK_BCNTRLD: 0x00004080                          LINK_BCNTRLD: 0x00004080 
        SRC_DST_CIDX: 0x00000000                          SRC_DST_CIDX: 0x00000000 
        CCNT: 0x00000001                                  CCNT: 0x00000001         
                                                                                   
    _hParamVcp2Dec(0x02744040):                       _hParamVcp2Dec(0x02744040):  
        OPT: 0x80000001                                   OPT: 0x00000000          
        SRC: 0x22A000C0                                   SRC: 0x00000000          
        A_B_CNT: 0x00010008                               A_B_CNT: 0x00000000      
        DST: 0x0C06BF00                                   DST: 0x00000000          
        SRC_DST_BIDX: 0x00080000                          SRC_DST_BIDX: 0x00000000 
        LINK_BCNTRLD: 0x00004060                          LINK_BCNTRLD: 0x0000FFFF 
        SRC_DST_CIDX: 0x00000000                          SRC_DST_CIDX: 0x00000000 
        CCNT: 0x00000001                                  CCNT: 0x00000000         
                                                                                   
    _hParamVcp2OutPar(0x02744060):                    _hParamVcp2OutPar(0x02744060):
        OPT: 0x80000000                                   OPT: 0x80000000          
        SRC: 0x22A00048                                   SRC: 0x22A00048          
        A_B_CNT: 0x00010008                               A_B_CNT: 0x00010008      
        DST: 0x0C06BA00                                   DST: 0x0C06BA00          
        SRC_DST_BIDX: 0x00000000                          SRC_DST_BIDX: 0x00000000 
        LINK_BCNTRLD: 0x0000FFFF                          LINK_BCNTRLD: 0x0000FFFF 
        SRC_DST_CIDX: 0x00000000                          SRC_DST_CIDX: 0x00000000 
        CCNT: 0x00000001                                  CCNT: 0x00000001         
                                                                                   
    _hParamDummy(0x02744080):                         _hParamDummy(0x02744080):    
        OPT: 0x80000000                                   OPT: 0x80000000          
        SRC: 0x00000000                                   SRC: 0x00000000          
        A_B_CNT: 0x00000000                               A_B_CNT: 0x00000000      
        DST: 0x00000000                                   DST: 0x00000000          
        SRC_DST_BIDX: 0x00000000                          SRC_DST_BIDX: 0x00000000 
        LINK_BCNTRLD: 0x00000000                          LINK_BCNTRLD: 0x00000000 
        SRC_DST_CIDX: 0x00000000                          SRC_DST_CIDX: 0x00000000 
        CCNT: 0x00000000                                  CCNT: 0x00000000         



    TPCC_EMR    unsigned int    0    0x02740300        TPCC_EMR    unsigned int    2048    0x02740300
    TPCC_EMRH    unsigned int    0    0x02740304        TPCC_EMRH    unsigned int    0    0x02740304
    TPCC_EMCR    unsigned int    0    0x02740308        TPCC_EMCR    unsigned int    0    0x02740308
    TPCC_EMCRH    unsigned int    0    0x0274030C        TPCC_EMCRH    unsigned int    0    0x0274030C
    TPCC_QEMR    unsigned int    0    0x02740310        TPCC_QEMR    unsigned int    0    0x02740310
    TPCC_QEMCR    unsigned int    0    0x02740314        TPCC_QEMCR    unsigned int    0    0x02740314
    TPCC_CCERR    unsigned int    0    0x02740318        TPCC_CCERR    unsigned int    0    0x02740318
    TPCC_CCERRCLR    unsigned int    0    0x0274031C        TPCC_CCERRCLR    unsigned int    0    0x0274031C
    TPCC_EEVAL    unsigned int    0    0x02740320        TPCC_EEVAL    unsigned int    0    0x02740320

    TPCC_ER        unsigned int    0    0x02741000        TPCC_ER        unsigned int    0    0x02741000
    TPCC_ERH    unsigned int    3    0x02741004        TPCC_ERH    unsigned int    3    0x02741004
    TPCC_ECR    unsigned int    0    0x02741008        TPCC_ECR    unsigned int    0    0x02741008
    TPCC_ECRH    unsigned int    0    0x0274100C        TPCC_ECRH    unsigned int    0    0x0274100C
    TPCC_ESR    unsigned int    0    0x02741010        TPCC_ESR    unsigned int    0    0x02741010
    TPCC_ESRH    unsigned int    0    0x02741014        TPCC_ESRH    unsigned int    0    0x02741014
    TPCC_CER    unsigned int    0    0x02741018        TPCC_CER    unsigned int    0    0x02741018
    TPCC_CERH    unsigned int    0    0x0274101C        TPCC_CERH    unsigned int    0    0x0274101C
    TPCC_EER    unsigned int    3072    0x02741020        TPCC_EER    unsigned int    3072    0x02741020
    TPCC_EERH    unsigned int    0    0x02741024        TPCC_EERH    unsigned int    0    0x02741024
    TPCC_EECR    unsigned int    0    0x02741028        TPCC_EECR    unsigned int    0    0x02741028
    TPCC_EECRH    unsigned int    0    0x0274102C        TPCC_EECRH    unsigned int    0    0x0274102C
    TPCC_EESR    unsigned int    0    0x02741030        TPCC_EESR    unsigned int    0    0x02741030
    TPCC_EESRH    unsigned int    0    0x02741034        TPCC_EESRH    unsigned int    0    0x02741034
    TPCC_SER    unsigned int    0    0x02741038        TPCC_SER    unsigned int    2048    0x02741038
    TPCC_SERH    unsigned int    0    0x0274103C        TPCC_SERH    unsigned int    0    0x0274103C
    TPCC_SECR    unsigned int    0    0x02741040        TPCC_SECR    unsigned int    0    0x02741040
    TPCC_SECRH    unsigned int    0    0x02741044        TPCC_SECRH    unsigned int    0    0x02741044