Repository navigation
update ihp layer resistance with segment-based regression results - #4242
Conversation
Signed-off-by: Arthur Koucher <arthurkoucher@precisioninno.com>
There was a problem hiding this comment.
Code Review
This pull request updates the resistance values for metal layers Metal2 through Metal5 in the ihp-sg13g2 platform configuration and removes documentation regarding correlation results and capacitance workarounds. Feedback suggests that the new layer resistance values are significantly lower than the current signal wire resistance, which may cause pessimistic timing estimates; it is recommended to synchronize these values or use the -layer flag. Additionally, the reviewer advises restoring the removed metadata comments to maintain consistency with other platforms and preserve historical context.
I am having trouble creating individual review comments. Click here to see my feedback.
flow/platforms/ihp-sg13g2/setRC.tcl (2-5)
The updated layer resistance values are significantly lower than the existing set_wire_rc values. The signal wire resistance (2.07259E-03) is now nearly 5x higher than the actual routing layers (4.4E-04). This discrepancy will cause the global router to use highly pessimistic timing and congestion estimates, potentially leading to sub-optimal routing or convergence issues. The set_wire_rc commands (lines 7-8) should be updated to reflect these new results, ideally by using the -layer flag (e.g., set_wire_rc -signal -layer Metal2) to ensure they stay in sync. Additionally, since these values match the RESOVER table rules and are effectively the same, it is cleaner to use a consistent value for all layers to avoid regression noise.
set_layer_rc -layer Metal2 -resistance 4.40000E-04 -capacitance 1.69121E-04
set_layer_rc -layer Metal3 -resistance 4.40000E-04 -capacitance 1.82832E-04
set_layer_rc -layer Metal4 -resistance 4.40000E-04 -capacitance 1.66454E-04
set_layer_rc -layer Metal5 -resistance 4.40000E-04 -capacitance 8.57431E-05
References
- Ensure RC values are synchronized between layers and signal wires, following RESOVER table rules. (link)
flow/platforms/ihp-sg13g2/setRC.tcl (1-2)
Removing the correlation metadata and the explanation for the Metal1 capacitance workaround reduces the maintainability of the script. Other platforms in this repository (e.g., sky130hd, sky130hs) maintain these comments to document the source of the RC values and the reasoning behind specific overrides like the 1e-10 floor. Preserving this context within the file is important for future maintainers who may not have immediate access to the PR history.
References
- Maintain consistency with other platforms by preserving correlation metadata and workaround explanations. (link)
For #4243.
Correlation Data
Mode: segment
Designs (7): aes, gcd, i2c-gpio-expander, ibex, jpeg, riscv32i, spi.
OR Version: bfd6383488 (nightly 7017)
Units: R [kΩ/μm], C [pF/μm]
The resistance values that we were using weren't actually precise. Probably something off with the net-based regression script. The resistance fits obtained with the new segment-based regression have perfect (1.00) R². The fact that the resistance values came out the same for the layers with routing is not a coincidence - it matches the RCX RESOVER table rules.
I cleaned up the setRC.tcl script so that the data w.r.t. the correlation is tracked here rather than having comments in the file.
Observations Regarding Metal1