OpenCores
URL https://opencores.org/ocsvn/ezidebug/ezidebug/trunk

Subversion Repositories ezidebug

[/] [ezidebug/] [trunk/] [EziDebug_src/] [reg_type.h] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 EziDebug
#ifndef REG_TYPE_H
2
#define REG_TYPE_H
3
 
4
const int MAX_T_LEN= 128 ;
5
const int MAX_ID_LEN= 64 ;
6
const int MAX_NAME_LEN = 64 ;
7
 
8
/*enumeration of internal represention of tokens*/
9
enum TOKEN_IREPS
10
{UNDEFTOK,IFDEF,IFNDEF,ENDIF,MODULE,BEGIN,END,ENDMODULE,DEFPARAM,POSEDGE,NEGEDGE,IF,ELSE,REG,WIRE,CASE,CASEX,ENDCASE,PARAMETER,DEFINE,INCLUDE,ENDLINE,INPUT,OUTPUT,INOUT,ALWAYS,ASSIGN,SIGNED};
11
 
12
/*  enumeration of token types*/
13
enum TOK_TYPES
14
        {UNDEFTT,DELIMITER,IDENTFIER,NUMBER,KEYWORD,TEMP,STRING,BLOCK};
15
enum DOUBLE_OPS
16
        {LT=1,LE,GT,GE,EQ,NE,LS,RS,INC,DEC,POW,OR};
17
 
18
enum ERROR_MSG
19
{SYNTAX,NO_EXP,NOT_VAR,PAREN_EXPECTED,QUOTE_EXPECTED,UNBAL_BRACES,SEMI_EXPECTED,MODULE_UNDEF};
20
 
21
enum IO_ATTRI{IO_INPUT,IO_OUTPUT,IO_INOUT,IO_INVALID};
22
enum EDGE_ATTRI{INVALID,LOW,HIGH,POSE,NEGE};
23
 
24
 
25
//错误消息执行
26
class InterpExc
27
{
28
    ERROR_MSG eErr;
29
public:
30
    InterpExc(ERROR_MSG eErrMsg){eErr=eErrMsg;}
31
    ERROR_MSG eGetErr(){return eErr;}
32
};
33
 
34
 
35
//临时存储空间
36
struct TempBuf
37
{
38
    char cNameBuf[MAX_T_LEN];
39
    EDGE_ATTRI  eEdge;   //1: posedge,0: negedge
40
};
41
 
42
#endif // REG_TYPE_H

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.