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.

TMS570LC4357 clock prescaler setting for NHET LBIST

Other Parts Discussed in Thread: TMS570LC4357

Hello Hercules team,

I have implemented the NHET LBIST for TMS570LC4357 using STC2. As the test run time is quite long, I am trying to reduce the run time by reducing the clock prescaler register.

I noticed that the NHET LBIST failed if the clock prescaler was set to 0 for NHET1 and NHET2.

 The configuration looks like this:

  1. STCGCR0: Test interval counter: 1, Idle cycle: 1, Restart from interval 0.
  2. STCGCR1: parallel mode
  3. STCTPR: timeout preload: 0x7FFFFFFF
  4. STCSCSCR:  self check disabled (no error injection)
  5. STCCLKDIV: clock prescaler 0 for both cores (NHET1 and NHET2)

 After the test is finished, the STCGSTAT register is 0x503 and the STCFSTAT register is 0x003. So both NHET1 and NHET2 test failed.

If I change the clock prescaler for both NHETs to 1, then the same test passed.

In my test the VCLK2 is 32MHZ, so STC clock is 32MHz if the prescaler is 0, and it is 16MHz if the prescaler is 1.

In the TMS570LC4357 TRM, Tab. 10-7,  the STC2 clock can be set up to 110MHz. So the STC2 clock in my test is still in a quite lower range and timing should not be the problem.

Could you please provide some insight here?

Thank you and regards,

Libo

  • Hi Libo,

    Your observation will require some analysis from our side. We may need our design team to run some simulation.

    What is the VCLK frequency?  I'm wondering if the VCLK2 is slower than VCLK.

    What happen if you raise the VCLK2 higher but still keep the STCCLKDIV=1? 

  • Hi Charles,

    the VCLK frequency is the same as VCLK2 frequency, they are both 32MHz. I have tried to set VCLK2 to 64 MHz and VCLK to 32 MHz,  STCCLKDIV is still 1.  With this change SW can't be started. It seems that this configuration has some side effect.

  • Hi Libo,

      I meant to suggest both VCLK and VCLK2 at the same but higher frequency such as 64MHz but keeping the STCCLKDIV=1.

  • Hi Charles,


    I have tested the following combinations:

    1. VCLK = VCLK2 = 32MHz, prescaler = 1, the test passes.

    2. VCLK = VCLK2 = 32MHz, prescaler = 0, the test fails.

    3. VCLK = VCLK2 = 62.5MHz, prescaler = 1, the test passes.

    4. VCLK = VCLK2 = 62.5MHz, prescaler = 0, the test fails.

    5. VCLK = 62.5MHz, VCLK2 = 125MHz, prescaler = 1, the test fails.

    Please let me know if you need further information.

    Thank you and regards,

    Libo