NOTICE: The Processors Wiki will End-of-Life on January 15, 2021. It is recommended to download any files or other content you may need that are hosted on processors.wiki.ti.com. The site is now set to read only.

User:DVT/UserDocumentation/DVT Component Reference Guide/DVT Data FieldEnum

From Texas Instruments Wiki
Jump to: navigation, search

Field Enumerator[edit]

Overview[edit]

Enumerates a field in the input records. All same values/entries in a field will be given the same number. Enumeration starts with value 0 and will go up to the number of unique values-1 in the field that is being enumerated.


Input Channel[edit]

One input channel for i/p records consisting of field(s)

Output Channel[edit]

Same as input channel format and an extra enumerated field

Properties[edit]

Property Description Type Default
Field to Enumerate The name of the Field(i.e. Column) to be enumerated. If the field is not found the component will not produce any output records Text
Name Displays the unique name for the component. Name can be changed through GSB Text


Example[edit]

  • Input


The following records

Time Priority Event Size
1000 0 ReadCmd 8
1100 0 ReadResp 8
1200 2 WriteCmd 8
1300 3 WriteCmd 8
1400 1 ReadCmd 22
1500 0 WriteCmd 8
1600 1 ReadResp 16


  • Properties

These are properties changed from the default values

Property Value
Field to Enumerate Event


  • Output


Time Priority Event Size eEvent
1000 0 ReadCmd 8 0
1100 0 ReadResp 8 1
1200 2 WriteCmd 8 2
1300 3 WriteCmd 8 2
1400 1 ReadCmd 22 0
1500 0 WriteCmd 8 2
1600 1 ReadResp 16 1


Example Solution[edit]

<install>\dvt\Examples\FieldEnumerator\FieldEnumerator.sol

Also See[edit]

TODO: Add references to tutorials in which component is used

Enhancement Requests[edit]

Gforge Tracker ID: 655, 656, 657, 658

Known Issues[edit]

Gforge Tracker ID: