/** 2743855854 **/
/***********************************************************************************
 ** Copyright (c) 2003 Cadence Design Systems, Inc. All rights reserved.          **
 **                                                                               **
 ** This work may not be copied, modified, re-published, uploaded, executed, or   **
 ** distributed in any way, in any medium, whether in whole or in part, without   **
 ** prior written permission from Cadence Design Systems, Inc.                    **
 **                                                                               **
 ** This file is automatically generated and will be overwritten. The interfaces  **
 ** used within this generated code are subject to change without notice.         **
 ***********************************************************************************/
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include "PLL_PFD_inst_static.h"

static long   __BITWISE_LOGIC_OP_TEMP_VAR__;int PLL_PFD_DcFuncDerLoad(int anal_mode, char* instData, char* modelData, char** stringList) {

int __msgSeverity__ = 0;
long	__tmpStkVar_46 = 0;
double	__tmpStkVar_45 = 0.0;
long	__tmpStkVar_44 = 0;
double	__tmpStkVar_43 = 0.0;
double	__tmpStkVar_42 = 0.0;
double	__tmpStkVar_41 = 0.0;
double	__tmpStkVar_40 = 0.0;
double	__tmpStkVar_39 = 0.0;
double	__tmpStkVar_38 = 0.0;
double	__tmpStkVar_37 = 0.0;
double	__tmpStkVar_36 = 0.0;
double	__tmpStkVar_35 = 0.0;
double	__tmpStkVar_34 = 0.0;
double	__tmpStkVar_33 = 0.0;
double	__tmpStkVar_32 = 0.0;
double	__tmpStkVar_31 = 0.0;
double	__tmpStkVar_30 = 0.0;
double	__tmpStkVar_29 = 0.0;
double	__tmpStkVar_28 = 0.0;
double	__tmpStkVar_27 = 0.0;
double	__tmpStkVar_26 = 0.0;
double	__tmpStkVar_25 = 0.0;
double	__tmpStkVar_24 = 0.0;
double	__tmpStkVar_23 = 0.0;
double	__tmpStkVar_22 = 0.0;
double	__tmpStkVar_21 = 0.0;
double	__tmpStkVar_20 = 0.0;
double	__tmpStkVar_19 = 0.0;
double	__tmpStkVar_18 = 0.0;
double	__tmpStkVar_17 = 0.0;
double	__tmpStkVar_16 = 0.0;
double	__tmpStkVar_15 = 0.0;
double	__tmpStkVar_14 = 0.0;
double	__tmpStkVar_13 = 0.0;
double	__tmpStkVar_12 = 0.0;
double	__tmpStkVar_11 = 0.0;
double	__tmpStkVar_10 = 0.0;
double	__tmpStkVar_9 = 0.0;
double	__tmpStkVar_8 = 0.0;
double	__tmpStkVar_7 = 0.0;
double	__tmpStkVar_6 = 0.0;
double	__tmpStkVar_5 = 0.0;
double	__tmpStkVar_4 = 0.0;
double	__tmpStkVar_3 = 0.0;
double	__tmpStkVar_2 = 0.0;
double	__tmpStkVar_1 = 0.0;


/*  Pre-Anal Load Code. */memcpy ((void *) (instData + 112), (void *) (instData + 128), 16);
memcpy ((void *) (instData + 152), (void *) (instData + 168), 16);
memcpy ((void *) (instData + 272), (void *) (instData + 288), 16);
memcpy ((void *) (instData + 312), (void *) (instData + 328), 16);
memcpy ((void *) (instData + 352), (void *) (instData + 368), 16);
memcpy ((void *) (instData + 392), (void *) (instData + 408), 16);
memcpy ((void *) (instData + 432), (void *) (instData + 448), 16);
memcpy ((void *) (instData + 472), (void *) (instData + 488), 16);
memcpy ((void *) (instData + 508), (void *) (instData + 512), 4);
memcpy ((void *) (instData + 640), (void *) (instData + 656), 16);
memcpy ((void *) (instData + 680), (void *) (instData + 696), 16);
memcpy ((void *) (instData + 720), (void *) (instData + 736), 16);
memcpy ((void *) (instData + 760), (void *) (instData + 776), 16);
memcpy ((void *) (instData + 800), (void *) (instData + 816), 16);
memcpy ((void *) (instData + 840), (void *) (instData + 856), 16);
memcpy ((void *) (instData + 876), (void *) (instData + 880), 4);
ahdlInterClearStepBounds ();
memcpy ((void *) (instData + 1200), (void *) (instData + 1208), 8);
memcpy ((void *) (instData + 1216), (void *) (instData + 1224), 8);
__tmpStkVar_43 = 0;
__tmpStkVar_45 = 0;
_V_Static_UP_1344 = 0.0;
_Static_d_by_dv_VDD_1248 = 0.0;
_V_Static_DN_1376 = 0.0;
_Static_d_by_dv_VDD_1272 = 0.0;

/*  C Code Every Code. */{ahdlDoSetLineNum ((long) 30);ahdlDoSetLineNum ((long) 30);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((getAcrossSolution1(_VSS_60)));__tmpStkVar_1 = ((1.00000000000000000000e+00));(_VSS_value_888) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 31);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((getAcrossSolution1(_global_VSS_68)));__tmpStkVar_2 = ((1.00000000000000000000e+00));(_global_VSS_value_928) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 32);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((getAcrossSolution1(_VDD_52)));__tmpStkVar_3 = ((1.00000000000000000000e+00));(_VDD_value_968) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 33);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((__FLOAT_DIV((_VDD_value_968), ((2.00000000000000000000e+00)))));__tmpStkVar_4 = ((__FLOAT_DIV((__tmpStkVar_3), ((2.00000000000000000000e+00)))));(_thr_1008) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 37);if (ahdlIsInitialStep (0x1000000, 0x0)){{ahdlDoSetLineNum ((long) 38);ahdlDoSetLineNum ((long) 38);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((1.00000000000000088946e-09));__tmpStkVar_14 = 0.0;(_UP_rise_312) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 39);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((1.00000000000000088946e-09));__tmpStkVar_39 = 0.0;(_UP_fall_352) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 40);(_UP_fun_508) = ((0L));ahdlDoSetLineNum ((long) 41);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((1.00000000000000088946e-09));__tmpStkVar_31 = 0.0;(_DN_rise_680) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 42);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((1.00000000000000088946e-09));__tmpStkVar_24 = 0.0;(_DN_fall_720) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 43);(_DN_fun_876) = ((0L));}}ahdlDoSetLineNum ((long) 46);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((__FLOAT_DIV((_VDD_value_968), ((2.00000000000000000000e+00)))));__tmpStkVar_8 = ((__FLOAT_DIV((__tmpStkVar_3), ((2.00000000000000000000e+00)))));(_PD_thr_520) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 48);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((__FLOAT_DIV((_VDD_value_968), ((2.00000000000000000000e+00)))));__tmpStkVar_9 = ((__FLOAT_DIV((__tmpStkVar_3), ((2.00000000000000000000e+00)))));(_REFCLK_thr_560) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 49);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((__FLOAT_DIV((_VDD_value_968), ((2.00000000000000000000e+00)))));__tmpStkVar_10 = ((__FLOAT_DIV((__tmpStkVar_3), ((2.00000000000000000000e+00)))));(_FBCLK_thr_600) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 51);if (0 /* Cross Event not valid in DC mode. */){{ahdlDoSetLineNum ((long) 52);ahdlDoSetLineNum ((long) 52);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((1.00000000000000088946e-09));__tmpStkVar_17 = 0.0;(_UP_delay_392) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 53);(_UP_fun_508) = ((0L));ahdlDoSetLineNum ((long) 54);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((1.00000000000000088946e-09));__tmpStkVar_34 = 0.0;(_DN_delay_760) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 55);(_DN_fun_876) = ((0L));}}ahdlDoSetLineNum ((long) 58);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = (ahdlDoLastCross (*(void **) (instData + 1140), ((((getAcrossSolution1(_REFCLK_36))) - (_REFCLK_thr_560))), (1L)));(_REFCLK_last_192) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 59);if (0 /* Cross Event not valid in DC mode. */){if ((((getAcrossSolution1(_PD_44))) < (_PD_thr_520))){{ahdlDoSetLineNum ((long) 61);if ((__LOGIC_AND(((((spectre_time())) > (_dead_region_112))), ((!_UP_fun_508))))){{ahdlDoSetLineNum ((long) 62);if ((!_DN_fun_876)){{ahdlDoSetLineNum ((long) 63);ahdlDoSetLineNum ((long) 63);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = (evalTableModelC( *(void**)(instData +1148) , (_VDD_value_968), &__tmpStkVar_11));__tmpStkVar_12 = ((((__tmpStkVar_3)) * ((__tmpStkVar_11))));(_REFCLK_UP_tran_delay_432) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 64);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((((evalTableModelC( *(void**)(instData +1152) , (_VDD_value_968), &__tmpStkVar_13)) * ((5.00000000000000000000e-01)))));__tmpStkVar_14 = (((((((__tmpStkVar_3)) * ((__tmpStkVar_13))))) * (((5.00000000000000000000e-01)))));(_UP_rise_312) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 65);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((MAX(__tmpStkVar_15 = ((((_REFCLK_UP_tran_delay_432) - (_UP_rise_312)))), __tmpStkVar_16 = __INT_TO_DBL((0L)))));__tmpStkVar_17 = (((__tmpStkVar_15 > __tmpStkVar_16) ? ((((__tmpStkVar_12)) - ((__tmpStkVar_14)))) : ((0.00000000000000000000e+00))));(_UP_delay_392) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 66);(_UP_fun_508) = ((1L));}}else{{ahdlDoSetLineNum ((long) 70);ahdlDoSetLineNum ((long) 70);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = (evalTableModelC( *(void**)(instData +1156) , (_VDD_value_968), &__tmpStkVar_18));__tmpStkVar_19 = ((((__tmpStkVar_3)) * ((__tmpStkVar_18))));(_dead_time_152) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 71);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((((_REFCLK_last_192) + (((__INT_TO_DBL((2L)) * (_dead_time_152)))))));__tmpStkVar_20 = (((__INT_TO_DBL((2L))) * ((__tmpStkVar_19))));(_dead_region_112) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 72);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = (evalTableModelC( *(void**)(instData +1160) , (_VDD_value_968), &__tmpStkVar_21));__tmpStkVar_22 = ((((__tmpStkVar_3)) * ((__tmpStkVar_21))));(_REFCLK_DN_tran_delay_800) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 73);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((((evalTableModelC( *(void**)(instData +1164) , (_VDD_value_968), &__tmpStkVar_23)) * ((5.00000000000000000000e-01)))));__tmpStkVar_24 = (((((((__tmpStkVar_3)) * ((__tmpStkVar_23))))) * (((5.00000000000000000000e-01)))));(_DN_fall_720) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 74);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((MAX(__tmpStkVar_25 = (_DN_reset_640), __tmpStkVar_26 = (((((((_REFCLK_last_192) + (_REFCLK_DN_tran_delay_800)))) - (_DN_fall_720)))))));__tmpStkVar_27 = (((__tmpStkVar_25 > __tmpStkVar_26) ? ((0.00000000000000000000e+00)) : ((((__tmpStkVar_22)) - ((__tmpStkVar_24))))));(_DN_reset_640) = __tempValueResultStatic;}}}}}}}}ahdlDoSetLineNum ((long) 78);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = (ahdlDoLastCross (*(void **) (instData + 1168), ((((getAcrossSolution1(_FBCLK_28))) - (_FBCLK_thr_600))), (1L)));(_FBCLK_last_232) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 80);if (0 /* Cross Event not valid in DC mode. */){if ((((getAcrossSolution1(_PD_44))) < (_PD_thr_520))){{ahdlDoSetLineNum ((long) 82);if ((__LOGIC_AND(((((spectre_time())) > (_dead_region_112))), ((!_DN_fun_876))))){{ahdlDoSetLineNum ((long) 83);if ((!_UP_fun_508)){{ahdlDoSetLineNum ((long) 84);ahdlDoSetLineNum ((long) 84);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = (evalTableModelC( *(void**)(instData +1176) , (_VDD_value_968), &__tmpStkVar_28));__tmpStkVar_29 = ((((__tmpStkVar_3)) * ((__tmpStkVar_28))));(_FBCLK_DN_tran_delay_840) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 85);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((((evalTableModelC( *(void**)(instData +1180) , (_VDD_value_968), &__tmpStkVar_30)) * ((5.00000000000000000000e-01)))));__tmpStkVar_31 = (((((((__tmpStkVar_3)) * ((__tmpStkVar_30))))) * (((5.00000000000000000000e-01)))));(_DN_rise_680) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 86);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((MAX(__tmpStkVar_32 = ((((_FBCLK_DN_tran_delay_840) - (_DN_rise_680)))), __tmpStkVar_33 = __INT_TO_DBL((0L)))));__tmpStkVar_34 = (((__tmpStkVar_32 > __tmpStkVar_33) ? ((((__tmpStkVar_29)) - ((__tmpStkVar_31)))) : ((0.00000000000000000000e+00))));(_DN_delay_760) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 87);(_DN_fun_876) = ((1L));}}else{{ahdlDoSetLineNum ((long) 90);ahdlDoSetLineNum ((long) 90);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = (evalTableModelC( *(void**)(instData +1184) , (_VDD_value_968), &__tmpStkVar_35));__tmpStkVar_19 = ((((__tmpStkVar_3)) * ((__tmpStkVar_35))));(_dead_time_152) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 91);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((((_FBCLK_last_232) + (((__INT_TO_DBL((2L)) * (_dead_time_152)))))));__tmpStkVar_20 = (((__INT_TO_DBL((2L))) * ((__tmpStkVar_19))));(_dead_region_112) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 92);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = (evalTableModelC( *(void**)(instData +1188) , (_VDD_value_968), &__tmpStkVar_36));__tmpStkVar_37 = ((((__tmpStkVar_3)) * ((__tmpStkVar_36))));(_FBCLK_UP_tran_delay_472) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 93);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((((evalTableModelC( *(void**)(instData +1192) , (_VDD_value_968), &__tmpStkVar_38)) * ((5.00000000000000000000e-01)))));__tmpStkVar_39 = (((((((__tmpStkVar_3)) * ((__tmpStkVar_38))))) * (((5.00000000000000000000e-01)))));(_UP_fall_352) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 94);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((MAX(__tmpStkVar_40 = (_UP_reset_272), __tmpStkVar_41 = (((((((_FBCLK_last_232) + (_FBCLK_UP_tran_delay_472)))) - (_UP_fall_352)))))));__tmpStkVar_42 = (((__tmpStkVar_40 > __tmpStkVar_41) ? ((0.00000000000000000000e+00)) : ((((__tmpStkVar_37)) - ((__tmpStkVar_39))))));(_UP_reset_272) = __tempValueResultStatic;}}}}}}}}ahdlDoSetLineNum ((long) 98);if (ahdlIsTimerEvent ((_UP_reset_272), 0, (double *) (instData + 1200))){{ahdlDoSetLineNum ((long) 99);ahdlDoSetLineNum ((long) 99);(_UP_fun_508) = ((0L));ahdlDoSetLineNum ((long) 100);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((0.00000000000000000000e+00));__tmpStkVar_17 = 0.0;(_UP_delay_392) = __tempValueResultStatic;}}}ahdlDoSetLineNum ((long) 102);if (ahdlIsTimerEvent ((_DN_reset_640), 0, (double *) (instData + 1216))){{ahdlDoSetLineNum ((long) 103);ahdlDoSetLineNum ((long) 103);(_DN_fun_876) = ((0L));ahdlDoSetLineNum ((long) 104);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((0.00000000000000000000e+00));__tmpStkVar_34 = 0.0;(_DN_delay_760) = __tempValueResultStatic;}}}ahdlDoSetLineNum ((long) 106);(_V_Static_UP_1344) += ahdlDoTransition (*(void **) (instData + 1232), ((__tmpStkVar_44 = _UP_fun_508) ? _VDD_value_968 : (0L)), _UP_delay_392, (((_UP_rise_312) * ((2.00000000000000000000e+00)))), (((_UP_fall_352) * ((2.00000000000000000000e+00)))), 0, 1, (double *) &__tmpStkVar_43);_Static_d_by_dv_VDD_1248 += ((((__tmpStkVar_44 ? __tmpStkVar_3 : (0.00000000000000000000e+00))) * ((__tmpStkVar_43))));ahdlDoSetLineNum ((long) 107);(_V_Static_DN_1376) += ahdlDoTransition (*(void **) (instData + 1256), ((__tmpStkVar_46 = _DN_fun_876) ? _VDD_value_968 : (0L)), _DN_delay_760, (((_DN_rise_680) * ((2.00000000000000000000e+00)))), (((_DN_fall_720) * ((2.00000000000000000000e+00)))), 0, 1, (double *) &__tmpStkVar_45);_Static_d_by_dv_VDD_1272 += ((((__tmpStkVar_46 ? __tmpStkVar_3 : (0.00000000000000000000e+00))) * ((__tmpStkVar_45))));}ahdlDoSetLineNum ((long) 108);    ahdlInterSetAcrossQuan(      *(void **)(instData + 1332),
       _UP_20,       *(long*)(instData + 0),       _UP_flow_1328,      _V_Static_UP_1344   ,       1.0    );
      /* do positive component */      ahdlInterAddStaticElement(*(void**)(instData + 1240), _Static_d_by_dv_VDD_1248);
      /* do negative component */      ahdlInterAddStaticElement(*(void**)(instData + 1236), -_Static_d_by_dv_VDD_1248);
    ahdlInterSetAcrossQuan(      *(void **)(instData + 1364),
       _DN_12,       *(long*)(instData + 0),       _DN_flow_1360,      _V_Static_DN_1376   ,       1.0    );
      /* do positive component */      ahdlInterAddStaticElement(*(void**)(instData + 1264), _Static_d_by_dv_VDD_1272);
      /* do negative component */      ahdlInterAddStaticElement(*(void**)(instData + 1260), -_Static_d_by_dv_VDD_1272);
    return __msgSeverity__;
} /** end of PLL_PFD_DcFuncDerLoad **/

int PLL_PFD_DcFuncLoad(int anal_mode, char* instData, char* modelData, char** stringList) {

int __msgSeverity__ = 0;
long	__tmpStkVar_46 = 0;
double	__tmpStkVar_45 = 0.0;
long	__tmpStkVar_44 = 0;
double	__tmpStkVar_43 = 0.0;
double	__tmpStkVar_42 = 0.0;
double	__tmpStkVar_41 = 0.0;
double	__tmpStkVar_40 = 0.0;
double	__tmpStkVar_39 = 0.0;
double	__tmpStkVar_38 = 0.0;
double	__tmpStkVar_37 = 0.0;
double	__tmpStkVar_36 = 0.0;
double	__tmpStkVar_35 = 0.0;
double	__tmpStkVar_34 = 0.0;
double	__tmpStkVar_33 = 0.0;
double	__tmpStkVar_32 = 0.0;
double	__tmpStkVar_31 = 0.0;
double	__tmpStkVar_30 = 0.0;
double	__tmpStkVar_29 = 0.0;
double	__tmpStkVar_28 = 0.0;
double	__tmpStkVar_27 = 0.0;
double	__tmpStkVar_26 = 0.0;
double	__tmpStkVar_25 = 0.0;
double	__tmpStkVar_24 = 0.0;
double	__tmpStkVar_23 = 0.0;
double	__tmpStkVar_22 = 0.0;
double	__tmpStkVar_21 = 0.0;
double	__tmpStkVar_20 = 0.0;
double	__tmpStkVar_19 = 0.0;
double	__tmpStkVar_18 = 0.0;
double	__tmpStkVar_17 = 0.0;
double	__tmpStkVar_16 = 0.0;
double	__tmpStkVar_15 = 0.0;
double	__tmpStkVar_14 = 0.0;
double	__tmpStkVar_13 = 0.0;
double	__tmpStkVar_12 = 0.0;
double	__tmpStkVar_11 = 0.0;
double	__tmpStkVar_10 = 0.0;
double	__tmpStkVar_9 = 0.0;
double	__tmpStkVar_8 = 0.0;
double	__tmpStkVar_7 = 0.0;
double	__tmpStkVar_6 = 0.0;
double	__tmpStkVar_5 = 0.0;
double	__tmpStkVar_4 = 0.0;
double	__tmpStkVar_3 = 0.0;
double	__tmpStkVar_2 = 0.0;
double	__tmpStkVar_1 = 0.0;


/*  Pre-Anal Load Code. */memcpy ((void *) (instData + 112), (void *) (instData + 128), 16);
memcpy ((void *) (instData + 152), (void *) (instData + 168), 16);
memcpy ((void *) (instData + 272), (void *) (instData + 288), 16);
memcpy ((void *) (instData + 312), (void *) (instData + 328), 16);
memcpy ((void *) (instData + 352), (void *) (instData + 368), 16);
memcpy ((void *) (instData + 392), (void *) (instData + 408), 16);
memcpy ((void *) (instData + 432), (void *) (instData + 448), 16);
memcpy ((void *) (instData + 472), (void *) (instData + 488), 16);
memcpy ((void *) (instData + 508), (void *) (instData + 512), 4);
memcpy ((void *) (instData + 640), (void *) (instData + 656), 16);
memcpy ((void *) (instData + 680), (void *) (instData + 696), 16);
memcpy ((void *) (instData + 720), (void *) (instData + 736), 16);
memcpy ((void *) (instData + 760), (void *) (instData + 776), 16);
memcpy ((void *) (instData + 800), (void *) (instData + 816), 16);
memcpy ((void *) (instData + 840), (void *) (instData + 856), 16);
memcpy ((void *) (instData + 876), (void *) (instData + 880), 4);
ahdlInterClearStepBounds ();
memcpy ((void *) (instData + 1200), (void *) (instData + 1208), 8);
memcpy ((void *) (instData + 1216), (void *) (instData + 1224), 8);
__tmpStkVar_43 = 0;
__tmpStkVar_45 = 0;
_V_Static_UP_1344 = 0.0;
_Static_d_by_dv_VDD_1248 = 0.0;
_V_Static_DN_1376 = 0.0;
_Static_d_by_dv_VDD_1272 = 0.0;

/*  C Code Every Code. */{ahdlDoSetLineNum ((long) 30);ahdlDoSetLineNum ((long) 30);(_VSS_value_888) = ((getAcrossSolution1(_VSS_60)));ahdlDoSetLineNum ((long) 31);(_global_VSS_value_928) = ((getAcrossSolution1(_global_VSS_68)));ahdlDoSetLineNum ((long) 32);(_VDD_value_968) = ((getAcrossSolution1(_VDD_52)));ahdlDoSetLineNum ((long) 33);(_thr_1008) = ((__FLOAT_DIV((_VDD_value_968), ((2.00000000000000000000e+00)))));ahdlDoSetLineNum ((long) 37);if (ahdlIsInitialStep (0x1000000, 0x0)){{ahdlDoSetLineNum ((long) 38);ahdlDoSetLineNum ((long) 38);(_UP_rise_312) = ((1.00000000000000088946e-09));ahdlDoSetLineNum ((long) 39);(_UP_fall_352) = ((1.00000000000000088946e-09));ahdlDoSetLineNum ((long) 40);(_UP_fun_508) = ((0L));ahdlDoSetLineNum ((long) 41);(_DN_rise_680) = ((1.00000000000000088946e-09));ahdlDoSetLineNum ((long) 42);(_DN_fall_720) = ((1.00000000000000088946e-09));ahdlDoSetLineNum ((long) 43);(_DN_fun_876) = ((0L));}}ahdlDoSetLineNum ((long) 46);(_PD_thr_520) = ((__FLOAT_DIV((_VDD_value_968), ((2.00000000000000000000e+00)))));ahdlDoSetLineNum ((long) 48);(_REFCLK_thr_560) = ((__FLOAT_DIV((_VDD_value_968), ((2.00000000000000000000e+00)))));ahdlDoSetLineNum ((long) 49);(_FBCLK_thr_600) = ((__FLOAT_DIV((_VDD_value_968), ((2.00000000000000000000e+00)))));ahdlDoSetLineNum ((long) 51);if (0 /* Cross Event not valid in DC mode. */){{ahdlDoSetLineNum ((long) 52);ahdlDoSetLineNum ((long) 52);(_UP_delay_392) = ((1.00000000000000088946e-09));ahdlDoSetLineNum ((long) 53);(_UP_fun_508) = ((0L));ahdlDoSetLineNum ((long) 54);(_DN_delay_760) = ((1.00000000000000088946e-09));ahdlDoSetLineNum ((long) 55);(_DN_fun_876) = ((0L));}}ahdlDoSetLineNum ((long) 58);(_REFCLK_last_192) = (ahdlDoLastCross (*(void **) (instData + 1140), ((((getAcrossSolution1(_REFCLK_36))) - (_REFCLK_thr_560))), (1L)));ahdlDoSetLineNum ((long) 59);if (0 /* Cross Event not valid in DC mode. */){if ((((getAcrossSolution1(_PD_44))) < (_PD_thr_520))){{ahdlDoSetLineNum ((long) 61);if ((__LOGIC_AND(((((spectre_time())) > (_dead_region_112))), ((!_UP_fun_508))))){{ahdlDoSetLineNum ((long) 62);if ((!_DN_fun_876)){{ahdlDoSetLineNum ((long) 63);ahdlDoSetLineNum ((long) 63);(_REFCLK_UP_tran_delay_432) = (evalTableModelC( *(void**)(instData +1148) , (_VDD_value_968), &__tmpStkVar_11));ahdlDoSetLineNum ((long) 64);(_UP_rise_312) = ((((evalTableModelC( *(void**)(instData +1152) , (_VDD_value_968), &__tmpStkVar_13)) * ((5.00000000000000000000e-01)))));ahdlDoSetLineNum ((long) 65);(_UP_delay_392) = ((MAX(__tmpStkVar_15 = ((((_REFCLK_UP_tran_delay_432) - (_UP_rise_312)))), __tmpStkVar_16 = __INT_TO_DBL((0L)))));ahdlDoSetLineNum ((long) 66);(_UP_fun_508) = ((1L));}}else{{ahdlDoSetLineNum ((long) 70);ahdlDoSetLineNum ((long) 70);(_dead_time_152) = (evalTableModelC( *(void**)(instData +1156) , (_VDD_value_968), &__tmpStkVar_18));ahdlDoSetLineNum ((long) 71);(_dead_region_112) = ((((_REFCLK_last_192) + (((__INT_TO_DBL((2L)) * (_dead_time_152)))))));ahdlDoSetLineNum ((long) 72);(_REFCLK_DN_tran_delay_800) = (evalTableModelC( *(void**)(instData +1160) , (_VDD_value_968), &__tmpStkVar_21));ahdlDoSetLineNum ((long) 73);(_DN_fall_720) = ((((evalTableModelC( *(void**)(instData +1164) , (_VDD_value_968), &__tmpStkVar_23)) * ((5.00000000000000000000e-01)))));ahdlDoSetLineNum ((long) 74);(_DN_reset_640) = ((MAX(__tmpStkVar_25 = (_DN_reset_640), __tmpStkVar_26 = (((((((_REFCLK_last_192) + (_REFCLK_DN_tran_delay_800)))) - (_DN_fall_720)))))));}}}}}}}ahdlDoSetLineNum ((long) 78);(_FBCLK_last_232) = (ahdlDoLastCross (*(void **) (instData + 1168), ((((getAcrossSolution1(_FBCLK_28))) - (_FBCLK_thr_600))), (1L)));ahdlDoSetLineNum ((long) 80);if (0 /* Cross Event not valid in DC mode. */){if ((((getAcrossSolution1(_PD_44))) < (_PD_thr_520))){{ahdlDoSetLineNum ((long) 82);if ((__LOGIC_AND(((((spectre_time())) > (_dead_region_112))), ((!_DN_fun_876))))){{ahdlDoSetLineNum ((long) 83);if ((!_UP_fun_508)){{ahdlDoSetLineNum ((long) 84);ahdlDoSetLineNum ((long) 84);(_FBCLK_DN_tran_delay_840) = (evalTableModelC( *(void**)(instData +1176) , (_VDD_value_968), &__tmpStkVar_28));ahdlDoSetLineNum ((long) 85);(_DN_rise_680) = ((((evalTableModelC( *(void**)(instData +1180) , (_VDD_value_968), &__tmpStkVar_30)) * ((5.00000000000000000000e-01)))));ahdlDoSetLineNum ((long) 86);(_DN_delay_760) = ((MAX(__tmpStkVar_32 = ((((_FBCLK_DN_tran_delay_840) - (_DN_rise_680)))), __tmpStkVar_33 = __INT_TO_DBL((0L)))));ahdlDoSetLineNum ((long) 87);(_DN_fun_876) = ((1L));}}else{{ahdlDoSetLineNum ((long) 90);ahdlDoSetLineNum ((long) 90);(_dead_time_152) = (evalTableModelC( *(void**)(instData +1184) , (_VDD_value_968), &__tmpStkVar_35));ahdlDoSetLineNum ((long) 91);(_dead_region_112) = ((((_FBCLK_last_232) + (((__INT_TO_DBL((2L)) * (_dead_time_152)))))));ahdlDoSetLineNum ((long) 92);(_FBCLK_UP_tran_delay_472) = (evalTableModelC( *(void**)(instData +1188) , (_VDD_value_968), &__tmpStkVar_36));ahdlDoSetLineNum ((long) 93);(_UP_fall_352) = ((((evalTableModelC( *(void**)(instData +1192) , (_VDD_value_968), &__tmpStkVar_38)) * ((5.00000000000000000000e-01)))));ahdlDoSetLineNum ((long) 94);(_UP_reset_272) = ((MAX(__tmpStkVar_40 = (_UP_reset_272), __tmpStkVar_41 = (((((((_FBCLK_last_232) + (_FBCLK_UP_tran_delay_472)))) - (_UP_fall_352)))))));}}}}}}}ahdlDoSetLineNum ((long) 98);if (ahdlIsTimerEvent ((_UP_reset_272), 0, (double *) (instData + 1200))){{ahdlDoSetLineNum ((long) 99);ahdlDoSetLineNum ((long) 99);(_UP_fun_508) = ((0L));ahdlDoSetLineNum ((long) 100);(_UP_delay_392) = ((0.00000000000000000000e+00));}}ahdlDoSetLineNum ((long) 102);if (ahdlIsTimerEvent ((_DN_reset_640), 0, (double *) (instData + 1216))){{ahdlDoSetLineNum ((long) 103);ahdlDoSetLineNum ((long) 103);(_DN_fun_876) = ((0L));ahdlDoSetLineNum ((long) 104);(_DN_delay_760) = ((0.00000000000000000000e+00));}}ahdlDoSetLineNum ((long) 106);(_V_Static_UP_1344) += ahdlDoTransition (*(void **) (instData + 1232), ((__tmpStkVar_44 = _UP_fun_508) ? _VDD_value_968 : (0L)), _UP_delay_392, (((_UP_rise_312) * ((2.00000000000000000000e+00)))), (((_UP_fall_352) * ((2.00000000000000000000e+00)))), 0, 1, (double *) &__tmpStkVar_43);ahdlDoSetLineNum ((long) 107);(_V_Static_DN_1376) += ahdlDoTransition (*(void **) (instData + 1256), ((__tmpStkVar_46 = _DN_fun_876) ? _VDD_value_968 : (0L)), _DN_delay_760, (((_DN_rise_680) * ((2.00000000000000000000e+00)))), (((_DN_fall_720) * ((2.00000000000000000000e+00)))), 0, 1, (double *) &__tmpStkVar_45);}ahdlDoSetLineNum ((long) 108);    ahdlInterSetAcrossQuan(      *(void **)(instData + 1332),
       _UP_20,       *(long*)(instData + 0),       _UP_flow_1328,      _V_Static_UP_1344   ,       1.0    );
    ahdlInterSetAcrossQuan(      *(void **)(instData + 1364),
       _DN_12,       *(long*)(instData + 0),       _DN_flow_1360,      _V_Static_DN_1376   ,       1.0    );
    return __msgSeverity__;
} /** end of PLL_PFD_DcFuncLoad **/

int PLL_PFD_TranFuncDerLoad(int anal_mode, char* instData, char* modelData, char** stringList) {

int __msgSeverity__ = 0;
long	__tmpStkVar_46 = 0;
double	__tmpStkVar_45 = 0.0;
long	__tmpStkVar_44 = 0;
double	__tmpStkVar_43 = 0.0;
double	__tmpStkVar_42 = 0.0;
double	__tmpStkVar_41 = 0.0;
double	__tmpStkVar_40 = 0.0;
double	__tmpStkVar_39 = 0.0;
double	__tmpStkVar_38 = 0.0;
double	__tmpStkVar_37 = 0.0;
double	__tmpStkVar_36 = 0.0;
double	__tmpStkVar_35 = 0.0;
double	__tmpStkVar_34 = 0.0;
double	__tmpStkVar_33 = 0.0;
double	__tmpStkVar_32 = 0.0;
double	__tmpStkVar_31 = 0.0;
double	__tmpStkVar_30 = 0.0;
double	__tmpStkVar_29 = 0.0;
double	__tmpStkVar_28 = 0.0;
double	__tmpStkVar_27 = 0.0;
double	__tmpStkVar_26 = 0.0;
double	__tmpStkVar_25 = 0.0;
double	__tmpStkVar_24 = 0.0;
double	__tmpStkVar_23 = 0.0;
double	__tmpStkVar_22 = 0.0;
double	__tmpStkVar_21 = 0.0;
double	__tmpStkVar_20 = 0.0;
double	__tmpStkVar_19 = 0.0;
double	__tmpStkVar_18 = 0.0;
double	__tmpStkVar_17 = 0.0;
double	__tmpStkVar_16 = 0.0;
double	__tmpStkVar_15 = 0.0;
double	__tmpStkVar_14 = 0.0;
double	__tmpStkVar_13 = 0.0;
double	__tmpStkVar_12 = 0.0;
double	__tmpStkVar_11 = 0.0;
double	__tmpStkVar_10 = 0.0;
double	__tmpStkVar_9 = 0.0;
double	__tmpStkVar_8 = 0.0;
double	__tmpStkVar_7 = 0.0;
double	__tmpStkVar_6 = 0.0;
double	__tmpStkVar_5 = 0.0;
double	__tmpStkVar_4 = 0.0;
double	__tmpStkVar_3 = 0.0;
double	__tmpStkVar_2 = 0.0;
double	__tmpStkVar_1 = 0.0;


/*  Pre-Anal Load Code. */memcpy ((void *) (instData + 112), (void *) (instData + 128), 16);
memcpy ((void *) (instData + 152), (void *) (instData + 168), 16);
memcpy ((void *) (instData + 272), (void *) (instData + 288), 16);
memcpy ((void *) (instData + 312), (void *) (instData + 328), 16);
memcpy ((void *) (instData + 352), (void *) (instData + 368), 16);
memcpy ((void *) (instData + 392), (void *) (instData + 408), 16);
memcpy ((void *) (instData + 432), (void *) (instData + 448), 16);
memcpy ((void *) (instData + 472), (void *) (instData + 488), 16);
memcpy ((void *) (instData + 508), (void *) (instData + 512), 4);
memcpy ((void *) (instData + 640), (void *) (instData + 656), 16);
memcpy ((void *) (instData + 680), (void *) (instData + 696), 16);
memcpy ((void *) (instData + 720), (void *) (instData + 736), 16);
memcpy ((void *) (instData + 760), (void *) (instData + 776), 16);
memcpy ((void *) (instData + 800), (void *) (instData + 816), 16);
memcpy ((void *) (instData + 840), (void *) (instData + 856), 16);
memcpy ((void *) (instData + 876), (void *) (instData + 880), 4);
ahdlInterClearStepBounds ();
memcpy ((void *) (instData + 1200), (void *) (instData + 1208), 8);
memcpy ((void *) (instData + 1216), (void *) (instData + 1224), 8);
__tmpStkVar_43 = 0;
__tmpStkVar_45 = 0;
_I_Dynamic_FBCLK_VSS_1288 = 0.0;
_Dynamic_d_by_dv_FBCLK_VSS_1048 = 0.0;
_Dynamic_d_by_dv_VDD_1064 = 0.0;
_I_Dynamic_REFCLK_VSS_1304 = 0.0;
_Dynamic_d_by_dv_REFCLK_VSS_1080 = 0.0;
_Dynamic_d_by_dv_VDD_1096 = 0.0;
_I_Dynamic_PD_VSS_1320 = 0.0;
_Dynamic_d_by_dv_PD_VSS_1112 = 0.0;
_Dynamic_d_by_dv_VDD_1128 = 0.0;
_V_Static_UP_1344 = 0.0;
_Static_d_by_dv_VDD_1248 = 0.0;
_V_Static_DN_1376 = 0.0;
_Static_d_by_dv_VDD_1272 = 0.0;

/*  C Code Every Code. */{ahdlDoSetLineNum ((long) 30);ahdlDoSetLineNum ((long) 30);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((getAcrossSolution1(_VSS_60)));__tmpStkVar_1 = ((1.00000000000000000000e+00));(_VSS_value_888) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 31);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((getAcrossSolution1(_global_VSS_68)));__tmpStkVar_2 = ((1.00000000000000000000e+00));(_global_VSS_value_928) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 32);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((getAcrossSolution1(_VDD_52)));__tmpStkVar_3 = ((1.00000000000000000000e+00));(_VDD_value_968) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 33);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((__FLOAT_DIV((_VDD_value_968), ((2.00000000000000000000e+00)))));__tmpStkVar_4 = ((__FLOAT_DIV((__tmpStkVar_3), ((2.00000000000000000000e+00)))));(_thr_1008) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 34);(_I_Dynamic_FBCLK_VSS_1288) += (((evalTableModelC( *(void**)(instData +1040) , (_VDD_value_968), &__tmpStkVar_5))) * (((getAcrossSolution2(_FBCLK_28, _VSS_60)))));_Dynamic_d_by_dv_FBCLK_VSS_1048 += (evalTableModelC( *(void**)(instData +1040) , (_VDD_value_968), &__tmpStkVar_5));_Dynamic_d_by_dv_VDD_1064 += (((((((__tmpStkVar_3)) * ((__tmpStkVar_5))))) * (((getAcrossSolution2(_FBCLK_28, _VSS_60))))));ahdlDoSetLineNum ((long) 35);(_I_Dynamic_REFCLK_VSS_1304) += (((evalTableModelC( *(void**)(instData +1072) , (_VDD_value_968), &__tmpStkVar_6))) * (((getAcrossSolution2(_REFCLK_36, _VSS_60)))));_Dynamic_d_by_dv_REFCLK_VSS_1080 += (evalTableModelC( *(void**)(instData +1072) , (_VDD_value_968), &__tmpStkVar_6));_Dynamic_d_by_dv_VDD_1096 += (((((((__tmpStkVar_3)) * ((__tmpStkVar_6))))) * (((getAcrossSolution2(_REFCLK_36, _VSS_60))))));ahdlDoSetLineNum ((long) 36);(_I_Dynamic_PD_VSS_1320) += (((evalTableModelC( *(void**)(instData +1104) , (_VDD_value_968), &__tmpStkVar_7))) * (((getAcrossSolution2(_PD_44, _VSS_60)))));_Dynamic_d_by_dv_PD_VSS_1112 += (evalTableModelC( *(void**)(instData +1104) , (_VDD_value_968), &__tmpStkVar_7));_Dynamic_d_by_dv_VDD_1128 += (((((((__tmpStkVar_3)) * ((__tmpStkVar_7))))) * (((getAcrossSolution2(_PD_44, _VSS_60))))));ahdlDoSetLineNum ((long) 37);if (ahdlIsInitialStep (0x1000000, 0x0)){{ahdlDoSetLineNum ((long) 38);ahdlDoSetLineNum ((long) 38);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((1.00000000000000088946e-09));__tmpStkVar_14 = 0.0;(_UP_rise_312) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 39);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((1.00000000000000088946e-09));__tmpStkVar_39 = 0.0;(_UP_fall_352) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 40);(_UP_fun_508) = ((0L));ahdlDoSetLineNum ((long) 41);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((1.00000000000000088946e-09));__tmpStkVar_31 = 0.0;(_DN_rise_680) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 42);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((1.00000000000000088946e-09));__tmpStkVar_24 = 0.0;(_DN_fall_720) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 43);(_DN_fun_876) = ((0L));}}ahdlDoSetLineNum ((long) 46);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((__FLOAT_DIV((_VDD_value_968), ((2.00000000000000000000e+00)))));__tmpStkVar_8 = ((__FLOAT_DIV((__tmpStkVar_3), ((2.00000000000000000000e+00)))));(_PD_thr_520) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 48);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((__FLOAT_DIV((_VDD_value_968), ((2.00000000000000000000e+00)))));__tmpStkVar_9 = ((__FLOAT_DIV((__tmpStkVar_3), ((2.00000000000000000000e+00)))));(_REFCLK_thr_560) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 49);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((__FLOAT_DIV((_VDD_value_968), ((2.00000000000000000000e+00)))));__tmpStkVar_10 = ((__FLOAT_DIV((__tmpStkVar_3), ((2.00000000000000000000e+00)))));(_FBCLK_thr_600) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 51);if (ahdlIsCrossEvent (*(void **) (instData + 1136), ((((getAcrossSolution1(_PD_44))) - (_PD_thr_520))), (1L), -1, -1)){{ahdlDoSetLineNum ((long) 52);ahdlDoSetLineNum ((long) 52);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((1.00000000000000088946e-09));__tmpStkVar_17 = 0.0;(_UP_delay_392) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 53);(_UP_fun_508) = ((0L));ahdlDoSetLineNum ((long) 54);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((1.00000000000000088946e-09));__tmpStkVar_34 = 0.0;(_DN_delay_760) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 55);(_DN_fun_876) = ((0L));}}ahdlDoSetLineNum ((long) 58);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = (ahdlDoLastCross (*(void **) (instData + 1140), ((((getAcrossSolution1(_REFCLK_36))) - (_REFCLK_thr_560))), (1L)));(_REFCLK_last_192) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 59);if (ahdlIsCrossEvent (*(void **) (instData + 1144), ((((getAcrossSolution1(_REFCLK_36))) - (_REFCLK_thr_560))), (1L), _ttol_88, -1)){if ((((getAcrossSolution1(_PD_44))) < (_PD_thr_520))){{ahdlDoSetLineNum ((long) 61);if ((__LOGIC_AND(((((spectre_time())) > (_dead_region_112))), ((!_UP_fun_508))))){{ahdlDoSetLineNum ((long) 62);if ((!_DN_fun_876)){{ahdlDoSetLineNum ((long) 63);ahdlDoSetLineNum ((long) 63);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = (evalTableModelC( *(void**)(instData +1148) , (_VDD_value_968), &__tmpStkVar_11));__tmpStkVar_12 = ((((__tmpStkVar_3)) * ((__tmpStkVar_11))));(_REFCLK_UP_tran_delay_432) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 64);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((((evalTableModelC( *(void**)(instData +1152) , (_VDD_value_968), &__tmpStkVar_13)) * ((5.00000000000000000000e-01)))));__tmpStkVar_14 = (((((((__tmpStkVar_3)) * ((__tmpStkVar_13))))) * (((5.00000000000000000000e-01)))));(_UP_rise_312) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 65);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((MAX(__tmpStkVar_15 = ((((_REFCLK_UP_tran_delay_432) - (_UP_rise_312)))), __tmpStkVar_16 = __INT_TO_DBL((0L)))));__tmpStkVar_17 = (((__tmpStkVar_15 > __tmpStkVar_16) ? ((((__tmpStkVar_12)) - ((__tmpStkVar_14)))) : ((0.00000000000000000000e+00))));(_UP_delay_392) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 66);(_UP_fun_508) = ((1L));}}else{{ahdlDoSetLineNum ((long) 70);ahdlDoSetLineNum ((long) 70);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = (evalTableModelC( *(void**)(instData +1156) , (_VDD_value_968), &__tmpStkVar_18));__tmpStkVar_19 = ((((__tmpStkVar_3)) * ((__tmpStkVar_18))));(_dead_time_152) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 71);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((((_REFCLK_last_192) + (((__INT_TO_DBL((2L)) * (_dead_time_152)))))));__tmpStkVar_20 = (((__INT_TO_DBL((2L))) * ((__tmpStkVar_19))));(_dead_region_112) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 72);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = (evalTableModelC( *(void**)(instData +1160) , (_VDD_value_968), &__tmpStkVar_21));__tmpStkVar_22 = ((((__tmpStkVar_3)) * ((__tmpStkVar_21))));(_REFCLK_DN_tran_delay_800) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 73);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((((evalTableModelC( *(void**)(instData +1164) , (_VDD_value_968), &__tmpStkVar_23)) * ((5.00000000000000000000e-01)))));__tmpStkVar_24 = (((((((__tmpStkVar_3)) * ((__tmpStkVar_23))))) * (((5.00000000000000000000e-01)))));(_DN_fall_720) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 74);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((MAX(__tmpStkVar_25 = (_DN_reset_640), __tmpStkVar_26 = (((((((_REFCLK_last_192) + (_REFCLK_DN_tran_delay_800)))) - (_DN_fall_720)))))));__tmpStkVar_27 = (((__tmpStkVar_25 > __tmpStkVar_26) ? ((0.00000000000000000000e+00)) : ((((__tmpStkVar_22)) - ((__tmpStkVar_24))))));(_DN_reset_640) = __tempValueResultStatic;}}}}}}}}ahdlDoSetLineNum ((long) 78);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = (ahdlDoLastCross (*(void **) (instData + 1168), ((((getAcrossSolution1(_FBCLK_28))) - (_FBCLK_thr_600))), (1L)));(_FBCLK_last_232) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 80);if (ahdlIsCrossEvent (*(void **) (instData + 1172), ((((getAcrossSolution1(_FBCLK_28))) - (_FBCLK_thr_600))), (1L), _ttol_88, -1)){if ((((getAcrossSolution1(_PD_44))) < (_PD_thr_520))){{ahdlDoSetLineNum ((long) 82);if ((__LOGIC_AND(((((spectre_time())) > (_dead_region_112))), ((!_DN_fun_876))))){{ahdlDoSetLineNum ((long) 83);if ((!_UP_fun_508)){{ahdlDoSetLineNum ((long) 84);ahdlDoSetLineNum ((long) 84);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = (evalTableModelC( *(void**)(instData +1176) , (_VDD_value_968), &__tmpStkVar_28));__tmpStkVar_29 = ((((__tmpStkVar_3)) * ((__tmpStkVar_28))));(_FBCLK_DN_tran_delay_840) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 85);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((((evalTableModelC( *(void**)(instData +1180) , (_VDD_value_968), &__tmpStkVar_30)) * ((5.00000000000000000000e-01)))));__tmpStkVar_31 = (((((((__tmpStkVar_3)) * ((__tmpStkVar_30))))) * (((5.00000000000000000000e-01)))));(_DN_rise_680) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 86);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((MAX(__tmpStkVar_32 = ((((_FBCLK_DN_tran_delay_840) - (_DN_rise_680)))), __tmpStkVar_33 = __INT_TO_DBL((0L)))));__tmpStkVar_34 = (((__tmpStkVar_32 > __tmpStkVar_33) ? ((((__tmpStkVar_29)) - ((__tmpStkVar_31)))) : ((0.00000000000000000000e+00))));(_DN_delay_760) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 87);(_DN_fun_876) = ((1L));}}else{{ahdlDoSetLineNum ((long) 90);ahdlDoSetLineNum ((long) 90);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = (evalTableModelC( *(void**)(instData +1184) , (_VDD_value_968), &__tmpStkVar_35));__tmpStkVar_19 = ((((__tmpStkVar_3)) * ((__tmpStkVar_35))));(_dead_time_152) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 91);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((((_FBCLK_last_232) + (((__INT_TO_DBL((2L)) * (_dead_time_152)))))));__tmpStkVar_20 = (((__INT_TO_DBL((2L))) * ((__tmpStkVar_19))));(_dead_region_112) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 92);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = (evalTableModelC( *(void**)(instData +1188) , (_VDD_value_968), &__tmpStkVar_36));__tmpStkVar_37 = ((((__tmpStkVar_3)) * ((__tmpStkVar_36))));(_FBCLK_UP_tran_delay_472) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 93);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((((evalTableModelC( *(void**)(instData +1192) , (_VDD_value_968), &__tmpStkVar_38)) * ((5.00000000000000000000e-01)))));__tmpStkVar_39 = (((((((__tmpStkVar_3)) * ((__tmpStkVar_38))))) * (((5.00000000000000000000e-01)))));(_UP_fall_352) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 94);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((MAX(__tmpStkVar_40 = (_UP_reset_272), __tmpStkVar_41 = (((((((_FBCLK_last_232) + (_FBCLK_UP_tran_delay_472)))) - (_UP_fall_352)))))));__tmpStkVar_42 = (((__tmpStkVar_40 > __tmpStkVar_41) ? ((0.00000000000000000000e+00)) : ((((__tmpStkVar_37)) - ((__tmpStkVar_39))))));(_UP_reset_272) = __tempValueResultStatic;}}}}}}}}ahdlDoSetLineNum ((long) 98);if (ahdlIsTimerEvent ((_UP_reset_272), 0, (double *) (instData + 1200))){{ahdlDoSetLineNum ((long) 99);ahdlDoSetLineNum ((long) 99);(_UP_fun_508) = ((0L));ahdlDoSetLineNum ((long) 100);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((0.00000000000000000000e+00));__tmpStkVar_17 = 0.0;(_UP_delay_392) = __tempValueResultStatic;}}}ahdlDoSetLineNum ((long) 102);if (ahdlIsTimerEvent ((_DN_reset_640), 0, (double *) (instData + 1216))){{ahdlDoSetLineNum ((long) 103);ahdlDoSetLineNum ((long) 103);(_DN_fun_876) = ((0L));ahdlDoSetLineNum ((long) 104);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((0.00000000000000000000e+00));__tmpStkVar_34 = 0.0;(_DN_delay_760) = __tempValueResultStatic;}}}ahdlDoSetLineNum ((long) 106);(_V_Static_UP_1344) += ahdlDoTransition (*(void **) (instData + 1232), ((__tmpStkVar_44 = _UP_fun_508) ? _VDD_value_968 : (0L)), _UP_delay_392, (((_UP_rise_312) * ((2.00000000000000000000e+00)))), (((_UP_fall_352) * ((2.00000000000000000000e+00)))), 0, 1, (double *) &__tmpStkVar_43);_Static_d_by_dv_VDD_1248 += ((((__tmpStkVar_44 ? __tmpStkVar_3 : (0.00000000000000000000e+00))) * ((__tmpStkVar_43))));ahdlDoSetLineNum ((long) 107);(_V_Static_DN_1376) += ahdlDoTransition (*(void **) (instData + 1256), ((__tmpStkVar_46 = _DN_fun_876) ? _VDD_value_968 : (0L)), _DN_delay_760, (((_DN_rise_680) * ((2.00000000000000000000e+00)))), (((_DN_fall_720) * ((2.00000000000000000000e+00)))), 0, 1, (double *) &__tmpStkVar_45);_Static_d_by_dv_VDD_1272 += ((((__tmpStkVar_46 ? __tmpStkVar_3 : (0.00000000000000000000e+00))) * ((__tmpStkVar_45))));}ahdlDoSetLineNum ((long) 108);   if (ahdlWhatsNeeded IS devDynamicFuncNeeded) {
      ahdlDynamicRHS[_FBCLK_28] -= _I_Dynamic_FBCLK_VSS_1288;
      ahdlDynamicRHS[_VSS_60] += _I_Dynamic_FBCLK_VSS_1288;
      ahdlDynamicRHS_AbsSum[_FBCLK_28] += ABS(_I_Dynamic_FBCLK_VSS_1288);
      ahdlDynamicRHS_AbsSum[_VSS_60] += ABS(_I_Dynamic_FBCLK_VSS_1288);
   }

      ahdlInterAddDynamicQuartet(*(void**)(instData + 1044),_Dynamic_d_by_dv_FBCLK_VSS_1048);
      ahdlInterAddDynamicQuartet(*(void**)(instData + 1056),_Dynamic_d_by_dv_VDD_1064);
   if (ahdlWhatsNeeded IS devDynamicFuncNeeded) {
      ahdlDynamicRHS[_REFCLK_36] -= _I_Dynamic_REFCLK_VSS_1304;
      ahdlDynamicRHS[_VSS_60] += _I_Dynamic_REFCLK_VSS_1304;
      ahdlDynamicRHS_AbsSum[_REFCLK_36] += ABS(_I_Dynamic_REFCLK_VSS_1304);
      ahdlDynamicRHS_AbsSum[_VSS_60] += ABS(_I_Dynamic_REFCLK_VSS_1304);
   }

      ahdlInterAddDynamicQuartet(*(void**)(instData + 1076),_Dynamic_d_by_dv_REFCLK_VSS_1080);
      ahdlInterAddDynamicQuartet(*(void**)(instData + 1088),_Dynamic_d_by_dv_VDD_1096);
   if (ahdlWhatsNeeded IS devDynamicFuncNeeded) {
      ahdlDynamicRHS[_PD_44] -= _I_Dynamic_PD_VSS_1320;
      ahdlDynamicRHS[_VSS_60] += _I_Dynamic_PD_VSS_1320;
      ahdlDynamicRHS_AbsSum[_PD_44] += ABS(_I_Dynamic_PD_VSS_1320);
      ahdlDynamicRHS_AbsSum[_VSS_60] += ABS(_I_Dynamic_PD_VSS_1320);
   }

      ahdlInterAddDynamicQuartet(*(void**)(instData + 1108),_Dynamic_d_by_dv_PD_VSS_1112);
      ahdlInterAddDynamicQuartet(*(void**)(instData + 1120),_Dynamic_d_by_dv_VDD_1128);
    ahdlInterSetAcrossQuan(      *(void **)(instData + 1332),
       _UP_20,       *(long*)(instData + 0),       _UP_flow_1328,      _V_Static_UP_1344   ,       1.0    );
      /* do positive component */      ahdlInterAddStaticElement(*(void**)(instData + 1240), _Static_d_by_dv_VDD_1248);
      /* do negative component */      ahdlInterAddStaticElement(*(void**)(instData + 1236), -_Static_d_by_dv_VDD_1248);
    ahdlInterSetAcrossQuan(      *(void **)(instData + 1364),
       _DN_12,       *(long*)(instData + 0),       _DN_flow_1360,      _V_Static_DN_1376   ,       1.0    );
      /* do positive component */      ahdlInterAddStaticElement(*(void**)(instData + 1264), _Static_d_by_dv_VDD_1272);
      /* do negative component */      ahdlInterAddStaticElement(*(void**)(instData + 1260), -_Static_d_by_dv_VDD_1272);
    return __msgSeverity__;
} /** end of PLL_PFD_TranFuncDerLoad **/

int PLL_PFD_TranFuncLoad(int anal_mode, char* instData, char* modelData, char** stringList) {

int __msgSeverity__ = 0;
long	__tmpStkVar_46 = 0;
double	__tmpStkVar_45 = 0.0;
long	__tmpStkVar_44 = 0;
double	__tmpStkVar_43 = 0.0;
double	__tmpStkVar_42 = 0.0;
double	__tmpStkVar_41 = 0.0;
double	__tmpStkVar_40 = 0.0;
double	__tmpStkVar_39 = 0.0;
double	__tmpStkVar_38 = 0.0;
double	__tmpStkVar_37 = 0.0;
double	__tmpStkVar_36 = 0.0;
double	__tmpStkVar_35 = 0.0;
double	__tmpStkVar_34 = 0.0;
double	__tmpStkVar_33 = 0.0;
double	__tmpStkVar_32 = 0.0;
double	__tmpStkVar_31 = 0.0;
double	__tmpStkVar_30 = 0.0;
double	__tmpStkVar_29 = 0.0;
double	__tmpStkVar_28 = 0.0;
double	__tmpStkVar_27 = 0.0;
double	__tmpStkVar_26 = 0.0;
double	__tmpStkVar_25 = 0.0;
double	__tmpStkVar_24 = 0.0;
double	__tmpStkVar_23 = 0.0;
double	__tmpStkVar_22 = 0.0;
double	__tmpStkVar_21 = 0.0;
double	__tmpStkVar_20 = 0.0;
double	__tmpStkVar_19 = 0.0;
double	__tmpStkVar_18 = 0.0;
double	__tmpStkVar_17 = 0.0;
double	__tmpStkVar_16 = 0.0;
double	__tmpStkVar_15 = 0.0;
double	__tmpStkVar_14 = 0.0;
double	__tmpStkVar_13 = 0.0;
double	__tmpStkVar_12 = 0.0;
double	__tmpStkVar_11 = 0.0;
double	__tmpStkVar_10 = 0.0;
double	__tmpStkVar_9 = 0.0;
double	__tmpStkVar_8 = 0.0;
double	__tmpStkVar_7 = 0.0;
double	__tmpStkVar_6 = 0.0;
double	__tmpStkVar_5 = 0.0;
double	__tmpStkVar_4 = 0.0;
double	__tmpStkVar_3 = 0.0;
double	__tmpStkVar_2 = 0.0;
double	__tmpStkVar_1 = 0.0;


/*  Pre-Anal Load Code. */memcpy ((void *) (instData + 112), (void *) (instData + 128), 16);
memcpy ((void *) (instData + 152), (void *) (instData + 168), 16);
memcpy ((void *) (instData + 272), (void *) (instData + 288), 16);
memcpy ((void *) (instData + 312), (void *) (instData + 328), 16);
memcpy ((void *) (instData + 352), (void *) (instData + 368), 16);
memcpy ((void *) (instData + 392), (void *) (instData + 408), 16);
memcpy ((void *) (instData + 432), (void *) (instData + 448), 16);
memcpy ((void *) (instData + 472), (void *) (instData + 488), 16);
memcpy ((void *) (instData + 508), (void *) (instData + 512), 4);
memcpy ((void *) (instData + 640), (void *) (instData + 656), 16);
memcpy ((void *) (instData + 680), (void *) (instData + 696), 16);
memcpy ((void *) (instData + 720), (void *) (instData + 736), 16);
memcpy ((void *) (instData + 760), (void *) (instData + 776), 16);
memcpy ((void *) (instData + 800), (void *) (instData + 816), 16);
memcpy ((void *) (instData + 840), (void *) (instData + 856), 16);
memcpy ((void *) (instData + 876), (void *) (instData + 880), 4);
ahdlInterClearStepBounds ();
memcpy ((void *) (instData + 1200), (void *) (instData + 1208), 8);
memcpy ((void *) (instData + 1216), (void *) (instData + 1224), 8);
__tmpStkVar_43 = 0;
__tmpStkVar_45 = 0;
_I_Dynamic_FBCLK_VSS_1288 = 0.0;
_Dynamic_d_by_dv_FBCLK_VSS_1048 = 0.0;
_Dynamic_d_by_dv_VDD_1064 = 0.0;
_I_Dynamic_REFCLK_VSS_1304 = 0.0;
_Dynamic_d_by_dv_REFCLK_VSS_1080 = 0.0;
_Dynamic_d_by_dv_VDD_1096 = 0.0;
_I_Dynamic_PD_VSS_1320 = 0.0;
_Dynamic_d_by_dv_PD_VSS_1112 = 0.0;
_Dynamic_d_by_dv_VDD_1128 = 0.0;
_V_Static_UP_1344 = 0.0;
_Static_d_by_dv_VDD_1248 = 0.0;
_V_Static_DN_1376 = 0.0;
_Static_d_by_dv_VDD_1272 = 0.0;

/*  C Code Every Code. */{ahdlDoSetLineNum ((long) 30);ahdlDoSetLineNum ((long) 30);(_VSS_value_888) = ((getAcrossSolution1(_VSS_60)));ahdlDoSetLineNum ((long) 31);(_global_VSS_value_928) = ((getAcrossSolution1(_global_VSS_68)));ahdlDoSetLineNum ((long) 32);(_VDD_value_968) = ((getAcrossSolution1(_VDD_52)));ahdlDoSetLineNum ((long) 33);(_thr_1008) = ((__FLOAT_DIV((_VDD_value_968), ((2.00000000000000000000e+00)))));ahdlDoSetLineNum ((long) 34);(_I_Dynamic_FBCLK_VSS_1288) += (((evalTableModelC( *(void**)(instData +1040) , (_VDD_value_968), &__tmpStkVar_5))) * (((getAcrossSolution2(_FBCLK_28, _VSS_60)))));ahdlDoSetLineNum ((long) 35);(_I_Dynamic_REFCLK_VSS_1304) += (((evalTableModelC( *(void**)(instData +1072) , (_VDD_value_968), &__tmpStkVar_6))) * (((getAcrossSolution2(_REFCLK_36, _VSS_60)))));ahdlDoSetLineNum ((long) 36);(_I_Dynamic_PD_VSS_1320) += (((evalTableModelC( *(void**)(instData +1104) , (_VDD_value_968), &__tmpStkVar_7))) * (((getAcrossSolution2(_PD_44, _VSS_60)))));ahdlDoSetLineNum ((long) 37);if (ahdlIsInitialStep (0x1000000, 0x0)){{ahdlDoSetLineNum ((long) 38);ahdlDoSetLineNum ((long) 38);(_UP_rise_312) = ((1.00000000000000088946e-09));ahdlDoSetLineNum ((long) 39);(_UP_fall_352) = ((1.00000000000000088946e-09));ahdlDoSetLineNum ((long) 40);(_UP_fun_508) = ((0L));ahdlDoSetLineNum ((long) 41);(_DN_rise_680) = ((1.00000000000000088946e-09));ahdlDoSetLineNum ((long) 42);(_DN_fall_720) = ((1.00000000000000088946e-09));ahdlDoSetLineNum ((long) 43);(_DN_fun_876) = ((0L));}}ahdlDoSetLineNum ((long) 46);(_PD_thr_520) = ((__FLOAT_DIV((_VDD_value_968), ((2.00000000000000000000e+00)))));ahdlDoSetLineNum ((long) 48);(_REFCLK_thr_560) = ((__FLOAT_DIV((_VDD_value_968), ((2.00000000000000000000e+00)))));ahdlDoSetLineNum ((long) 49);(_FBCLK_thr_600) = ((__FLOAT_DIV((_VDD_value_968), ((2.00000000000000000000e+00)))));ahdlDoSetLineNum ((long) 51);if (ahdlIsCrossEvent (*(void **) (instData + 1136), ((((getAcrossSolution1(_PD_44))) - (_PD_thr_520))), (1L), -1, -1)){{ahdlDoSetLineNum ((long) 52);ahdlDoSetLineNum ((long) 52);(_UP_delay_392) = ((1.00000000000000088946e-09));ahdlDoSetLineNum ((long) 53);(_UP_fun_508) = ((0L));ahdlDoSetLineNum ((long) 54);(_DN_delay_760) = ((1.00000000000000088946e-09));ahdlDoSetLineNum ((long) 55);(_DN_fun_876) = ((0L));}}ahdlDoSetLineNum ((long) 58);(_REFCLK_last_192) = (ahdlDoLastCross (*(void **) (instData + 1140), ((((getAcrossSolution1(_REFCLK_36))) - (_REFCLK_thr_560))), (1L)));ahdlDoSetLineNum ((long) 59);if (ahdlIsCrossEvent (*(void **) (instData + 1144), ((((getAcrossSolution1(_REFCLK_36))) - (_REFCLK_thr_560))), (1L), _ttol_88, -1)){if ((((getAcrossSolution1(_PD_44))) < (_PD_thr_520))){{ahdlDoSetLineNum ((long) 61);if ((__LOGIC_AND(((((spectre_time())) > (_dead_region_112))), ((!_UP_fun_508))))){{ahdlDoSetLineNum ((long) 62);if ((!_DN_fun_876)){{ahdlDoSetLineNum ((long) 63);ahdlDoSetLineNum ((long) 63);(_REFCLK_UP_tran_delay_432) = (evalTableModelC( *(void**)(instData +1148) , (_VDD_value_968), &__tmpStkVar_11));ahdlDoSetLineNum ((long) 64);(_UP_rise_312) = ((((evalTableModelC( *(void**)(instData +1152) , (_VDD_value_968), &__tmpStkVar_13)) * ((5.00000000000000000000e-01)))));ahdlDoSetLineNum ((long) 65);(_UP_delay_392) = ((MAX(__tmpStkVar_15 = ((((_REFCLK_UP_tran_delay_432) - (_UP_rise_312)))), __tmpStkVar_16 = __INT_TO_DBL((0L)))));ahdlDoSetLineNum ((long) 66);(_UP_fun_508) = ((1L));}}else{{ahdlDoSetLineNum ((long) 70);ahdlDoSetLineNum ((long) 70);(_dead_time_152) = (evalTableModelC( *(void**)(instData +1156) , (_VDD_value_968), &__tmpStkVar_18));ahdlDoSetLineNum ((long) 71);(_dead_region_112) = ((((_REFCLK_last_192) + (((__INT_TO_DBL((2L)) * (_dead_time_152)))))));ahdlDoSetLineNum ((long) 72);(_REFCLK_DN_tran_delay_800) = (evalTableModelC( *(void**)(instData +1160) , (_VDD_value_968), &__tmpStkVar_21));ahdlDoSetLineNum ((long) 73);(_DN_fall_720) = ((((evalTableModelC( *(void**)(instData +1164) , (_VDD_value_968), &__tmpStkVar_23)) * ((5.00000000000000000000e-01)))));ahdlDoSetLineNum ((long) 74);(_DN_reset_640) = ((MAX(__tmpStkVar_25 = (_DN_reset_640), __tmpStkVar_26 = (((((((_REFCLK_last_192) + (_REFCLK_DN_tran_delay_800)))) - (_DN_fall_720)))))));}}}}}}}ahdlDoSetLineNum ((long) 78);(_FBCLK_last_232) = (ahdlDoLastCross (*(void **) (instData + 1168), ((((getAcrossSolution1(_FBCLK_28))) - (_FBCLK_thr_600))), (1L)));ahdlDoSetLineNum ((long) 80);if (ahdlIsCrossEvent (*(void **) (instData + 1172), ((((getAcrossSolution1(_FBCLK_28))) - (_FBCLK_thr_600))), (1L), _ttol_88, -1)){if ((((getAcrossSolution1(_PD_44))) < (_PD_thr_520))){{ahdlDoSetLineNum ((long) 82);if ((__LOGIC_AND(((((spectre_time())) > (_dead_region_112))), ((!_DN_fun_876))))){{ahdlDoSetLineNum ((long) 83);if ((!_UP_fun_508)){{ahdlDoSetLineNum ((long) 84);ahdlDoSetLineNum ((long) 84);(_FBCLK_DN_tran_delay_840) = (evalTableModelC( *(void**)(instData +1176) , (_VDD_value_968), &__tmpStkVar_28));ahdlDoSetLineNum ((long) 85);(_DN_rise_680) = ((((evalTableModelC( *(void**)(instData +1180) , (_VDD_value_968), &__tmpStkVar_30)) * ((5.00000000000000000000e-01)))));ahdlDoSetLineNum ((long) 86);(_DN_delay_760) = ((MAX(__tmpStkVar_32 = ((((_FBCLK_DN_tran_delay_840) - (_DN_rise_680)))), __tmpStkVar_33 = __INT_TO_DBL((0L)))));ahdlDoSetLineNum ((long) 87);(_DN_fun_876) = ((1L));}}else{{ahdlDoSetLineNum ((long) 90);ahdlDoSetLineNum ((long) 90);(_dead_time_152) = (evalTableModelC( *(void**)(instData +1184) , (_VDD_value_968), &__tmpStkVar_35));ahdlDoSetLineNum ((long) 91);(_dead_region_112) = ((((_FBCLK_last_232) + (((__INT_TO_DBL((2L)) * (_dead_time_152)))))));ahdlDoSetLineNum ((long) 92);(_FBCLK_UP_tran_delay_472) = (evalTableModelC( *(void**)(instData +1188) , (_VDD_value_968), &__tmpStkVar_36));ahdlDoSetLineNum ((long) 93);(_UP_fall_352) = ((((evalTableModelC( *(void**)(instData +1192) , (_VDD_value_968), &__tmpStkVar_38)) * ((5.00000000000000000000e-01)))));ahdlDoSetLineNum ((long) 94);(_UP_reset_272) = ((MAX(__tmpStkVar_40 = (_UP_reset_272), __tmpStkVar_41 = (((((((_FBCLK_last_232) + (_FBCLK_UP_tran_delay_472)))) - (_UP_fall_352)))))));}}}}}}}ahdlDoSetLineNum ((long) 98);if (ahdlIsTimerEvent ((_UP_reset_272), 0, (double *) (instData + 1200))){{ahdlDoSetLineNum ((long) 99);ahdlDoSetLineNum ((long) 99);(_UP_fun_508) = ((0L));ahdlDoSetLineNum ((long) 100);(_UP_delay_392) = ((0.00000000000000000000e+00));}}ahdlDoSetLineNum ((long) 102);if (ahdlIsTimerEvent ((_DN_reset_640), 0, (double *) (instData + 1216))){{ahdlDoSetLineNum ((long) 103);ahdlDoSetLineNum ((long) 103);(_DN_fun_876) = ((0L));ahdlDoSetLineNum ((long) 104);(_DN_delay_760) = ((0.00000000000000000000e+00));}}ahdlDoSetLineNum ((long) 106);(_V_Static_UP_1344) += ahdlDoTransition (*(void **) (instData + 1232), ((__tmpStkVar_44 = _UP_fun_508) ? _VDD_value_968 : (0L)), _UP_delay_392, (((_UP_rise_312) * ((2.00000000000000000000e+00)))), (((_UP_fall_352) * ((2.00000000000000000000e+00)))), 0, 1, (double *) &__tmpStkVar_43);ahdlDoSetLineNum ((long) 107);(_V_Static_DN_1376) += ahdlDoTransition (*(void **) (instData + 1256), ((__tmpStkVar_46 = _DN_fun_876) ? _VDD_value_968 : (0L)), _DN_delay_760, (((_DN_rise_680) * ((2.00000000000000000000e+00)))), (((_DN_fall_720) * ((2.00000000000000000000e+00)))), 0, 1, (double *) &__tmpStkVar_45);}ahdlDoSetLineNum ((long) 108);   if (ahdlWhatsNeeded IS devDynamicFuncNeeded) {
      ahdlDynamicRHS[_FBCLK_28] -= _I_Dynamic_FBCLK_VSS_1288;
      ahdlDynamicRHS[_VSS_60] += _I_Dynamic_FBCLK_VSS_1288;
      ahdlDynamicRHS_AbsSum[_FBCLK_28] += ABS(_I_Dynamic_FBCLK_VSS_1288);
      ahdlDynamicRHS_AbsSum[_VSS_60] += ABS(_I_Dynamic_FBCLK_VSS_1288);
   }

   if (ahdlWhatsNeeded IS devDynamicFuncNeeded) {
      ahdlDynamicRHS[_REFCLK_36] -= _I_Dynamic_REFCLK_VSS_1304;
      ahdlDynamicRHS[_VSS_60] += _I_Dynamic_REFCLK_VSS_1304;
      ahdlDynamicRHS_AbsSum[_REFCLK_36] += ABS(_I_Dynamic_REFCLK_VSS_1304);
      ahdlDynamicRHS_AbsSum[_VSS_60] += ABS(_I_Dynamic_REFCLK_VSS_1304);
   }

   if (ahdlWhatsNeeded IS devDynamicFuncNeeded) {
      ahdlDynamicRHS[_PD_44] -= _I_Dynamic_PD_VSS_1320;
      ahdlDynamicRHS[_VSS_60] += _I_Dynamic_PD_VSS_1320;
      ahdlDynamicRHS_AbsSum[_PD_44] += ABS(_I_Dynamic_PD_VSS_1320);
      ahdlDynamicRHS_AbsSum[_VSS_60] += ABS(_I_Dynamic_PD_VSS_1320);
   }

    ahdlInterSetAcrossQuan(      *(void **)(instData + 1332),
       _UP_20,       *(long*)(instData + 0),       _UP_flow_1328,      _V_Static_UP_1344   ,       1.0    );
    ahdlInterSetAcrossQuan(      *(void **)(instData + 1364),
       _DN_12,       *(long*)(instData + 0),       _DN_flow_1360,      _V_Static_DN_1376   ,       1.0    );
    return __msgSeverity__;
} /** end of PLL_PFD_TranFuncLoad **/

int PLL_PFD_NoiseLoadBiasDep(int anal_mode, char* instData, char* modelData, char** stringList) {

int __msgSeverity__ = 0;
long	__tmpStkVar_46 = 0;
double	__tmpStkVar_45 = 0.0;
long	__tmpStkVar_44 = 0;
double	__tmpStkVar_43 = 0.0;
double	__tmpStkVar_42 = 0.0;
double	__tmpStkVar_41 = 0.0;
double	__tmpStkVar_40 = 0.0;
double	__tmpStkVar_39 = 0.0;
double	__tmpStkVar_38 = 0.0;
double	__tmpStkVar_37 = 0.0;
double	__tmpStkVar_36 = 0.0;
double	__tmpStkVar_35 = 0.0;
double	__tmpStkVar_34 = 0.0;
double	__tmpStkVar_33 = 0.0;
double	__tmpStkVar_32 = 0.0;
double	__tmpStkVar_31 = 0.0;
double	__tmpStkVar_30 = 0.0;
double	__tmpStkVar_29 = 0.0;
double	__tmpStkVar_28 = 0.0;
double	__tmpStkVar_27 = 0.0;
double	__tmpStkVar_26 = 0.0;
double	__tmpStkVar_25 = 0.0;
double	__tmpStkVar_24 = 0.0;
double	__tmpStkVar_23 = 0.0;
double	__tmpStkVar_22 = 0.0;
double	__tmpStkVar_21 = 0.0;
double	__tmpStkVar_20 = 0.0;
double	__tmpStkVar_19 = 0.0;
double	__tmpStkVar_18 = 0.0;
double	__tmpStkVar_17 = 0.0;
double	__tmpStkVar_16 = 0.0;
double	__tmpStkVar_15 = 0.0;
double	__tmpStkVar_14 = 0.0;
double	__tmpStkVar_13 = 0.0;
double	__tmpStkVar_12 = 0.0;
double	__tmpStkVar_11 = 0.0;
double	__tmpStkVar_10 = 0.0;
double	__tmpStkVar_9 = 0.0;
double	__tmpStkVar_8 = 0.0;
double	__tmpStkVar_7 = 0.0;
double	__tmpStkVar_6 = 0.0;
double	__tmpStkVar_5 = 0.0;
double	__tmpStkVar_4 = 0.0;
double	__tmpStkVar_3 = 0.0;
double	__tmpStkVar_2 = 0.0;
double	__tmpStkVar_1 = 0.0;


    return __msgSeverity__;
} /** end of PLL_PFD_NoiseLoadBiasDep **/

int PLL_PFD_OpPointCalc(int anal_mode, char* instData, char* modelData, char** stringList) {

int __msgSeverity__ = 0;
    return __msgSeverity__;
} /** end of PLL_PFD_OpPointCalc **/

