Repository navigation
refactor, restructure and add some checks to our write RC mechanism - #4388
Conversation
1) Bundle write_segment_rc and write_net_rc into write_rc which now
generates two .csv files.
2) Make correlateRC.py be able to consume both files as input. Nets
file is used for plotting, segments file is used for set_layer_rc.
3) Adjust make commands accordingly and remove unused code comment.
Signed-off-by: Arthur Koucher <arthurkoucher@precisioninno.com>
…he fit Signed-off-by: Arthur Koucher <arthurkoucher@precisioninno.com>
Signed-off-by: Arthur Koucher <arthurkoucher@precisioninno.com>
1) Drop the wirelength columns of the nets .csv along with the
CORRELATE_DRT_WIRELENGTH handling, as nothing consumes them.
2) Name the data in the header of each .csv and check it, so that
swapped and mismatched input files are caught for both of them.
3) Only report zero parasitics when there are any and only read the
nets file when a plot was requested.
4) Document that the .csv files are not regenerated on their own.
Signed-off-by: Arthur Koucher <arthurkoucher@precisioninno.com>
1) Fetch and write the nets data of hierarchical designs, which now
also blocked the segments data as a single script writes both.
2) Error out on a segment whose layer is not in the header instead
of dropping it silently, and inform when the nets and the
segments data list different routing layers.
3) Warn instead of failing when no layer was fitted, inform that the
nets file is only read to plot and report unknown units on stderr.
Signed-off-by: Arthur Koucher <arthurkoucher@precisioninno.com>
There was a problem hiding this comment.
Code Review
This pull request refactors the RC correlation flow by consolidating the net and segment RC generation into a single target and script, and modularizing the Python correlation code into a helper library. The review feedback highlights a compatibility issue in the Makefile where the grouped target syntax (&:) requires GNU Make 4.3 or newer, which may break on older LTS environments. Additionally, there are bugs in the CSV parsing functions (read_nets_rc and read_segments_rc) where header validation is not properly reset per file when processing multiple files.
1) Require a header on each input file, so that a file of another
kind is not read against the header of the previous one, and name
the file that is missing it.
2) Write both .csv files with a pattern rule, as the grouped target
syntax requires GNU Make 4.3 while we support older releases.
Signed-off-by: Arthur Koucher <arthurkoucher@precisioninno.com>
|
@jeffng-or FYI. |
|
@codex review |
|
Codex Review: Didn't find any major issues. Already looking forward to the next diff. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Resolve #4383.
Functional Changes
write_net_rcandwrite_segment_rcintowrite_rcwhich now generates two .csv files: one for the nets' data, another one for the segments' data.-nets_rc_fileand-segments_rc_file. The net data is used only for plotting parasitics differences between GRT/DRT. The segment data is used for the actual fitting and generation ofset_layer_rcandset_wire_rccommands.Refactoring Changes
What's New in correlateRC.py
-segments_rc_fileis now required, as theset_layer_rcandset_wire_rccommands are the product of every run.-plot_cap/-plot_resrequire-nets_rc_file.Collateral
makedirectivescorrelate_rcandcorrelate_platform_rcto use the new mechanism.