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

Subversion Repositories sc2v

[/] [sc2v/] [trunk/] [src/] [sc2v_step1.h] - Diff between revs 31 and 33

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 31 Rev 33
Line 34... Line 34...
  char name[MAX_NAME_LENGTH];
  char name[MAX_NAME_LENGTH];
  char name2[MAX_NAME_LENGTH];
  char name2[MAX_NAME_LENGTH];
  struct _RegNode *next;
  struct _RegNode *next;
} RegNode;
} RegNode;
 
 
 
/*Each struct has a name and a list of the registers declared inside it*/
 
typedef struct _StructRegNode
 
{
 
  char name[MAX_NAME_LENGTH];
 
  int length;
 
  struct _StructRegNode *next;
 
} StructRegNode;
 
 
 
typedef struct _StructNode
 
{
 
  char name[MAX_NAME_LENGTH];
 
  StructRegNode *list;
 
  struct _StructNode *next;
 
} StructNode;
 
 
/* Global var to store Regs */
/* Global var to store Regs */
  RegNode *regslist;
  RegNode *regslist;
/* Global var to store Defines */
/* Global var to store Defines */
  DefineNode *defineslist;
  DefineNode *defineslist;
 
/*Global var to store Structs */
 
  StructNode *structslist;
 
  StructRegNode *structsreglist;
 
 
/* Functions for defines list*/
/* Functions for defines list*/
DefineNode *InsertDefine(DefineNode *list,char *name);
DefineNode *InsertDefine(DefineNode *list,char *name);
int IsDefine(DefineNode *list,char *name);
int IsDefine(DefineNode *list,char *name);
 
 
/* Functions for registers list*/
/* Functions for registers list*/
RegNode *InsertReg(RegNode *list, char *name, char *name2);
RegNode *InsertReg(RegNode *list, char *name, char *name2);
char *IsReg (RegNode *list,char *name);
char *IsReg (RegNode *list,char *name);
 
 
 
/* Functions for structs list*/
 
StructNode *InsertStruct(StructNode *list, char *name, StructRegNode *reglist);
 
StructRegNode *InsertStructReg(StructRegNode *list, char *name, int length);
 
void ShowStructs (StructNode * list);
 
 
 
 
 
 
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

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