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.

TMS320F280039: Can I simulate CLB in LFSR mode?

Part Number: TMS320F280039
Other Parts Discussed in Thread: TIDM-1011, C2000WARE

Hi everyone,

I am using one of the counters in CLB as a LFST to perform CRC on the fly. I am expecting to see the value in match_1 to check the result of CRC in the simulation. 

However, the value in match_1 remain unchanged (0xFF) in the simulation, shown in the picture below.

The waveforms of event, mode0, mode1, and counter output are also shown in the picture. The reset is zero.

The CLB configs are taken from TIDM-1011 reference design, and I only changed the match_1 and match_2 parameter.

I wonder if LFSR simulation is not supported, or I've done things wrong.

Thank you for your answers!

  • Hi Hang Yang, 

    LFSR simulation should already be supported in the CLB tool available in the motor control SDK. Can you check the simulation with the unmodified TIDM-1011 code? Do you see your match_1 value change as expected?

    We have also released the CRC CLB code as a standalone example available in C2000Ware. You may check that as well to see the CLB implementation and test the simulation of that example.

    As a note, we recently have made updates to the CLB tool which should be available in the latest version of C2000Ware 5.00.00.00. This adds enhanced features and I believe LFSR bits have been renamed to correspond with the TRM information. LFSR support has no other changes in the update

    Regards,

    Peter

  • Hi Peter,

    Thank you for the reply!

    It turns out that the .syscfg file in TIDM-1011 code doesn't include input boundaries and simulation time steps, etc., so I have to do some guess work to run the original simulation. However, the value of match_1 still remains unchanged.

    I can see the value of the counter register in my simulation changes (first row in the previous figure), which aligns with the waveform in TIDM-1011 document. So, I guess that the LFSR is working, the bits are shifted into LFSR correctly, and the output is simply not shown in match_1. Also, the output in match_1 is never shown in the TIDM-1011 document as well.

    May I put it that the result display of LSFR is not supported?  

    BTW, I am struggling finding the standalone example of CLB CRC, could you give me its path? I am using C2000Ware 5.00.00.00.

    Thank you!

  • Hi Hang Yang,

    Thank you for the additional information. I will have to verify this information through testing but this may be a bug in the CLB Tool that was not previously known. We have just made a major revision to the CLB Tool recently so I will have to verify with the owner when the next planned revision is for the tool. I will file the appropriate bug fixes if I can verify this.

    Regarding the location of the CLB CRC example, it is ex30 and is located at C:\ti\c2000\C2000Ware_5_00_00_00\driverlib\f28003x\examples\clb

    Regards,

    Peter

  • Hi Hang Yang,

    Have you located the CLB CRC example and have been able to test the CRC simulation?

    Regards,

    Peter

  • Hi Peter,

    Sorry for the delay, I've been unavailable for the past few days.  Thank you for the information about the lsfr example location, I am looking into it right now!  

    Regards,

    Hang