Skip to content

Commit

Permalink
report: added tns
Browse files Browse the repository at this point in the history
Signed-off-by: Øyvind Harboe <[email protected]>
  • Loading branch information
oharboe committed Oct 31, 2024
1 parent 6c607a4 commit 216448d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wns_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ def parse_stats(report):
for line in report.split("\n"):
if "slack" in line:
stats["slack"] = float(line.split()[1])
if "tns" in line:
stats["tns"] = float(line.split()[1])
if "setup skew" in line:
stats["skew"] = line.split()[0]
# First line is "Cell type report", last line is "Total",
Expand Down
1 change: 1 addition & 0 deletions wns_report_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def test_parse_stats():
"Sequential cell": 35,
"Multi-Input combinational cell": 369,
"Total": 551,
"tns": 0.00,
}

assert wns_report.parse_stats(report) == expected_stats

0 comments on commit 216448d

Please sign in to comment.