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: Understanding logic of "Data Select Bits" in HalCoGen

Part Number: TMS570LC4357
Other Parts Discussed in Thread: HALCOGEN

Hi, 

For the understanding logic of "Data Select Bits" ; 

There is an example from TI FEE User Guide;  Data sets of the block cannot exceed 2 power data select bits. Use case of a dataset is : consider a car stereo which needs to display different languages based on customer input. Projects will configure Block number = 1 for language selection and use data sets for selecting different options for language Ex: 4-English, 5-German, 6-Russian,7- French etc.(Here the block has 4 data sets. Data select bits should be > = 2 =>2 power 2=4.).

First of all, does 2 power mean multiplying 2 by something (like 2x2=4) or does it mean taking the power of the 2 (like 2^2=4) ?

Second, lets take a look HalCoGen :

 

There is 1,3,5,7 options for data select bits. How we can calculate either two way to select 3 or 5 (What can I multiply by 2 to get 3? or What power of 2 can I take to get 3?) 

My english is not that good so maybe I am struggling with understand the logic. I'll be pleasured if you guys can help me.
Thank you so much, have a great day!
  • Hi Emre,

    First of all, does 2 power mean multiplying 2 by something (like 2x2=4) or does it mean taking the power of the 2 (like 2^2=4) ?

    It means taking the power of the 2.

    There is 1,3,5,7 options for data select bits. How we can calculate either two way to select 3 or 5 (What can I multiply by 2 to get 3? or What power of 2 can I take to get 3?) 

    See the below is the formula.

    Number of data sets = 2 power data select bits

    OR

    Number of data sets = 2 ^ data select bits

    So, the data sets can be 1,2,4,8,16,32...... That means it cannot be possible to configure the data sets as 3 or 5 etc.

    The Data Set concept is from AutoSAR. If your FEE config is not used in AutoSAR, this parameter can be ignored.

     --

    Thanks & regards,
    Jagadish.

  • Dear Jagadish Gundavarapu thanks for your answer its really helps me to figure out.