mirror of
https://github.com/The-OpenROAD-Project/OpenSTA.git
synced 2026-05-30 00:24:12 +08:00
debugPrint use __VA_ARGS__
This commit is contained in:
@@ -131,9 +131,9 @@ ReduceToPi::reduceToPi(const Pin *drvr_pin,
|
||||
c2 = y1 - y2 * y2 / y3;
|
||||
rpi = -y3 * y3 / (y2 * y2 * y2);
|
||||
}
|
||||
debugPrint3(debug_, "parasitic_reduce", 2,
|
||||
" Pi model c2=%.3g rpi=%.3g c1=%.3g",
|
||||
c2, rpi, c1);
|
||||
debugPrint(debug_, "parasitic_reduce", 2,
|
||||
" Pi model c2=%.3g rpi=%.3g c1=%.3g",
|
||||
c2, rpi, c1);
|
||||
}
|
||||
|
||||
// Find admittance moments.
|
||||
@@ -173,8 +173,8 @@ ReduceToPi::reducePiDfs(const Pin *drvr_pin,
|
||||
&& device != from_res) {
|
||||
if (isVisited(onode)) {
|
||||
// Resistor loop.
|
||||
debugPrint1(debug_, "parasitic_reduce", 2, " loop detected thru resistor %s",
|
||||
parasitics_->name(device));
|
||||
debugPrint(debug_, "parasitic_reduce", 2, " loop detected thru resistor %s",
|
||||
parasitics_->name(device));
|
||||
markLoopResistor(device);
|
||||
}
|
||||
else {
|
||||
@@ -195,9 +195,9 @@ ReduceToPi::reducePiDfs(const Pin *drvr_pin,
|
||||
|
||||
setDownstreamCap(node, dwn_cap);
|
||||
leave(node);
|
||||
debugPrint5(debug_, "parasitic_reduce", 3,
|
||||
" node %s y1=%.3g y2=%.3g y3=%.3g cap=%.3g",
|
||||
parasitics_->name(node), y1, y2, y3, dwn_cap);
|
||||
debugPrint(debug_, "parasitic_reduce", 3,
|
||||
" node %s y1=%.3g y2=%.3g y3=%.3g cap=%.3g",
|
||||
parasitics_->name(node), y1, y2, y3, dwn_cap);
|
||||
}
|
||||
|
||||
float
|
||||
@@ -301,8 +301,8 @@ reduceToPiElmore(Parasitic *parasitic_network,
|
||||
ParasiticNode *drvr_node = parasitics->findNode(parasitic_network,
|
||||
drvr_pin);
|
||||
if (drvr_node) {
|
||||
debugPrint1(sta->debug(), "parasitic_reduce", 1, "Reduce driver %s",
|
||||
sta->network()->pathName(drvr_pin));
|
||||
debugPrint(sta->debug(), "parasitic_reduce", 1, "Reduce driver %s",
|
||||
sta->network()->pathName(drvr_pin));
|
||||
ReduceToPiElmore reducer(sta);
|
||||
reducer.makePiElmore(parasitic_network, drvr_pin, drvr_node,
|
||||
coupling_cap_factor, RiseFall::rise(),
|
||||
@@ -355,9 +355,9 @@ ReduceToPiElmore::reduceElmoreDfs(const Pin *drvr_pin,
|
||||
const Pin *pin = parasitics_->connectionPin(node);
|
||||
if (from_res && pin) {
|
||||
if (network_->isLoad(pin)) {
|
||||
debugPrint2(debug_, "parasitic_reduce", 2, " Load %s elmore=%.3g",
|
||||
network_->pathName(pin),
|
||||
elmore);
|
||||
debugPrint(debug_, "parasitic_reduce", 2, " Load %s elmore=%.3g",
|
||||
network_->pathName(pin),
|
||||
elmore);
|
||||
parasitics_->setElmore(pi_elmore, pin, elmore);
|
||||
}
|
||||
}
|
||||
@@ -466,8 +466,8 @@ reduceToPiPoleResidue2(Parasitic *parasitic_network,
|
||||
Parasitics *parasitics = sta->parasitics();
|
||||
ParasiticNode *drvr_node = parasitics->findNode(parasitic_network, drvr_pin);
|
||||
if (drvr_node) {
|
||||
debugPrint1(sta->debug(), "parasitic_reduce", 1, "Reduce driver %s",
|
||||
sta->network()->pathName(drvr_pin));
|
||||
debugPrint(sta->debug(), "parasitic_reduce", 1, "Reduce driver %s",
|
||||
sta->network()->pathName(drvr_pin));
|
||||
ReduceToPiPoleResidue2 reducer(sta);
|
||||
reducer.makePiPoleResidue2(parasitic_network, drvr_pin, drvr_node,
|
||||
coupling_cap_factor, RiseFall::rise(),
|
||||
@@ -587,7 +587,7 @@ ReduceToPiPoleResidue2::findBranchCurrents(const Pin *drvr_pin,
|
||||
leave(node);
|
||||
if (from_res) {
|
||||
setCurrent(from_res, branch_i);
|
||||
debugPrint1(debug_, "parasitic_reduce", 3, " res i=%.3g", branch_i);
|
||||
debugPrint(debug_, "parasitic_reduce", 3, " res i=%.3g", branch_i);
|
||||
}
|
||||
return branch_i;
|
||||
}
|
||||
@@ -615,10 +615,10 @@ ReduceToPiPoleResidue2::findMoments(const Pin *drvr_pin,
|
||||
double r_volt = r * current(device);
|
||||
double onode_volt = from_volt - r_volt;
|
||||
setMoment(onode, onode_volt, moment_index);
|
||||
debugPrint3(debug_, "parasitic_reduce", 3, " moment %s %d %.3g",
|
||||
parasitics_->name(onode),
|
||||
moment_index,
|
||||
onode_volt);
|
||||
debugPrint(debug_, "parasitic_reduce", 3, " moment %s %d %.3g",
|
||||
parasitics_->name(onode),
|
||||
moment_index,
|
||||
onode_volt);
|
||||
findMoments(drvr_pin, onode, onode_volt, device, moment_index, ap);
|
||||
}
|
||||
}
|
||||
@@ -683,8 +683,8 @@ ReduceToPiPoleResidue2::findPolesResidues(Parasitic *pi_pole_residue,
|
||||
|| m1 / m2 == m2 / m3) {
|
||||
double p1 = -1.0 / m1;
|
||||
double k1 = 1.0;
|
||||
debugPrint3(debug_, "parasitic_reduce", 3, " load %s p1=%.3g k1=%.3g",
|
||||
network_->pathName(load_pin), p1, k1);
|
||||
debugPrint(debug_, "parasitic_reduce", 3, " load %s p1=%.3g k1=%.3g",
|
||||
network_->pathName(load_pin), p1, k1);
|
||||
ComplexFloatSeq *poles = new ComplexFloatSeq(1);
|
||||
ComplexFloatSeq *residues = new ComplexFloatSeq(1);
|
||||
(*poles)[0] = ComplexFloat(p1, 0.0);
|
||||
@@ -702,9 +702,9 @@ ReduceToPiPoleResidue2::findPolesResidues(Parasitic *pi_pole_residue,
|
||||
p1 = p;
|
||||
k1 = k;
|
||||
}
|
||||
debugPrint5(debug_, "parasitic_reduce", 3,
|
||||
" load %s p1=%.3g p2=%.3g k1=%.3g k2=%.3g",
|
||||
network_->pathName(load_pin), p1, p2, k1, k2);
|
||||
debugPrint(debug_, "parasitic_reduce", 3,
|
||||
" load %s p1=%.3g p2=%.3g k1=%.3g k2=%.3g",
|
||||
network_->pathName(load_pin), p1, p2, k1, k2);
|
||||
|
||||
ComplexFloatSeq *poles = new ComplexFloatSeq(2);
|
||||
ComplexFloatSeq *residues = new ComplexFloatSeq(2);
|
||||
|
||||
Reference in New Issue
Block a user