Skip to content

Commit

Permalink
Merge pull request The-OpenROAD-Project#5698 from The-OpenROAD-Projec…
Browse files Browse the repository at this point in the history
…t-staging/timing-api-test-precision

test/timing_api_*: use limited precision
  • Loading branch information
maliberty authored Sep 5, 2024
2 parents 80769f9 + 094b3db commit 9c48043
Show file tree
Hide file tree
Showing 8 changed files with 5,477 additions and 5,462 deletions.
20 changes: 10 additions & 10 deletions test/timing_api.ok
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
[INFO ODB-0131] Created 5 components and 27 component-terminals.
[INFO ODB-0133] Created 10 nets and 14 connections.
[INFO ODB-0134] Finished DEF file: get_core_die_areas.def
clk1 9.496530005174086e-16 8.564399892873882e-16
clk2 9.496530005174086e-16 8.564399892873882e-16
clk3 9.496530005174086e-16 8.564399892873882e-16
in1 1.140290047274724e-15 1.0623420520618839e-15
in2 1.140290047274724e-15 1.0623420520618839e-15
out 0.0 0.0
r1q 9.181449630663247e-16 8.748319862480352e-16
r2q 9.746590013071316e-16 8.752499970075052e-16
u1z 9.746299904286881e-16 8.941189793965749e-16
u2z 1.140290047274724e-15 1.0623420520618839e-15
clk1 9.5e-16 8.56e-16
clk2 9.5e-16 8.56e-16
clk3 9.5e-16 8.56e-16
in1 1.14e-15 1.06e-15
in2 1.14e-15 1.06e-15
out 0 0
r1q 9.18e-16 8.75e-16
r2q 9.75e-16 8.75e-16
u1z 9.75e-16 8.94e-16
u2z 1.14e-15 1.06e-15
r1 DFF_X1 True
r2 DFF_X1 True
r3 DFF_X1 True
Expand Down
8 changes: 5 additions & 3 deletions test/timing_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@
for corner in timing.getCorners():
for net in design.getBlock().getNets():
print(
net.getName(),
timing.getNetCap(net, corner, Timing.Max),
timing.getNetCap(net, corner, Timing.Min),
"{} {:.3g} {:.3g}".format(
net.getName(),
timing.getNetCap(net, corner, Timing.Max),
timing.getNetCap(net, corner, Timing.Min),
)
)

for inst in design.getBlock().getInsts():
Expand Down
Loading

0 comments on commit 9c48043

Please sign in to comment.