oagTimerSdcParser.cxx File Reference

#include <iostream>
#include <string.h>
#include "oaDesignDB.h"
#include "oagTimerSdcData.h"

Include dependency graph for oagTimerSdcParser.cxx:

Include dependency graph

Namespaces

namespace  oagTimer

Classes

class  oagTimer::exprTree3
union  YYSTYPE
union  oagTimerSdc_yyalloc

Defines

#define YYBISON   1
#define YYSKELETON_NAME   "yacc.c"
#define YYPURE   0
#define YYLSP_NEEDED   0
#define IDENTIFIER   258
#define NUMBER   259
#define K_NAME   260
#define K_ALL_CLOCKS   261
#define K_ALL_INPUTS   262
#define K_ALL_OUTPUTS   263
#define K_CLOCK   264
#define K_CREATE_CLOCK   265
#define K_GET_PORTS   266
#define K_LIB_CELL   267
#define K_PERIOD   268
#define K_SET_DRIVING_CELL   269
#define K_SET_INPUT_DELAY   270
#define K_SET_LOAD   271
#define K_SET_OUTPUT_DELAY   272
#define K_SET_MULTICYCLE_PATH   273
#define K_ADD   274
#define K_WAVEFORM   275
#define K_SET_CLOCK_TRAN   276
#define K_SET_CLOCK_GATING_CHECK   277
#define K_SET   278
#define K_SETUP   279
#define K_GET_CLOCKS   280
#define K_ADD_DELAY   281
#define K_SET_UNITS   282
#define YYDEBUG   0
#define YYERROR_VERBOSE   0
#define oagTimerSdc_yystype   YYSTYPE
#define YYSTYPE_IS_DECLARED   1
#define YYSTYPE_IS_TRIVIAL   1
#define YYFREE   free
#define YYMALLOC   malloc
#define YYSTACK_ALLOC   YYMALLOC
#define YYSTACK_FREE   YYFREE
#define YYSTACK_GAP_MAXIMUM   (sizeof (union oagTimerSdc_yyalloc) - 1)
#define YYSTACK_BYTES(N)
#define YYCOPY(To, From, Count)
#define YYSTACK_RELOCATE(Stack)
#define YYFINAL   2
#define YYLAST   286
#define YYNTOKENS   49
#define YYNNTS   21
#define YYNRULES   78
#define YYNSTATES   203
#define YYUNDEFTOK   2
#define YYMAXUTOK   282
#define YYTRANSLATE(YYX)   ((unsigned int) (YYX) <= YYMAXUTOK ? oagTimerSdc_yytranslate[YYX] : YYUNDEFTOK)
#define YYPACT_NINF   -163
#define YYTABLE_NINF   -55
#define YYSIZE_T   unsigned int
#define oagTimerSdc_yyerrok   (oagTimerSdc_yyerrstatus = 0)
#define oagTimerSdc_yyclearin   (oagTimerSdc_yychar = YYEMPTY)
#define YYEMPTY   (-2)
#define YYEOF   0
#define YYACCEPT   goto oagTimerSdc_yyacceptlab
#define YYABORT   goto oagTimerSdc_yyabortlab
#define YYERROR   goto oagTimerSdc_yyerrorlab
#define YYFAIL   goto oagTimerSdc_yyerrlab
#define YYRECOVERING()   (!!oagTimerSdc_yyerrstatus)
#define YYBACKUP(Token, Value)
#define YYTERROR   1
#define YYERRCODE   256
#define YYLLOC_DEFAULT(Current, Rhs, N)
#define YYLEX   oagTimerSdc_yylex ()
#define YYDPRINTF(Args)
#define YYDSYMPRINT(Args)
#define YYDSYMPRINTF(Title, Token, Value, Location)
#define YY_STACK_PRINT(Bottom, Top)
#define YY_REDUCE_PRINT(Rule)
#define YYINITDEPTH   200
#define YYMAXDEPTH   10000
#define YYPOPSTACK   (oagTimerSdc_yyvsp--, oagTimerSdc_yyssp--)

Typedefs

typedef YYSTYPE YYSTYPE
typedef short oagTimerSdc_yysigned_char

Enumerations

enum  oagTimerSdc_yytokentype {
  IDENTIFIER = 258, NUMBER = 259, K_NAME = 260, K_ALL_CLOCKS = 261,
  K_ALL_INPUTS = 262, K_ALL_OUTPUTS = 263, K_CLOCK = 264, K_CREATE_CLOCK = 265,
  K_GET_PORTS = 266, K_LIB_CELL = 267, K_PERIOD = 268, K_SET_DRIVING_CELL = 269,
  K_SET_INPUT_DELAY = 270, K_SET_LOAD = 271, K_SET_OUTPUT_DELAY = 272, K_SET_MULTICYCLE_PATH = 273,
  K_ADD = 274, K_WAVEFORM = 275, K_SET_CLOCK_TRAN = 276, K_SET_CLOCK_GATING_CHECK = 277,
  K_SET = 278, K_SETUP = 279, K_GET_CLOCKS = 280, K_ADD_DELAY = 281,
  K_SET_UNITS = 282
}

Functions

int oagTimerSdc_yylex (void)
void oagTimerSdc_yyerror (const char *s)
void oagTimerSdc_yydestruct (oagTimerSdc_yytype, oagTimerSdc_yyvaluep) int oagTimerSdc_yytype
int oagTimerSdc_yyparse ()

Variables

SdcData sdcParseData
const unsigned char oagTimerSdc_yytranslate []
const unsigned char oagTimerSdc_yyr1 []
const unsigned char oagTimerSdc_yyr2 []
const unsigned char oagTimerSdc_yydefact []
const short oagTimerSdc_yydefgoto []
const short oagTimerSdc_yypact []
const short oagTimerSdc_yypgoto []
const short oagTimerSdc_yytable []
const short oagTimerSdc_yycheck []
const unsigned char oagTimerSdc_yystos []
YYSTYPEoagTimerSdc_yyvaluep
int oagTimerSdc_yychar
YYSTYPE oagTimerSdc_yylval
int oagTimerSdc_yynerrs

Define Documentation

#define IDENTIFIER   258
 

#define K_ADD   274
 

#define K_ADD_DELAY   281
 

#define K_ALL_CLOCKS   261
 

#define K_ALL_INPUTS   262
 

#define K_ALL_OUTPUTS   263
 

#define K_CLOCK   264
 

#define K_CREATE_CLOCK   265
 

#define K_GET_CLOCKS   280
 

#define K_GET_PORTS   266
 

#define K_LIB_CELL   267
 

#define K_NAME   260
 

#define K_PERIOD   268
 

#define K_SET   278
 

#define K_SET_CLOCK_GATING_CHECK   277
 

#define K_SET_CLOCK_TRAN   276
 

#define K_SET_DRIVING_CELL   269
 

#define K_SET_INPUT_DELAY   270
 

#define K_SET_LOAD   271
 

#define K_SET_MULTICYCLE_PATH   273
 

#define K_SET_OUTPUT_DELAY   272
 

#define K_SET_UNITS   282
 

#define K_SETUP   279
 

#define K_WAVEFORM   275
 

#define NUMBER   259
 

#define oagTimerSdc_yyclearin   (oagTimerSdc_yychar = YYEMPTY)
 

#define oagTimerSdc_yyerrok   (oagTimerSdc_yyerrstatus = 0)
 

#define oagTimerSdc_yystype   YYSTYPE
 

#define YY_REDUCE_PRINT Rule   ) 
 

#define YY_STACK_PRINT Bottom,
Top   ) 
 

#define YYABORT   goto oagTimerSdc_yyabortlab
 

#define YYACCEPT   goto oagTimerSdc_yyacceptlab
 

#define YYBACKUP Token,
Value   ) 
 

Value:

do                                                              \
  if (oagTimerSdc_yychar == YYEMPTY && oagTimerSdc_yylen == 1)                          \
    {                                                           \
      oagTimerSdc_yychar = (Token);                                             \
      oagTimerSdc_yylval = (Value);                                             \
      oagTimerSdc_yytoken = YYTRANSLATE (oagTimerSdc_yychar);                           \
      YYPOPSTACK;                                               \
      goto oagTimerSdc_yybackup;                                                \
    }                                                           \
  else                                                          \
    {                                                           \
      oagTimerSdc_yyerror ("syntax error: cannot back up");\
      YYERROR;                                                  \
    }                                                           \
while (0)

#define YYBISON   1
 

#define YYCOPY To,
From,
Count   ) 
 

Value:

do                                      \
        {                                       \
          register YYSIZE_T oagTimerSdc_yyi;            \
          for (oagTimerSdc_yyi = 0; oagTimerSdc_yyi < (Count); oagTimerSdc_yyi++)       \
            (To)[oagTimerSdc_yyi] = (From)[oagTimerSdc_yyi];            \
        }                                       \
      while (0)

#define YYDEBUG   0
 

#define YYDPRINTF Args   ) 
 

#define YYDSYMPRINT Args   ) 
 

#define YYDSYMPRINTF Title,
Token,
Value,
Location   ) 
 

#define YYEMPTY   (-2)
 

#define YYEOF   0
 

#define YYERRCODE   256
 

#define YYERROR   goto oagTimerSdc_yyerrorlab
 

#define YYERROR_VERBOSE   0
 

#define YYFAIL   goto oagTimerSdc_yyerrlab
 

#define YYFINAL   2
 

#define YYFREE   free
 

#define YYINITDEPTH   200
 

#define YYLAST   286
 

#define YYLEX   oagTimerSdc_yylex ()
 

#define YYLLOC_DEFAULT Current,
Rhs,
 ) 
 

Value:

((Current).first_line   = (Rhs)[1].first_line,  \
    (Current).first_column = (Rhs)[1].first_column,     \
    (Current).last_line    = (Rhs)[N].last_line,        \
    (Current).last_column  = (Rhs)[N].last_column)

#define YYLSP_NEEDED   0
 

#define YYMALLOC   malloc
 

#define YYMAXDEPTH   10000
 

#define YYMAXUTOK   282
 

#define YYNNTS   21
 

#define YYNRULES   78
 

#define YYNSTATES   203
 

#define YYNTOKENS   49
 

#define YYPACT_NINF   -163
 

#define YYPOPSTACK   (oagTimerSdc_yyvsp--, oagTimerSdc_yyssp--)
 

#define YYPURE   0
 

 
#define YYRECOVERING  )     (!!oagTimerSdc_yyerrstatus)
 

#define YYSIZE_T   unsigned int
 

#define YYSKELETON_NAME   "yacc.c"
 

#define YYSTACK_ALLOC   YYMALLOC
 

#define YYSTACK_BYTES  ) 
 

Value:

((N) * (sizeof (short) + sizeof (YYSTYPE))                              \
      + YYSTACK_GAP_MAXIMUM)

#define YYSTACK_FREE   YYFREE
 

#define YYSTACK_GAP_MAXIMUM   (sizeof (union oagTimerSdc_yyalloc) - 1)
 

#define YYSTACK_RELOCATE Stack   ) 
 

Value:

do                                                                      \
      {                                                                 \
        YYSIZE_T oagTimerSdc_yynewbytes;                                                \
        YYCOPY (&oagTimerSdc_yyptr->Stack, Stack, oagTimerSdc_yysize);                          \
        Stack = &oagTimerSdc_yyptr->Stack;                                              \
        oagTimerSdc_yynewbytes = oagTimerSdc_yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
        oagTimerSdc_yyptr += oagTimerSdc_yynewbytes / sizeof (*oagTimerSdc_yyptr);                              \
      }                                                                 \
    while (0)

#define YYSTYPE_IS_DECLARED   1
 

#define YYSTYPE_IS_TRIVIAL   1
 

#define YYTABLE_NINF   -55
 

#define YYTERROR   1
 

#define YYTRANSLATE YYX   )     ((unsigned int) (YYX) <= YYMAXUTOK ? oagTimerSdc_yytranslate[YYX] : YYUNDEFTOK)
 

#define YYUNDEFTOK   2
 


Typedef Documentation

typedef short oagTimerSdc_yysigned_char
 

typedef union YYSTYPE YYSTYPE
 


Enumeration Type Documentation

enum oagTimerSdc_yytokentype
 

Enumeration values:
IDENTIFIER 
NUMBER 
K_NAME 
K_ALL_CLOCKS 
K_ALL_INPUTS 
K_ALL_OUTPUTS 
K_CLOCK 
K_CREATE_CLOCK 
K_GET_PORTS 
K_LIB_CELL 
K_PERIOD 
K_SET_DRIVING_CELL 
K_SET_INPUT_DELAY 
K_SET_LOAD 
K_SET_OUTPUT_DELAY 
K_SET_MULTICYCLE_PATH 
K_ADD 
K_WAVEFORM 
K_SET_CLOCK_TRAN 
K_SET_CLOCK_GATING_CHECK 
K_SET 
K_SETUP 
K_GET_CLOCKS 
K_ADD_DELAY 
K_SET_UNITS 


Function Documentation

void oagTimerSdc_yydestruct oagTimerSdc_yytype  ,
oagTimerSdc_yyvaluep 
[static]
 

void oagTimerSdc_yyerror const char *  s  ) 
 

int oagTimerSdc_yylex void   ) 
 

int oagTimerSdc_yyparse  ) 
 

Here is the call graph for this function:


Variable Documentation

int oagTimerSdc_yychar
 

const short oagTimerSdc_yycheck[] [static]
 

const unsigned char oagTimerSdc_yydefact[] [static]
 

Initial value:

{
       2,     0,     1,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     3,    10,     4,     5,     6,     7,
       8,     9,    11,    12,    54,    56,    66,    57,    58,    59,
      60,    61,    62,    63,    64,    65,    67,    68,    69,    70,
      71,    72,    73,    51,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,    55,    50,     0,     0,
       0,     0,     0,     0,     0,     0,     0,    74,    75,    76,
      77,    78,    45,     0,     0,    52,     0,    55,     0,     0,
       0,     0,     0,     0,    42,     0,     0,     0,     0,    36,
       0,     0,    48,    44,    53,     0,     0,     0,     0,     0,
       0,     0,     0,    29,     0,     0,    13,     0,     0,     0,
       0,    38,     0,    48,     0,     0,     0,     0,     0,    40,
       0,     0,    22,     0,     0,     0,    25,     0,     0,    37,
      33,    31,    32,     0,    38,    49,    47,     0,     0,     0,
       0,    20,     0,     0,     0,    28,     0,     0,    43,     0,
       0,    39,    35,     0,     0,     0,     0,     0,     0,    15,
       0,    14,     0,     0,     0,     0,     0,     0,    46,     0,
      19,     0,     0,    21,    41,     0,     0,     0,     0,    34,
       0,     0,     0,    16,     0,     0,     0,     0,     0,    17,
       0,    23,     0,    26,     0,     0,     0,     0,     0,    30,
      18,    24,    27
}

const short oagTimerSdc_yydefgoto[] [static]
 

Initial value:

{
      -1,     1,    14,    15,    16,    17,    18,    19,    20,    21,
     156,    90,   133,   121,    86,    22,    72,   112,    23,    43,
      91
}

YYSTYPE oagTimerSdc_yylval
 

int oagTimerSdc_yynerrs
 

const short oagTimerSdc_yypact[] [static]
 

Initial value:

{
    -163,   234,  -163,   168,   -24,   -11,    -3,    18,    -2,     4,
      34,    11,   168,    14,  -163,  -163,  -163,  -163,  -163,  -163,
    -163,  -163,  -163,  -163,  -163,  -163,  -163,  -163,  -163,  -163,
    -163,  -163,  -163,  -163,  -163,  -163,  -163,  -163,  -163,  -163,
    -163,  -163,  -163,   187,     2,    29,    15,    36,    17,    20,
      41,    48,   -18,    28,   187,    51,   259,    59,    94,    62,
      60,    61,   -18,    26,    63,   -18,    97,  -163,  -163,  -163,
    -163,  -163,  -163,    42,    70,    59,   168,  -163,    49,    73,
      58,    53,    75,    55,  -163,   -18,    54,    80,    64,  -163,
      86,    13,   -18,  -163,    59,    -5,   -18,    87,    65,    24,
      97,   110,    88,  -163,    97,   119,  -163,   -18,   -18,   -18,
     -18,   -18,   132,  -163,    95,    83,    90,   134,    98,  -163,
     -18,    99,  -163,   -18,   113,   -18,  -163,   -18,   122,  -163,
    -163,  -163,  -163,   147,  -163,  -163,  -163,   132,   100,   118,
     115,    97,   129,   133,   135,  -163,   123,   -18,  -163,   124,
     -18,  -163,  -163,   147,   -18,   127,    97,   149,   126,  -163,
     -18,  -163,   -18,   130,   -18,   139,   -18,   -18,  -163,   -18,
    -163,   100,   146,    97,  -163,   156,   141,   169,   150,  -163,
     170,    97,   171,  -163,    97,   158,    97,   159,   182,  -163,
     100,  -163,   183,  -163,   184,   -18,    97,    97,    97,  -163,
    -163,  -163,  -163
}

const short oagTimerSdc_yypgoto[] [static]
 

Initial value:

{
    -163,  -163,  -163,  -163,  -163,  -163,  -163,  -163,  -163,  -163,
    -162,   -77,    82,  -163,  -163,  -163,  -163,    76,  -163,    -7,
     -52
}

const unsigned char oagTimerSdc_yyr1[] [static]
 

Initial value:

{
       0,    49,    50,    50,    51,    51,    51,    51,    51,    51,
      51,    51,    51,    52,    53,    53,    53,    53,    53,    53,
      54,    54,    55,    55,    55,    56,    56,    56,    57,    58,
      59,    60,    60,    60,    60,    60,    60,    60,    61,    61,
      62,    62,    63,    63,    64,    64,    65,    65,    66,    66,
      67,    67,    67,    67,    68,    68,    68,    68,    68,    68,
      68,    68,    68,    68,    68,    68,    68,    68,    68,    68,
      68,    68,    68,    68,    69,    69,    69,    69,    69
}

const unsigned char oagTimerSdc_yyr2[] [static]
 

Initial value:

{
       0,     2,     0,     2,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     5,     8,     8,    10,    11,    13,     9,
       7,     9,     6,    11,    13,     6,    11,    13,     7,     5,
       6,     3,     3,     3,     6,     4,     1,     3,     0,     2,
       1,     4,     1,     4,     4,     3,     6,     4,     0,     2,
       3,     2,     3,     4,     1,     2,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     1
}

const unsigned char oagTimerSdc_yystos[] [static]
 

Initial value:

{
       0,    50,     0,     3,    10,    14,    15,    16,    17,    18,
      21,    22,    23,    27,    51,    52,    53,    54,    55,    56,
      57,    58,    64,    67,     3,     4,    28,    31,    32,    33,
      34,    35,    36,    37,    38,    39,    40,    41,    42,    43,
      44,    45,    46,    68,    28,    28,     4,    28,     4,     4,
      28,    28,     4,    28,    68,    28,     3,    68,     5,    13,
      12,    28,     9,    29,    28,     9,     3,    29,    30,    36,
      47,    48,    65,    69,    24,    68,     3,     3,     3,    69,
       4,     3,     9,    69,     8,    11,    63,     9,    69,     3,
      60,    69,    25,     4,    68,    28,     3,    28,    60,    29,
       3,    25,    69,    30,     3,    25,     4,     3,     6,     7,
       8,    11,    66,    69,    13,    19,    69,     5,    28,     7,
      11,    62,    60,     3,    69,     3,    60,     3,    69,    69,
      69,    69,    69,    61,    69,     3,    69,    66,     4,    28,
      28,     3,    69,     5,    69,    30,    69,     3,    69,    69,
       3,     3,    69,    61,    69,    28,    59,    13,    19,    60,
       3,     3,     3,    28,    69,    28,    69,    69,    69,    20,
      60,     4,    28,    69,    69,    26,    69,    26,    69,    69,
      69,    59,    13,    60,     4,    28,     4,    28,     4,    60,
       4,    60,    26,    60,    26,     4,    59,     4,     4,    69,
      60,    60,    60
}

const short oagTimerSdc_yytable[] [static]
 

const unsigned char oagTimerSdc_yytranslate[] [static]
 

YYSTYPE* oagTimerSdc_yyvaluep
 

SdcData oagTimer::sdcParseData
 

the parse data for .sdc file


Generated on Thu Aug 25 14:24:29 2011 by  doxygen 1.3.9.1