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.

TMS570LS3137: Readback of register

Part Number: TMS570LS3137
Other Parts Discussed in Thread: HALCOGEN

hi,

(1) What does the register readback test mean? what is the difference of BASELINE,REBASELINE,and COMPARE?

(2) I rebasline all the registers and CPMPARE when I power on the initialization, its ok,but there is an error when the SRAM and FLASH registers are COMPARE when the cycle is running. Does this have anything to do with the FLASH and SRAM fault injection test? 

Below is my code.

  • Hi Xiaohong,

    The Reg_Read_Compare() function is designed for the configuration register read back and compare functionalities. It can be used for 3 modes. The compare mode is used for read back compare and other modes are used to update the value of the registers which are used for future comparison. For each module, there are a set of values called "baseline" value which are used for comparison. During comparison (COMPARE mode) the values in the 'baseline' is compared against the current set of configuration registers for that module. The other 2 modes are provided so that the user can update the configuration registers with the default values(BASELINE) or the current values(REBASELINE).

    In the BASELINE mode, the function selects the value from HALCoGen as the baseline value.

    In the REBASELINE mode, the current set of values of the configuration register is selected as the baseline value.

    In the COMPARE mode, the baseline values are compared against the current value of the configuration register. In case the function is called with COMPARE without prior baselining, a REBASELINE is done before comparison.

    You can this function for SW read back of configuration registers.