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 Sink CountAnalyzer

From Texas Instruments Wiki
Jump to: navigation, search

Count Analyzer[edit]

Overview[edit]

Obtains statistics like Count, Min, Max, Avg, Total for a specific Data field of the input. The statistics will be categorized based on a values in a Key Field.


Input Channel[edit]

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

Output Channel[edit]

None. Component is a sink and will buffer its output records. View components can be connected to the Sink.

Properties[edit]

Property Description Type Default
Data Field The field which is used for the statistics Text
Data Field Label List TODO Text
Display Total As TODO Text
Field Name For Counts TODO Text Count
Key Field The field by which the statistics will be categorized Text
Name Displays the unique name for the component. Name can be changed through GSB Text
Partial Field TODO Text
Passthrough All Fields If set to true will auto populate the i/p fields in the below property and component is configured to have all the fields that are in the i/ppresent in the output. However since the output contains only one record per Key value the value in the passthrough fields will be that contained in the 1st input record for that particular key. See Example case2. Boolean false
Passthrough Fields List of the fields that are being passed through from input 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

Case 1[edit]

  • Properties

These are properties changed from the default values

Property Value
Data Field Priority
Key Field Event


  • Output


Index Event Count Min Max Average Total
0 ReadCmd 2 0 1 0.5 2
1 ReadResp 2 0 1 0.5 2
2 WriteCmd 3 0 3 1.667 5

Case 2[edit]

Use of Passthrough Fileds functionality

  • Properties

These are properties changed from the default values

Property Value
Data Field Priority
Key Field Event
Passthrough All Fields true
Passthrough Fields Time, Priority, Event, Size (Automatically populated once previous property is set to true)
  • Output


Index Event Count Min Max Average Total Time Priority Event Size
0 ReadCmd 2 0 1 0.5 2 1000 0 ReadCmd 8
1 ReadResp 2 0 1 0.5 2 1100 0 ReadResp 8
2 WriteCmd 3 0 3 1.667 5 1200 2 WriteCmd 8

Case 3[edit]

Specifying multiple Data Fields to do Analysis on

  • Properties

These are properties changed from the default values

Property Value
Data Field Priority, Size
Key Field Event


  • Output


Index Event Count Priority Min Priority Max Priority Average Priority Total Size Min Size Max Size Average Size Total
0 ReadCmd 2 0 1 0.5 2 8 22 15 30
1 ReadResp 2 0 1 0.5 2 8 16 12 24
2 WriteCmd 3 0 3 1.667 5 8 8 8 24


Example Solution[edit]

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

Also See[edit]

TODO: Add references to tutorials in which component is used

Enhancement Requests[edit]

Gforge Tracker ID: 668

Known Issues[edit]

Gforge Tracker ID: 661, 662, 663, 665, 667