/** 3038937679 **/
/***********************************************************************************
 ** 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_250MHZ_MDIV_inst_static.h"

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

int __msgSeverity__ = 0;
long	__tmpStkVar_21 = 0;
long	__tmpStkVar_20 = 0;
long	__tmpStkVar_19 = 0;
double	__tmpStkVar_18 = 0.0;
long	__tmpStkVar_17 = 0;
long	__tmpStkVar_16 = 0;
long	__tmpStkVar_15 = 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 + 48), (void *) (instData + 64), 16);
memcpy ((void *) (instData + 88), (void *) (instData + 104), 16);
memcpy ((void *) (instData + 128), (void *) (instData + 144), 16);
memcpy ((void *) (instData + 164), (void *) (instData + 168), 4);
memcpy ((void *) (instData + 176), (void *) (instData + 180), 4);
memcpy ((void *) (instData + 188), (void *) (instData + 192), 4);
__tmpStkVar_14 = 0;
__tmpStkVar_18 = 0;
_V_Static_CLKFB_440 = 0.0;
_Static_d_by_dv_global_VDD_384 = 0.0;
_Static_d_by_di_CLKFB_400 = 0.0;

/*  C Code Every Code. */{ahdlDoSetLineNum ((long) 24);ahdlDoSetLineNum ((long) 24);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((getAcrossSolution1(_global_VSS_28)));__tmpStkVar_1 = ((1.00000000000000000000e+00));(_global_VSS_value_200) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 25);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((getAcrossSolution1(_global_VDD_36)));__tmpStkVar_2 = ((1.00000000000000000000e+00));(_global_VDD_value_240) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 26);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((__FLOAT_DIV((_global_VDD_value_240), ((2.00000000000000000000e+00)))));__tmpStkVar_3 = ((__FLOAT_DIV((__tmpStkVar_2), ((2.00000000000000000000e+00)))));(_thr_280) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 28);if (ahdlIsInitialStep (0x100000, 0x0)){{ahdlDoSetLineNum ((long) 29);ahdlDoSetLineNum ((long) 29);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = __INT_TO_DBL((0L));__tmpStkVar_6 = 0.0;(_CLKFB_t1_88) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 30);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((5.00000000000000548129e-10));__tmpStkVar_8 = 0.0;(_CLKFB_delay_48) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 31);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((1.00000000000000088946e-09));__tmpStkVar_10 = 0.0;(_CLKFB_t2_128) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 34);(_CLKVCO_dir_188) = ((1L));}}ahdlDoSetLineNum ((long) 39);if (ahdlIsInitialStep (0x100000, 0x0)){{ahdlDoSetLineNum ((long) 40);ahdlDoSetLineNum ((long) 40);(_count_CLKFB_176) = ((0L));ahdlDoSetLineNum ((long) 41);(_fun_CLKFB_164) = ((0L));}}ahdlDoSetLineNum ((long) 43);if (0 /* Cross Event not valid in DC mode. */){{ahdlDoSetLineNum ((long) 44);ahdlDoSetLineNum ((long) 44);(_count_CLKFB_176) = ((((_count_CLKFB_176) + ((1L)))));if (((_count_CLKFB_176) == ((5L)))){{ahdlDoSetLineNum ((long) 46);ahdlDoSetLineNum ((long) 46);(_fun_CLKFB_164) = ((1L));ahdlDoSetLineNum ((long) 47);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = (evalTableModelC( *(void**)(instData +348) , (_global_VDD_value_240), &__tmpStkVar_5));__tmpStkVar_6 = ((((__tmpStkVar_2)) * ((__tmpStkVar_5))));(_CLKFB_t1_88) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 48);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = (evalTableModelC( *(void**)(instData +352) , (_global_VDD_value_240), &__tmpStkVar_7));__tmpStkVar_8 = ((((__tmpStkVar_2)) * ((__tmpStkVar_7))));(_CLKFB_delay_48) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 49);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = (evalTableModelC( *(void**)(instData +356) , (_global_VDD_value_240), &__tmpStkVar_9));__tmpStkVar_10 = ((((__tmpStkVar_2)) * ((__tmpStkVar_9))));(_CLKFB_t2_128) = __tempValueResultStatic;}}}else{if (((_count_CLKFB_176) == ((10L)))){{ahdlDoSetLineNum ((long) 51);ahdlDoSetLineNum ((long) 51);(_fun_CLKFB_164) = ((0L));ahdlDoSetLineNum ((long) 52);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = (evalTableModelC( *(void**)(instData +360) , (_global_VDD_value_240), &__tmpStkVar_11));__tmpStkVar_6 = ((((__tmpStkVar_2)) * ((__tmpStkVar_11))));(_CLKFB_t1_88) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 53);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = (evalTableModelC( *(void**)(instData +364) , (_global_VDD_value_240), &__tmpStkVar_12));__tmpStkVar_8 = ((((__tmpStkVar_2)) * ((__tmpStkVar_12))));(_CLKFB_delay_48) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 54);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = (evalTableModelC( *(void**)(instData +368) , (_global_VDD_value_240), &__tmpStkVar_13));__tmpStkVar_10 = ((((__tmpStkVar_2)) * ((__tmpStkVar_13))));(_CLKFB_t2_128) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 55);(_count_CLKFB_176) = ((0L));}}}}}ahdlDoSetLineNum ((long) 58);(_V_Static_CLKFB_440) += ahdlDoTransition (*(void **) (instData + 372), ((__tmpStkVar_15 = _fun_CLKFB_164) ? (__FLOAT_DIV((_global_VDD_value_240), __INT_TO_DBL((2L)))) : (0L)), ((__tmpStkVar_16 = ((_CLKFB_t1_88) < __INT_TO_DBL((0L)))) ? (0L) : _CLKFB_t1_88), ((__tmpStkVar_17 = (((((_CLKFB_delay_48) - (_CLKFB_t1_88)))) > __INT_TO_DBL((0L)))) ? (((_CLKFB_delay_48) - (_CLKFB_t1_88))) : (1.00000000000000139353e-12)), ((__tmpStkVar_17 = ((((((_CLKFB_delay_48)) - ((_CLKFB_t1_88))))) > __INT_TO_DBL((0L)))) ? ((((_CLKFB_delay_48)) - ((_CLKFB_t1_88)))) : (1.00000000000000139353e-12)), 0, 1, (double *) &__tmpStkVar_14);_Static_d_by_dv_global_VDD_384 += ((((__tmpStkVar_15 ? (__FLOAT_DIV((__tmpStkVar_2), __INT_TO_DBL((2L)))) : (0.00000000000000000000e+00))) * ((__tmpStkVar_14))));ahdlDoSetLineNum ((long) 59);(_V_Static_CLKFB_440) += ahdlDoTransition (*(void **) (instData + 392), ((__tmpStkVar_19 = _fun_CLKFB_164) ? (__FLOAT_DIV((_global_VDD_value_240), __INT_TO_DBL((2L)))) : (0L)), ((__tmpStkVar_20 = ((_CLKFB_delay_48) < __INT_TO_DBL((0L)))) ? (0L) : _CLKFB_delay_48), ((__tmpStkVar_21 = (((((_CLKFB_t2_128) - (_CLKFB_delay_48)))) > __INT_TO_DBL((0L)))) ? (((_CLKFB_t2_128) - (_CLKFB_delay_48))) : (1.00000000000000139353e-12)), ((__tmpStkVar_21 = ((((((_CLKFB_t2_128)) - ((_CLKFB_delay_48))))) > __INT_TO_DBL((0L)))) ? ((((_CLKFB_t2_128)) - ((_CLKFB_delay_48)))) : (1.00000000000000139353e-12)), 0, 1, (double *) &__tmpStkVar_18);_Static_d_by_dv_global_VDD_384 += ((((__tmpStkVar_19 ? (__FLOAT_DIV((__tmpStkVar_2), __INT_TO_DBL((2L)))) : (0.00000000000000000000e+00))) * ((__tmpStkVar_18))));ahdlDoSetLineNum ((long) 60);(_V_Static_CLKFB_440) += ((((getThruSolution(_CLKFB_flow_424))) * ((1.00000000000000005551e-01))));_Static_d_by_di_CLKFB_400 += ((1.00000000000000005551e-01));}ahdlDoSetLineNum ((long) 61);    ahdlInterSetAcrossQuan(      *(void **)(instData + 428),
       _CLKFB_12,       *(long*)(instData + 0),       _CLKFB_flow_424,      _V_Static_CLKFB_440   ,       1.0    );
      /* do positive component */      ahdlInterAddStaticElement(*(void**)(instData + 380), _Static_d_by_dv_global_VDD_384);
      /* do negative component */      ahdlInterAddStaticElement(*(void**)(instData + 376), -_Static_d_by_dv_global_VDD_384);
      ahdlInterAddStaticElement(*(void**)(instData + 396), -_Static_d_by_di_CLKFB_400);
    return __msgSeverity__;
} /** end of PLL_250MHZ_MDIV_DcFuncDerLoad **/

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

int __msgSeverity__ = 0;
long	__tmpStkVar_21 = 0;
long	__tmpStkVar_20 = 0;
long	__tmpStkVar_19 = 0;
double	__tmpStkVar_18 = 0.0;
long	__tmpStkVar_17 = 0;
long	__tmpStkVar_16 = 0;
long	__tmpStkVar_15 = 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 + 48), (void *) (instData + 64), 16);
memcpy ((void *) (instData + 88), (void *) (instData + 104), 16);
memcpy ((void *) (instData + 128), (void *) (instData + 144), 16);
memcpy ((void *) (instData + 164), (void *) (instData + 168), 4);
memcpy ((void *) (instData + 176), (void *) (instData + 180), 4);
memcpy ((void *) (instData + 188), (void *) (instData + 192), 4);
__tmpStkVar_14 = 0;
__tmpStkVar_18 = 0;
_V_Static_CLKFB_440 = 0.0;
_Static_d_by_dv_global_VDD_384 = 0.0;
_Static_d_by_di_CLKFB_400 = 0.0;

/*  C Code Every Code. */{ahdlDoSetLineNum ((long) 24);ahdlDoSetLineNum ((long) 24);(_global_VSS_value_200) = ((getAcrossSolution1(_global_VSS_28)));ahdlDoSetLineNum ((long) 25);(_global_VDD_value_240) = ((getAcrossSolution1(_global_VDD_36)));ahdlDoSetLineNum ((long) 26);(_thr_280) = ((__FLOAT_DIV((_global_VDD_value_240), ((2.00000000000000000000e+00)))));ahdlDoSetLineNum ((long) 28);if (ahdlIsInitialStep (0x100000, 0x0)){{ahdlDoSetLineNum ((long) 29);ahdlDoSetLineNum ((long) 29);(_CLKFB_t1_88) = __INT_TO_DBL((0L));ahdlDoSetLineNum ((long) 30);(_CLKFB_delay_48) = ((5.00000000000000548129e-10));ahdlDoSetLineNum ((long) 31);(_CLKFB_t2_128) = ((1.00000000000000088946e-09));ahdlDoSetLineNum ((long) 34);(_CLKVCO_dir_188) = ((1L));}}ahdlDoSetLineNum ((long) 39);if (ahdlIsInitialStep (0x100000, 0x0)){{ahdlDoSetLineNum ((long) 40);ahdlDoSetLineNum ((long) 40);(_count_CLKFB_176) = ((0L));ahdlDoSetLineNum ((long) 41);(_fun_CLKFB_164) = ((0L));}}ahdlDoSetLineNum ((long) 43);if (0 /* Cross Event not valid in DC mode. */){{ahdlDoSetLineNum ((long) 44);ahdlDoSetLineNum ((long) 44);(_count_CLKFB_176) = ((((_count_CLKFB_176) + ((1L)))));if (((_count_CLKFB_176) == ((5L)))){{ahdlDoSetLineNum ((long) 46);ahdlDoSetLineNum ((long) 46);(_fun_CLKFB_164) = ((1L));ahdlDoSetLineNum ((long) 47);(_CLKFB_t1_88) = (evalTableModelC( *(void**)(instData +348) , (_global_VDD_value_240), &__tmpStkVar_5));ahdlDoSetLineNum ((long) 48);(_CLKFB_delay_48) = (evalTableModelC( *(void**)(instData +352) , (_global_VDD_value_240), &__tmpStkVar_7));ahdlDoSetLineNum ((long) 49);(_CLKFB_t2_128) = (evalTableModelC( *(void**)(instData +356) , (_global_VDD_value_240), &__tmpStkVar_9));}}else{if (((_count_CLKFB_176) == ((10L)))){{ahdlDoSetLineNum ((long) 51);ahdlDoSetLineNum ((long) 51);(_fun_CLKFB_164) = ((0L));ahdlDoSetLineNum ((long) 52);(_CLKFB_t1_88) = (evalTableModelC( *(void**)(instData +360) , (_global_VDD_value_240), &__tmpStkVar_11));ahdlDoSetLineNum ((long) 53);(_CLKFB_delay_48) = (evalTableModelC( *(void**)(instData +364) , (_global_VDD_value_240), &__tmpStkVar_12));ahdlDoSetLineNum ((long) 54);(_CLKFB_t2_128) = (evalTableModelC( *(void**)(instData +368) , (_global_VDD_value_240), &__tmpStkVar_13));ahdlDoSetLineNum ((long) 55);(_count_CLKFB_176) = ((0L));}}}}}ahdlDoSetLineNum ((long) 58);(_V_Static_CLKFB_440) += ahdlDoTransition (*(void **) (instData + 372), ((__tmpStkVar_15 = _fun_CLKFB_164) ? (__FLOAT_DIV((_global_VDD_value_240), __INT_TO_DBL((2L)))) : (0L)), ((__tmpStkVar_16 = ((_CLKFB_t1_88) < __INT_TO_DBL((0L)))) ? (0L) : _CLKFB_t1_88), ((__tmpStkVar_17 = (((((_CLKFB_delay_48) - (_CLKFB_t1_88)))) > __INT_TO_DBL((0L)))) ? (((_CLKFB_delay_48) - (_CLKFB_t1_88))) : (1.00000000000000139353e-12)), ((__tmpStkVar_17 = ((((((_CLKFB_delay_48)) - ((_CLKFB_t1_88))))) > __INT_TO_DBL((0L)))) ? ((((_CLKFB_delay_48)) - ((_CLKFB_t1_88)))) : (1.00000000000000139353e-12)), 0, 1, (double *) &__tmpStkVar_14);ahdlDoSetLineNum ((long) 59);(_V_Static_CLKFB_440) += ahdlDoTransition (*(void **) (instData + 392), ((__tmpStkVar_19 = _fun_CLKFB_164) ? (__FLOAT_DIV((_global_VDD_value_240), __INT_TO_DBL((2L)))) : (0L)), ((__tmpStkVar_20 = ((_CLKFB_delay_48) < __INT_TO_DBL((0L)))) ? (0L) : _CLKFB_delay_48), ((__tmpStkVar_21 = (((((_CLKFB_t2_128) - (_CLKFB_delay_48)))) > __INT_TO_DBL((0L)))) ? (((_CLKFB_t2_128) - (_CLKFB_delay_48))) : (1.00000000000000139353e-12)), ((__tmpStkVar_21 = ((((((_CLKFB_t2_128)) - ((_CLKFB_delay_48))))) > __INT_TO_DBL((0L)))) ? ((((_CLKFB_t2_128)) - ((_CLKFB_delay_48)))) : (1.00000000000000139353e-12)), 0, 1, (double *) &__tmpStkVar_18);ahdlDoSetLineNum ((long) 60);(_V_Static_CLKFB_440) += ((((getThruSolution(_CLKFB_flow_424))) * ((1.00000000000000005551e-01))));}ahdlDoSetLineNum ((long) 61);    ahdlInterSetAcrossQuan(      *(void **)(instData + 428),
       _CLKFB_12,       *(long*)(instData + 0),       _CLKFB_flow_424,      _V_Static_CLKFB_440   ,       1.0    );
    return __msgSeverity__;
} /** end of PLL_250MHZ_MDIV_DcFuncLoad **/

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

int __msgSeverity__ = 0;
long	__tmpStkVar_21 = 0;
long	__tmpStkVar_20 = 0;
long	__tmpStkVar_19 = 0;
double	__tmpStkVar_18 = 0.0;
long	__tmpStkVar_17 = 0;
long	__tmpStkVar_16 = 0;
long	__tmpStkVar_15 = 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 + 48), (void *) (instData + 64), 16);
memcpy ((void *) (instData + 88), (void *) (instData + 104), 16);
memcpy ((void *) (instData + 128), (void *) (instData + 144), 16);
memcpy ((void *) (instData + 164), (void *) (instData + 168), 4);
memcpy ((void *) (instData + 176), (void *) (instData + 180), 4);
memcpy ((void *) (instData + 188), (void *) (instData + 192), 4);
__tmpStkVar_14 = 0;
__tmpStkVar_18 = 0;
_I_Dynamic_CLKVCO_global_VSS_416 = 0.0;
_Dynamic_d_by_dv_CLKVCO_global_VSS_320 = 0.0;
_Dynamic_d_by_dv_global_VDD_336 = 0.0;
_V_Static_CLKFB_440 = 0.0;
_Static_d_by_dv_global_VDD_384 = 0.0;
_Static_d_by_di_CLKFB_400 = 0.0;

/*  C Code Every Code. */{ahdlDoSetLineNum ((long) 24);ahdlDoSetLineNum ((long) 24);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((getAcrossSolution1(_global_VSS_28)));__tmpStkVar_1 = ((1.00000000000000000000e+00));(_global_VSS_value_200) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 25);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((getAcrossSolution1(_global_VDD_36)));__tmpStkVar_2 = ((1.00000000000000000000e+00));(_global_VDD_value_240) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 26);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((__FLOAT_DIV((_global_VDD_value_240), ((2.00000000000000000000e+00)))));__tmpStkVar_3 = ((__FLOAT_DIV((__tmpStkVar_2), ((2.00000000000000000000e+00)))));(_thr_280) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 27);(_I_Dynamic_CLKVCO_global_VSS_416) += (((evalTableModelC( *(void**)(instData +312) , (_global_VDD_value_240), &__tmpStkVar_4))) * (((getAcrossSolution2(_CLKVCO_20, _global_VSS_28)))));_Dynamic_d_by_dv_CLKVCO_global_VSS_320 += (evalTableModelC( *(void**)(instData +312) , (_global_VDD_value_240), &__tmpStkVar_4));_Dynamic_d_by_dv_global_VDD_336 += (((((((__tmpStkVar_2)) * ((__tmpStkVar_4))))) * (((getAcrossSolution2(_CLKVCO_20, _global_VSS_28))))));ahdlDoSetLineNum ((long) 28);if (ahdlIsInitialStep (0x100000, 0x0)){{ahdlDoSetLineNum ((long) 29);ahdlDoSetLineNum ((long) 29);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = __INT_TO_DBL((0L));__tmpStkVar_6 = 0.0;(_CLKFB_t1_88) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 30);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((5.00000000000000548129e-10));__tmpStkVar_8 = 0.0;(_CLKFB_delay_48) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 31);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((1.00000000000000088946e-09));__tmpStkVar_10 = 0.0;(_CLKFB_t2_128) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 34);(_CLKVCO_dir_188) = ((1L));}}ahdlDoSetLineNum ((long) 39);if (ahdlIsInitialStep (0x100000, 0x0)){{ahdlDoSetLineNum ((long) 40);ahdlDoSetLineNum ((long) 40);(_count_CLKFB_176) = ((0L));ahdlDoSetLineNum ((long) 41);(_fun_CLKFB_164) = ((0L));}}ahdlDoSetLineNum ((long) 43);if (ahdlIsCrossEvent (*(void **) (instData + 344), ((((getAcrossSolution1(_CLKVCO_20))) - (_thr_280))), _CLKVCO_dir_188, -1, -1)){{ahdlDoSetLineNum ((long) 44);ahdlDoSetLineNum ((long) 44);(_count_CLKFB_176) = ((((_count_CLKFB_176) + ((1L)))));if (((_count_CLKFB_176) == ((5L)))){{ahdlDoSetLineNum ((long) 46);ahdlDoSetLineNum ((long) 46);(_fun_CLKFB_164) = ((1L));ahdlDoSetLineNum ((long) 47);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = (evalTableModelC( *(void**)(instData +348) , (_global_VDD_value_240), &__tmpStkVar_5));__tmpStkVar_6 = ((((__tmpStkVar_2)) * ((__tmpStkVar_5))));(_CLKFB_t1_88) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 48);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = (evalTableModelC( *(void**)(instData +352) , (_global_VDD_value_240), &__tmpStkVar_7));__tmpStkVar_8 = ((((__tmpStkVar_2)) * ((__tmpStkVar_7))));(_CLKFB_delay_48) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 49);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = (evalTableModelC( *(void**)(instData +356) , (_global_VDD_value_240), &__tmpStkVar_9));__tmpStkVar_10 = ((((__tmpStkVar_2)) * ((__tmpStkVar_9))));(_CLKFB_t2_128) = __tempValueResultStatic;}}}else{if (((_count_CLKFB_176) == ((10L)))){{ahdlDoSetLineNum ((long) 51);ahdlDoSetLineNum ((long) 51);(_fun_CLKFB_164) = ((0L));ahdlDoSetLineNum ((long) 52);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = (evalTableModelC( *(void**)(instData +360) , (_global_VDD_value_240), &__tmpStkVar_11));__tmpStkVar_6 = ((((__tmpStkVar_2)) * ((__tmpStkVar_11))));(_CLKFB_t1_88) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 53);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = (evalTableModelC( *(void**)(instData +364) , (_global_VDD_value_240), &__tmpStkVar_12));__tmpStkVar_8 = ((((__tmpStkVar_2)) * ((__tmpStkVar_12))));(_CLKFB_delay_48) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 54);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = (evalTableModelC( *(void**)(instData +368) , (_global_VDD_value_240), &__tmpStkVar_13));__tmpStkVar_10 = ((((__tmpStkVar_2)) * ((__tmpStkVar_13))));(_CLKFB_t2_128) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 55);(_count_CLKFB_176) = ((0L));}}}}}ahdlDoSetLineNum ((long) 58);(_V_Static_CLKFB_440) += ahdlDoTransition (*(void **) (instData + 372), ((__tmpStkVar_15 = _fun_CLKFB_164) ? (__FLOAT_DIV((_global_VDD_value_240), __INT_TO_DBL((2L)))) : (0L)), ((__tmpStkVar_16 = ((_CLKFB_t1_88) < __INT_TO_DBL((0L)))) ? (0L) : _CLKFB_t1_88), ((__tmpStkVar_17 = (((((_CLKFB_delay_48) - (_CLKFB_t1_88)))) > __INT_TO_DBL((0L)))) ? (((_CLKFB_delay_48) - (_CLKFB_t1_88))) : (1.00000000000000139353e-12)), ((__tmpStkVar_17 = ((((((_CLKFB_delay_48)) - ((_CLKFB_t1_88))))) > __INT_TO_DBL((0L)))) ? ((((_CLKFB_delay_48)) - ((_CLKFB_t1_88)))) : (1.00000000000000139353e-12)), 0, 1, (double *) &__tmpStkVar_14);_Static_d_by_dv_global_VDD_384 += ((((__tmpStkVar_15 ? (__FLOAT_DIV((__tmpStkVar_2), __INT_TO_DBL((2L)))) : (0.00000000000000000000e+00))) * ((__tmpStkVar_14))));ahdlDoSetLineNum ((long) 59);(_V_Static_CLKFB_440) += ahdlDoTransition (*(void **) (instData + 392), ((__tmpStkVar_19 = _fun_CLKFB_164) ? (__FLOAT_DIV((_global_VDD_value_240), __INT_TO_DBL((2L)))) : (0L)), ((__tmpStkVar_20 = ((_CLKFB_delay_48) < __INT_TO_DBL((0L)))) ? (0L) : _CLKFB_delay_48), ((__tmpStkVar_21 = (((((_CLKFB_t2_128) - (_CLKFB_delay_48)))) > __INT_TO_DBL((0L)))) ? (((_CLKFB_t2_128) - (_CLKFB_delay_48))) : (1.00000000000000139353e-12)), ((__tmpStkVar_21 = ((((((_CLKFB_t2_128)) - ((_CLKFB_delay_48))))) > __INT_TO_DBL((0L)))) ? ((((_CLKFB_t2_128)) - ((_CLKFB_delay_48)))) : (1.00000000000000139353e-12)), 0, 1, (double *) &__tmpStkVar_18);_Static_d_by_dv_global_VDD_384 += ((((__tmpStkVar_19 ? (__FLOAT_DIV((__tmpStkVar_2), __INT_TO_DBL((2L)))) : (0.00000000000000000000e+00))) * ((__tmpStkVar_18))));ahdlDoSetLineNum ((long) 60);(_V_Static_CLKFB_440) += ((((getThruSolution(_CLKFB_flow_424))) * ((1.00000000000000005551e-01))));_Static_d_by_di_CLKFB_400 += ((1.00000000000000005551e-01));}ahdlDoSetLineNum ((long) 61);   if (ahdlWhatsNeeded IS devDynamicFuncNeeded) {
      ahdlDynamicRHS[_CLKVCO_20] -= _I_Dynamic_CLKVCO_global_VSS_416;
      ahdlDynamicRHS[_global_VSS_28] += _I_Dynamic_CLKVCO_global_VSS_416;
      ahdlDynamicRHS_AbsSum[_CLKVCO_20] += ABS(_I_Dynamic_CLKVCO_global_VSS_416);
      ahdlDynamicRHS_AbsSum[_global_VSS_28] += ABS(_I_Dynamic_CLKVCO_global_VSS_416);
   }

      ahdlInterAddDynamicQuartet(*(void**)(instData + 316),_Dynamic_d_by_dv_CLKVCO_global_VSS_320);
      ahdlInterAddDynamicQuartet(*(void**)(instData + 328),_Dynamic_d_by_dv_global_VDD_336);
    ahdlInterSetAcrossQuan(      *(void **)(instData + 428),
       _CLKFB_12,       *(long*)(instData + 0),       _CLKFB_flow_424,      _V_Static_CLKFB_440   ,       1.0    );
      /* do positive component */      ahdlInterAddStaticElement(*(void**)(instData + 380), _Static_d_by_dv_global_VDD_384);
      /* do negative component */      ahdlInterAddStaticElement(*(void**)(instData + 376), -_Static_d_by_dv_global_VDD_384);
      ahdlInterAddStaticElement(*(void**)(instData + 396), -_Static_d_by_di_CLKFB_400);
    return __msgSeverity__;
} /** end of PLL_250MHZ_MDIV_TranFuncDerLoad **/

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

int __msgSeverity__ = 0;
long	__tmpStkVar_21 = 0;
long	__tmpStkVar_20 = 0;
long	__tmpStkVar_19 = 0;
double	__tmpStkVar_18 = 0.0;
long	__tmpStkVar_17 = 0;
long	__tmpStkVar_16 = 0;
long	__tmpStkVar_15 = 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 + 48), (void *) (instData + 64), 16);
memcpy ((void *) (instData + 88), (void *) (instData + 104), 16);
memcpy ((void *) (instData + 128), (void *) (instData + 144), 16);
memcpy ((void *) (instData + 164), (void *) (instData + 168), 4);
memcpy ((void *) (instData + 176), (void *) (instData + 180), 4);
memcpy ((void *) (instData + 188), (void *) (instData + 192), 4);
__tmpStkVar_14 = 0;
__tmpStkVar_18 = 0;
_I_Dynamic_CLKVCO_global_VSS_416 = 0.0;
_Dynamic_d_by_dv_CLKVCO_global_VSS_320 = 0.0;
_Dynamic_d_by_dv_global_VDD_336 = 0.0;
_V_Static_CLKFB_440 = 0.0;
_Static_d_by_dv_global_VDD_384 = 0.0;
_Static_d_by_di_CLKFB_400 = 0.0;

/*  C Code Every Code. */{ahdlDoSetLineNum ((long) 24);ahdlDoSetLineNum ((long) 24);(_global_VSS_value_200) = ((getAcrossSolution1(_global_VSS_28)));ahdlDoSetLineNum ((long) 25);(_global_VDD_value_240) = ((getAcrossSolution1(_global_VDD_36)));ahdlDoSetLineNum ((long) 26);(_thr_280) = ((__FLOAT_DIV((_global_VDD_value_240), ((2.00000000000000000000e+00)))));ahdlDoSetLineNum ((long) 27);(_I_Dynamic_CLKVCO_global_VSS_416) += (((evalTableModelC( *(void**)(instData +312) , (_global_VDD_value_240), &__tmpStkVar_4))) * (((getAcrossSolution2(_CLKVCO_20, _global_VSS_28)))));ahdlDoSetLineNum ((long) 28);if (ahdlIsInitialStep (0x100000, 0x0)){{ahdlDoSetLineNum ((long) 29);ahdlDoSetLineNum ((long) 29);(_CLKFB_t1_88) = __INT_TO_DBL((0L));ahdlDoSetLineNum ((long) 30);(_CLKFB_delay_48) = ((5.00000000000000548129e-10));ahdlDoSetLineNum ((long) 31);(_CLKFB_t2_128) = ((1.00000000000000088946e-09));ahdlDoSetLineNum ((long) 34);(_CLKVCO_dir_188) = ((1L));}}ahdlDoSetLineNum ((long) 39);if (ahdlIsInitialStep (0x100000, 0x0)){{ahdlDoSetLineNum ((long) 40);ahdlDoSetLineNum ((long) 40);(_count_CLKFB_176) = ((0L));ahdlDoSetLineNum ((long) 41);(_fun_CLKFB_164) = ((0L));}}ahdlDoSetLineNum ((long) 43);if (ahdlIsCrossEvent (*(void **) (instData + 344), ((((getAcrossSolution1(_CLKVCO_20))) - (_thr_280))), _CLKVCO_dir_188, -1, -1)){{ahdlDoSetLineNum ((long) 44);ahdlDoSetLineNum ((long) 44);(_count_CLKFB_176) = ((((_count_CLKFB_176) + ((1L)))));if (((_count_CLKFB_176) == ((5L)))){{ahdlDoSetLineNum ((long) 46);ahdlDoSetLineNum ((long) 46);(_fun_CLKFB_164) = ((1L));ahdlDoSetLineNum ((long) 47);(_CLKFB_t1_88) = (evalTableModelC( *(void**)(instData +348) , (_global_VDD_value_240), &__tmpStkVar_5));ahdlDoSetLineNum ((long) 48);(_CLKFB_delay_48) = (evalTableModelC( *(void**)(instData +352) , (_global_VDD_value_240), &__tmpStkVar_7));ahdlDoSetLineNum ((long) 49);(_CLKFB_t2_128) = (evalTableModelC( *(void**)(instData +356) , (_global_VDD_value_240), &__tmpStkVar_9));}}else{if (((_count_CLKFB_176) == ((10L)))){{ahdlDoSetLineNum ((long) 51);ahdlDoSetLineNum ((long) 51);(_fun_CLKFB_164) = ((0L));ahdlDoSetLineNum ((long) 52);(_CLKFB_t1_88) = (evalTableModelC( *(void**)(instData +360) , (_global_VDD_value_240), &__tmpStkVar_11));ahdlDoSetLineNum ((long) 53);(_CLKFB_delay_48) = (evalTableModelC( *(void**)(instData +364) , (_global_VDD_value_240), &__tmpStkVar_12));ahdlDoSetLineNum ((long) 54);(_CLKFB_t2_128) = (evalTableModelC( *(void**)(instData +368) , (_global_VDD_value_240), &__tmpStkVar_13));ahdlDoSetLineNum ((long) 55);(_count_CLKFB_176) = ((0L));}}}}}ahdlDoSetLineNum ((long) 58);(_V_Static_CLKFB_440) += ahdlDoTransition (*(void **) (instData + 372), ((__tmpStkVar_15 = _fun_CLKFB_164) ? (__FLOAT_DIV((_global_VDD_value_240), __INT_TO_DBL((2L)))) : (0L)), ((__tmpStkVar_16 = ((_CLKFB_t1_88) < __INT_TO_DBL((0L)))) ? (0L) : _CLKFB_t1_88), ((__tmpStkVar_17 = (((((_CLKFB_delay_48) - (_CLKFB_t1_88)))) > __INT_TO_DBL((0L)))) ? (((_CLKFB_delay_48) - (_CLKFB_t1_88))) : (1.00000000000000139353e-12)), ((__tmpStkVar_17 = ((((((_CLKFB_delay_48)) - ((_CLKFB_t1_88))))) > __INT_TO_DBL((0L)))) ? ((((_CLKFB_delay_48)) - ((_CLKFB_t1_88)))) : (1.00000000000000139353e-12)), 0, 1, (double *) &__tmpStkVar_14);ahdlDoSetLineNum ((long) 59);(_V_Static_CLKFB_440) += ahdlDoTransition (*(void **) (instData + 392), ((__tmpStkVar_19 = _fun_CLKFB_164) ? (__FLOAT_DIV((_global_VDD_value_240), __INT_TO_DBL((2L)))) : (0L)), ((__tmpStkVar_20 = ((_CLKFB_delay_48) < __INT_TO_DBL((0L)))) ? (0L) : _CLKFB_delay_48), ((__tmpStkVar_21 = (((((_CLKFB_t2_128) - (_CLKFB_delay_48)))) > __INT_TO_DBL((0L)))) ? (((_CLKFB_t2_128) - (_CLKFB_delay_48))) : (1.00000000000000139353e-12)), ((__tmpStkVar_21 = ((((((_CLKFB_t2_128)) - ((_CLKFB_delay_48))))) > __INT_TO_DBL((0L)))) ? ((((_CLKFB_t2_128)) - ((_CLKFB_delay_48)))) : (1.00000000000000139353e-12)), 0, 1, (double *) &__tmpStkVar_18);ahdlDoSetLineNum ((long) 60);(_V_Static_CLKFB_440) += ((((getThruSolution(_CLKFB_flow_424))) * ((1.00000000000000005551e-01))));}ahdlDoSetLineNum ((long) 61);   if (ahdlWhatsNeeded IS devDynamicFuncNeeded) {
      ahdlDynamicRHS[_CLKVCO_20] -= _I_Dynamic_CLKVCO_global_VSS_416;
      ahdlDynamicRHS[_global_VSS_28] += _I_Dynamic_CLKVCO_global_VSS_416;
      ahdlDynamicRHS_AbsSum[_CLKVCO_20] += ABS(_I_Dynamic_CLKVCO_global_VSS_416);
      ahdlDynamicRHS_AbsSum[_global_VSS_28] += ABS(_I_Dynamic_CLKVCO_global_VSS_416);
   }

    ahdlInterSetAcrossQuan(      *(void **)(instData + 428),
       _CLKFB_12,       *(long*)(instData + 0),       _CLKFB_flow_424,      _V_Static_CLKFB_440   ,       1.0    );
    return __msgSeverity__;
} /** end of PLL_250MHZ_MDIV_TranFuncLoad **/

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

int __msgSeverity__ = 0;
long	__tmpStkVar_21 = 0;
long	__tmpStkVar_20 = 0;
long	__tmpStkVar_19 = 0;
double	__tmpStkVar_18 = 0.0;
long	__tmpStkVar_17 = 0;
long	__tmpStkVar_16 = 0;
long	__tmpStkVar_15 = 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_250MHZ_MDIV_NoiseLoadBiasDep **/

