Skip to content

Commit b8a60ea

Browse files
committed
[vpr][analysis] update comments
1 parent e03f90c commit b8a60ea

File tree

2 files changed

+36
-28
lines changed

2 files changed

+36
-28
lines changed

doc/src/vpr/command_line_usage.rst

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1520,26 +1520,26 @@ VPR uses a negotiated congestion algorithm (based on Pathfinder) to perform rout
15201520

15211521
.. option:: --generate_net_timing_report {on | off}
15221522

1523-
Generates a report that lists the bounding box, slack, and delay of every routed connection in a design in csv format (``report_net_timing.csv``). Fields in the report are:
1523+
Generates a report that lists the bounding box, slack, and delay of every routed connection in a design in CSV format (``report_net_timing.csv``). Each row in the CSV corresponds to a single net.
1524+
1525+
Fields in the report are:
15241526

15251527
.. code-block:: none
1526-
netname: The name assigned to the net in atom netlist
1527-
Fanout : Net's fanout
1528-
bb_xmin: X coordinate of the net's bounding box's bottom left corner
1529-
bb_ymin: Y coordinate of the net's bounding box's bottom left corner
1530-
bb_layer_min: Lowest layer number of the net's bounding box
1531-
bb_xmax: X coordinate of the net's bounding box's top right corner
1532-
bb_ymax: Y coordinate of the net's bounding box's top right corner
1533-
bb_layer_max: Highest layer number of the net's bounding box
1534-
src_pin_name: Name of the net's source pin
1535-
src_pin_slack: Slack of the net's source pin
1536-
sink_1_pin_name: Name of the net's first sink pin
1537-
sink_1_pin_slack: Slack of the net's first sink pin
1538-
sink_1_pin_delay: Delay of the net's first sink pin
1539-
sink_2_pin_name: Name of the net's second sink pin
1540-
sink_2_pin_slack: Slack of the net's second sink pin
1541-
sink_2_pin_delay: Delay of the net's second sink pin
1542-
...
1528+
netname : The name assigned to the net in the atom netlist
1529+
Fanout : Net's fanout (number of sinks)
1530+
bb_xmin : X coordinate of the net's bounding box's bottom-left corner
1531+
bb_ymin : Y coordinate of the net's bounding box's bottom-left corner
1532+
bb_layer_min : Lowest layer number of the net's bounding box
1533+
bb_xmax : X coordinate of the net's bounding box's top-right corner
1534+
bb_ymax : Y coordinate of the net's bounding box's top-right corner
1535+
bb_layer_max : Highest layer number of the net's bounding box
1536+
src_pin_name : Name of the net's source pin
1537+
src_pin_slack : Setup slack of the net's source pin
1538+
sinks : A semicolon-separated list of sink pin entries, each in the format:
1539+
<sink_pin_name>,<sink_pin_slack>,<sink_pin_delay>
1540+
1541+
Example value for the ``sinks`` field:
1542+
``"U2.B,0.12,0.5;U3.C,0.10,0.6;U4.D,0.08,0.7"``
15431543

15441544
**Default:** ``off``
15451545

vpr/src/analysis/timing_reports.h

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,25 @@ void generate_hold_timing_stats(const std::string& prefix,
2222
const BlkLocRegistry& blk_loc_registry);
2323

2424
/**
25-
* @brief Generates timing information for each net in atom netlist. For each net, the timing information
26-
* is reported in the following format:
27-
* netname : Fanout :
28-
* (bounding_box_xmin,bounding_box_ymin,bounding_box_layermin),(bounding_box_xmax,bounding_box_ymax,bounding_box_layermax) :
29-
* source_instance <slack_on source pin> :
30-
* <load pin name1> <slack on load pin name1> <net delay for this net> :
31-
* <load pin name2> <slack on load pin name2> <net delay for this net> : ...
25+
* @brief Generates a CSV report of timing information for each net in the atom netlist.
3226
*
33-
* @param prefix The prefix for the report file to be added to filename: report_net_timing.rpt
34-
* @param timing_info Updated timing information
35-
* @param delay_calc Delay calculator
27+
* Each row in the CSV corresponds to a single net and includes:
28+
* - Net name
29+
* - Fanout count
30+
* - Bounding box (xmin, ymin, layer_min, xmax, ymax, layer_max)
31+
* - Source pin name and slack
32+
* - A single "sinks" field that encodes information for all sink pins
33+
*
34+
* The "sinks" field is a semicolon-separated list of all sink pins.
35+
* Each sink pin is represented as a comma-separated triple:
36+
* <sink_pin_name>,<sink_pin_slack>,<sink_pin_delay>
37+
*
38+
* Example row:
39+
* netA,2,0,0,0,5,5,1,U1.A,0.25,"U2.B,0.12,0.5;U3.C,0.10,0.6"
40+
*
41+
* @param prefix Prefix for the output file name (report will be saved as <prefix>report_net_timing.csv)
42+
* @param timing_info Timing analysis results (slacks)
43+
* @param delay_calc Delay calculator used to extract delay between nodes
3644
*/
3745
void generate_net_timing_report(const std::string& prefix,
3846
const SetupHoldTimingInfo& timing_info,

0 commit comments

Comments
 (0)