Closed arthurjolo closed 3 months ago
clang-tidy review says "All clean, LGTM! :+1:"
clang-tidy review says "All clean, LGTM! :+1:"
Should we be writing this in TCL? It seems like we should add something to the C++ api that returns a map<cell_type, int> or something like that instead.
I agree this shouldn't be in TCL as it won't be available in python. You could separate the stats summary, as Ethan suggests, from the actual reporting.
I don't think the "Cells before/after" messages are needed.
clang-tidy review says "All clean, LGTM! :+1:"
clang-tidy review says "All clean, LGTM! :+1:"
clang-tidy review says "All clean, LGTM! :+1:"
A small change now that the code is in C++, the command to report the cells count is now: sta::report_cell_count
A small change now that the code is in C++, the command to report the cells count is now:
sta::report_cell_count
Nice! I like the change a lot.
clang-tidy review says "All clean, LGTM! :+1:"
This looks very close to gui's DbInstDescriptor::getInstanceType & DbInstDescriptor::getInstanceTypeText. I'd like to avoid having two pieces of code that do nearly, but not quite, the same thing.
Could we move the guts of those functions to your code and call them from GUI? The count function would iterate and sum by calling this new method per inst.
This looks very close to gui's DbInstDescriptor::getInstanceType & DbInstDescriptor::getInstanceTypeText. I'd like to avoid having two pieces of code that do nearly, but not quite, the same thing.
Could we move the guts of those functions to your code and call them from GUI? The count function would iterate and sum by calling this new method per inst.
@maliberty I belive this last commit addresses this. The DbInstDescriptor::getInstanceTypeText I maintained as it was in DbInstDescriptor but using the new dbSta::getInstanceType().
clang-tidy review says "All clean, LGTM! :+1:"
clang-tidy review says "All clean, LGTM! :+1:"
clang-tidy review says "All clean, LGTM! :+1:"
clang-tidy review says "All clean, LGTM! :+1:"
clang-tidy review says "All clean, LGTM! :+1:"
clang-tidy review says "All clean, LGTM! :+1:"
clang-tidy review says "All clean, LGTM! :+1:"
Please show a sample output
Please show a sample output
An output example would be:
Reporting Cells count:
Macro: 6
Fill: 523662
Tapcell: 58169
Antenna: 412
Buffer/inverter: 242
Clock buffer/inverter: 81
Buffer/inverter from timing repair: 288
Sequential: 525
Combinational: 1928
Please show a sample output
An output example would be:
Reporting Cells count: Macro: 6 Fill: 523662 Tapcell: 58169 Antenna: 412 Buffer/inverter: 242 Clock buffer/inverter: 81 Buffer/inverter from timing repair: 288 Sequential: 525 Combinational: 1928
Does "Combinational" include buffers, clock buffers, buffers from timing repair? The report can be made clearer with something like the following:
Cell usage report: Macros: 6 Fill cells: 523662 Tap cells: 58169 Antenna cells: 412 Data buffers/inverters: 242 Clock buffers/inverters: 81 Timing repair data buffers/inverters: 288 Sequential cells: 525 Complex combinational cells: 1928
Alternate Tcl command name like report_cell_usage may be good also.
clang-tidy review says "All clean, LGTM! :+1:"
Complex
Combinational do not include buffers/inverters. I changed the report. That wxample now is:
Cell usage report:
Macros: 6
Fill cells: 523662
Tap cells: 58169
Antenna cells: 412
Buffer/inverters: 242
Clock buffer/inverters: 81
Timming Repair Buffer/inverters: 288
Sequential cells: 525
Complex combinational cells: 1928
clang-tidy review says "All clean, LGTM! :+1:"
Complex
Combinational do not include buffers/inverters. I changed the report. That wxample now is:
Cell usage report: Macros: 6 Fill cells: 523662 Tap cells: 58169 Antenna cells: 412 Buffer/inverters: 242 Clock buffer/inverters: 81 Timming Repair Buffer/inverters: 288 Sequential cells: 525 Complex combinational cells: 1928
Just a small typo: "Timming" should read "Timing"
clang-tidy review says "All clean, LGTM! :+1:"
Please add a unit test and command documentation.
clang-tidy review says "All clean, LGTM! :+1:"
@maliberty I am having some difficulties on finding where to add the documentation for the command. The dbSta directory doesn’t have a README.md file, is there another directory I can add the documentation?
Src read me is ok as is somewhat global
clang-tidy review says "All clean, LGTM! :+1:"
Fixes #1695
This PR adds a command (report_cell_count) to report the cells count before CTS, after CTS and after Filler cells have been added.