DmpCeff memory error

This commit is contained in:
James Cherry 2021-01-05 20:04:12 -08:00
parent 777e36b870
commit 38b40303a8
1 changed files with 2 additions and 1 deletions

View File

@ -343,7 +343,8 @@ DmpAlg::init(const LibertyLibrary *drvr_library,
void void
DmpAlg::findDriverParams(double ceff) DmpAlg::findDriverParams(double ceff)
{ {
x_[DmpParam::ceff] = ceff; if (nr_order_ == 3)
x_[DmpParam::ceff] = ceff;
double t_vth, t_vl, slew; double t_vth, t_vl, slew;
gateDelays(ceff, t_vth, t_vl, slew); gateDelays(ceff, t_vth, t_vl, slew);
// Scale slew to 0-100% // Scale slew to 0-100%