Line 1... |
Line 1... |
/* -----------------------------------------------------------------------------
|
/* -----------------------------------------------------------------------------
|
*
|
*
|
* SystemC to Verilog Translator v0.3
|
* SystemC to Verilog Translator v0.4
|
* Provided by OpenSoc Design
|
* Provided by OpenSoc Design
|
*
|
*
|
* www.opensocdesign.com
|
* www.opensocdesign.com
|
*
|
*
|
* -----------------------------------------------------------------------------
|
* -----------------------------------------------------------------------------
|
Line 59... |
Line 59... |
char namemodulo[MAX_NAME_LENGTH];
|
char namemodulo[MAX_NAME_LENGTH];
|
BindNode *bindslist;
|
BindNode *bindslist;
|
struct _instance_node *next;
|
struct _instance_node *next;
|
} InstanceNode;
|
} InstanceNode;
|
|
|
|
typedef struct _funcinput_node
|
|
{
|
|
int lenght;
|
|
char name[MAX_NAME_LENGTH];
|
|
struct _funcinput_node *next;
|
|
} FunctionInputNode;
|
|
|
|
|
|
typedef struct _function_node
|
|
{
|
|
char name[MAX_NAME_LENGTH];
|
|
int outputlenght;
|
|
FunctionInputNode *list;
|
|
struct _function_node *next;
|
|
} FunctionNode;
|
|
|
typedef struct _sensibility_node
|
typedef struct _sensibility_node
|
{
|
{
|
char tipo[MAX_NAME_LENGTH];
|
char tipo[MAX_NAME_LENGTH];
|
char name[MAX_NAME_LENGTH];
|
char name[MAX_NAME_LENGTH];
|
struct _sensibility_node *next;
|
struct _sensibility_node *next;
|
Line 105... |
Line 121... |
/* Global var to store instantiated modules*/
|
/* Global var to store instantiated modules*/
|
InstanceNode *instanceslist;
|
InstanceNode *instanceslist;
|
/*List of enumerates*/
|
/*List of enumerates*/
|
EnumeratesNode *enumerateslist;
|
EnumeratesNode *enumerateslist;
|
EnumListNode *enumlistlist;
|
EnumListNode *enumlistlist;
|
|
/* Global var to store functions inputs list*/
|
|
FunctionInputNode *funcinputslist;
|
|
/* Global var to store process list*/
|
|
FunctionNode *functionslist;
|
|
|
|
|
|
|
/* Functions for DEFINES list*/
|
/* Functions for DEFINES list*/
|
void ShowDefines (char *filedefines);
|
void ShowDefines (char *filedefines);
|
|
|
/* Functions for WRITES list*/
|
/* Functions for WRITES list*/
|
Line 148... |
Line 170... |
EnumListNode *InsertEnumList (EnumListNode * list, EnumeratesNode * enumlist,char *name, int istype);
|
EnumListNode *InsertEnumList (EnumListNode * list, EnumeratesNode * enumlist,char *name, int istype);
|
void ShowEnumListList (EnumListNode * list);
|
void ShowEnumListList (EnumListNode * list);
|
int findEnumList (EnumListNode * list, char *name);
|
int findEnumList (EnumListNode * list, char *name);
|
int findEnumerateLength (EnumListNode * list, int offset);
|
int findEnumerateLength (EnumListNode * list, int offset);
|
|
|
No newline at end of file
|
No newline at end of file
|
|
/* Functions for functions inputs list*/
|
|
FunctionInputNode *InsertFunctionInput (FunctionInputNode * list, char *name, int lenght);
|
|
void ShowFunctionInputs (FunctionInputNode * list);
|
|
|
|
/* Functions for functions list*/
|
|
FunctionNode *InsertFunction (FunctionNode *list, char *name,FunctionInputNode *InputsList,int outputlenght);
|
|
void ShowFunctionCode (FunctionNode *list);
|
|
|
No newline at end of file
|
No newline at end of file
|