Skip to content

Commit

Permalink
psm: add message about reusing
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Gadfort <[email protected]>
  • Loading branch information
gadfort committed Jan 10, 2025
1 parent ae65782 commit 1a29ac3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 29 deletions.
2 changes: 2 additions & 0 deletions src/psm/src/pdnsim.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ void PDNSim::analyzePowerGrid(odb::dbNet* net,
auto* solver = getIRSolver(net, false);
if (!use_prev_solution || !solver->hasSolution(corner)) {
solver->solve(corner, source_type, voltage_source_file);
} else {
logger_->info(utl::PSM, 11, "Reusing previous solution");
}
solver->report(corner);

Expand Down
26 changes: 2 additions & 24 deletions src/psm/test/gcd_no_vsrc_reuse.ok
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Worstcase IR drop: 1.49e-03 V
Percentage drop : 0.10 %
######################################
[INFO PSM-0040] All shapes on net VDD are connected.
[INFO PSM-0011] Reusing previous solution
########## IR report #################
Net : VDD
Corner : default
Expand All @@ -40,6 +41,7 @@ Worstcase IR drop: 3.28e-04 V
Percentage drop : 0.02 %
######################################
[INFO PSM-0040] All shapes on net VSS are connected.
[INFO PSM-0011] Reusing previous solution
########## IR report #################
Net : VSS
Corner : default
Expand All @@ -50,27 +52,3 @@ Average IR drop : 9.19e-04 V
Worstcase IR drop: 1.49e-03 V
Percentage drop : 0.10 %
######################################
[INFO PSM-0040] All shapes on net VDD are connected.
[INFO PSM-0073] Using bump pattern with x-pitch 140.0000um, y-pitch 140.0000um, and size 70.0000um with an reduction factor of 3x.
########## IR report #################
Net : VDD
Corner : default
Supply voltage : 1.50e+00 V
Worstcase voltage: 1.49e+00 V
Average voltage : 1.50e+00 V
Average IR drop : 1.33e-03 V
Worstcase IR drop: 1.41e-02 V
Percentage drop : 0.94 %
######################################
[INFO PSM-0040] All shapes on net VSS are connected.
[INFO PSM-0073] Using bump pattern with x-pitch 140.0000um, y-pitch 140.0000um, and size 70.0000um with an reduction factor of 3x.
########## IR report #################
Net : VSS
Corner : default
Supply voltage : 0.00e+00 V
Worstcase voltage: 3.00e-02 V
Average voltage : 8.15e-03 V
Average IR drop : 8.15e-03 V
Worstcase IR drop: 3.00e-02 V
Percentage drop : 2.00 %
######################################
5 changes: 0 additions & 5 deletions src/psm/test/gcd_no_vsrc_reuse.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,5 @@ set_pdnsim_net_voltage -net VDD -voltage 1.5
analyze_power_grid -net VDD -allow_reuse
analyze_power_grid -net VSS -allow_reuse

set_pdnsim_inst_power -inst _440_ -power 1e-3

analyze_power_grid -net VDD -allow_reuse
analyze_power_grid -net VSS -allow_reuse

analyze_power_grid -net VDD
analyze_power_grid -net VSS

0 comments on commit 1a29ac3

Please sign in to comment.