You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In vpr.out one of the reports is "Segment usage by type (Index)". I would expect from the description/title (usage by type (index)) that this report should give the percentage of segments of each type in the RR that are actually used in the net-list for the design. However, Looking at the code (shown bellow) it appears that what is actually happening is that each wire of a given length being used in the net list is being counted up and that this value is being used to give a percentage of wires used. This creates an issue if wires with different properties have the same length and a user wants to see how many wires with specific properties are used in the design.
Where the Code Producing this issue can be found
The following image is lines 103-122 of ${VPR_ROOT}/vpr/src/route/segment_stats.cpp:
Expected Behaviour
The description/title of this section should either reflect that we are looking at wire counts by length and index or the code base should be changed to count wire usage using the indexes of those wires in the RR.
Also the title of this section should probably be changed to Segment Occupancy By type since Usage could be interpreted as occurrences (which is different).
The text was updated successfully, but these errors were encountered:
WhiteNinjaZ
changed the title
Segment Usage by Type does not return the values that the description would suggest it should
Segment Usage by Type does not return the values that the title would suggest it should
Sep 22, 2023
Uh oh!
There was an error while loading. Please reload this page.
In vpr.out one of the reports is "Segment usage by type (Index)". I would expect from the description/title (usage by type (index)) that this report should give the percentage of segments of each type in the RR that are actually used in the net-list for the design. However, Looking at the code (shown bellow) it appears that what is actually happening is that each wire of a given length being used in the net list is being counted up and that this value is being used to give a percentage of wires used. This creates an issue if wires with different properties have the same length and a user wants to see how many wires with specific properties are used in the design.
Where the Code Producing this issue can be found
The following image is lines 103-122 of ${VPR_ROOT}/vpr/src/route/segment_stats.cpp:

Expected Behaviour
The description/title of this section should either reflect that we are looking at wire counts by length and index or the code base should be changed to count wire usage using the indexes of those wires in the RR.
Also the title of this section should probably be changed to Segment Occupancy By type since Usage could be interpreted as occurrences (which is different).
The text was updated successfully, but these errors were encountered: