|
|
|
@ -118,7 +118,7 @@ LEGAL NOTICES:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%pure-parser
|
|
|
|
|
%parse-param {urj_bsdl_vhdl_parser_priv_t *priv_data}
|
|
|
|
|
%parse-param {urj_vhdl_parser_priv_t *priv_data}
|
|
|
|
|
%defines
|
|
|
|
|
%name-prefix="urj_vhdl_"
|
|
|
|
|
|
|
|
|
@ -164,25 +164,25 @@ int yylex (YYSTYPE *, void *);
|
|
|
|
|
} while (0)
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
static void Init_Text (urj_bsdl_vhdl_parser_priv_t *);
|
|
|
|
|
static void Store_Text (urj_bsdl_vhdl_parser_priv_t *, char *);
|
|
|
|
|
static void Print_Error (urj_bsdl_vhdl_parser_priv_t *, const char *);
|
|
|
|
|
static void Give_Up_And_Quit (urj_bsdl_vhdl_parser_priv_t *);
|
|
|
|
|
static void Init_Text (urj_vhdl_parser_priv_t *);
|
|
|
|
|
static void Store_Text (urj_vhdl_parser_priv_t *, char *);
|
|
|
|
|
static void Print_Error (urj_vhdl_parser_priv_t *, const char *);
|
|
|
|
|
static void Give_Up_And_Quit (urj_vhdl_parser_priv_t *);
|
|
|
|
|
|
|
|
|
|
/* VHDL semantic action interface */
|
|
|
|
|
static void urj_vhdl_set_entity (urj_bsdl_vhdl_parser_priv_t *, char *);
|
|
|
|
|
static void urj_vhdl_port_add_name (urj_bsdl_vhdl_parser_priv_t *, char *);
|
|
|
|
|
static void urj_vhdl_port_add_bit (urj_bsdl_vhdl_parser_priv_t *);
|
|
|
|
|
static void urj_vhdl_port_add_range (urj_bsdl_vhdl_parser_priv_t *, int, int);
|
|
|
|
|
static void urj_vhdl_port_apply_port (urj_bsdl_vhdl_parser_priv_t *);
|
|
|
|
|
|
|
|
|
|
//static void set_attr_bool (urj_bsdl_vhdl_parser_priv_t *, char *, int);
|
|
|
|
|
static void set_attr_decimal (urj_bsdl_vhdl_parser_priv_t *, char *, int);
|
|
|
|
|
static void set_attr_string (urj_bsdl_vhdl_parser_priv_t *, char *, char *);
|
|
|
|
|
//static void set_attr_real (urj_bsdl_vhdl_parser_priv_t *, char *, char *);
|
|
|
|
|
//static void set_attr_const (urj_bsdl_vhdl_parser_priv_t *, char *, char *);
|
|
|
|
|
|
|
|
|
|
void yyerror (urj_bsdl_vhdl_parser_priv_t *, const char *);
|
|
|
|
|
static void urj_vhdl_set_entity (urj_vhdl_parser_priv_t *, char *);
|
|
|
|
|
static void urj_vhdl_port_add_name (urj_vhdl_parser_priv_t *, char *);
|
|
|
|
|
static void urj_vhdl_port_add_bit (urj_vhdl_parser_priv_t *);
|
|
|
|
|
static void urj_vhdl_port_add_range (urj_vhdl_parser_priv_t *, int, int);
|
|
|
|
|
static void urj_vhdl_port_apply_port (urj_vhdl_parser_priv_t *);
|
|
|
|
|
|
|
|
|
|
//static void set_attr_bool (urj_vhdl_parser_priv_t *, char *, int);
|
|
|
|
|
static void set_attr_decimal (urj_vhdl_parser_priv_t *, char *, int);
|
|
|
|
|
static void set_attr_string (urj_vhdl_parser_priv_t *, char *, char *);
|
|
|
|
|
//static void set_attr_real (urj_vhdl_parser_priv_t *, char *, char *);
|
|
|
|
|
//static void set_attr_const (urj_vhdl_parser_priv_t *, char *, char *);
|
|
|
|
|
|
|
|
|
|
void yyerror (urj_vhdl_parser_priv_t *, const char *);
|
|
|
|
|
%}
|
|
|
|
|
|
|
|
|
|
%union
|
|
|
|
@ -600,7 +600,7 @@ ISC_Package_Body : PACKAGE BODY ISC_Packages IS
|
|
|
|
|
;
|
|
|
|
|
%% /* End rules, begin programs */
|
|
|
|
|
/*****************************************************************************
|
|
|
|
|
* void Init_Text( urj_bsdl_vhdl_parser_priv_t *priv )
|
|
|
|
|
* void Init_Text( urj_vhdl_parser_priv_t *priv )
|
|
|
|
|
*
|
|
|
|
|
* Allocates the internal test buffer if not already existing.
|
|
|
|
|
*
|
|
|
|
@ -611,7 +611,7 @@ ISC_Package_Body : PACKAGE BODY ISC_Packages IS
|
|
|
|
|
* void
|
|
|
|
|
****************************************************************************/
|
|
|
|
|
static void
|
|
|
|
|
Init_Text (urj_bsdl_vhdl_parser_priv_t *priv)
|
|
|
|
|
Init_Text (urj_vhdl_parser_priv_t *priv)
|
|
|
|
|
{
|
|
|
|
|
if (priv->len_buffer == 0)
|
|
|
|
|
{
|
|
|
|
@ -624,7 +624,7 @@ Init_Text (urj_bsdl_vhdl_parser_priv_t *priv)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
|
* void Store_Text( urj_bsdl_vhdl_parser_priv_t *priv, char *Source )
|
|
|
|
|
* void Store_Text( urj_vhdl_parser_priv_t *priv, char *Source )
|
|
|
|
|
*
|
|
|
|
|
* Appends the given String to the internal text buffer. The buffer
|
|
|
|
|
* is extended if the string does not fit into the current size.
|
|
|
|
@ -637,7 +637,7 @@ Init_Text (urj_bsdl_vhdl_parser_priv_t *priv)
|
|
|
|
|
* void
|
|
|
|
|
****************************************************************************/
|
|
|
|
|
static void
|
|
|
|
|
Store_Text (urj_bsdl_vhdl_parser_priv_t *priv, char *Source)
|
|
|
|
|
Store_Text (urj_vhdl_parser_priv_t *priv, char *Source)
|
|
|
|
|
{ /* Save characters from VHDL string in local string buffer. */
|
|
|
|
|
size_t req_len;
|
|
|
|
|
char *SourceEnd;
|
|
|
|
@ -660,7 +660,7 @@ Store_Text (urj_bsdl_vhdl_parser_priv_t *priv, char *Source)
|
|
|
|
|
|
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
|
static void
|
|
|
|
|
Print_Error (urj_bsdl_vhdl_parser_priv_t *priv_data, const char *Errmess)
|
|
|
|
|
Print_Error (urj_vhdl_parser_priv_t *priv_data, const char *Errmess)
|
|
|
|
|
{
|
|
|
|
|
urj_bsdl_jtag_ctrl_t *jc = priv_data->jtag_ctrl;
|
|
|
|
|
|
|
|
|
@ -677,20 +677,20 @@ Print_Error (urj_bsdl_vhdl_parser_priv_t *priv_data, const char *Errmess)
|
|
|
|
|
|
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
|
static void
|
|
|
|
|
Give_Up_And_Quit (urj_bsdl_vhdl_parser_priv_t *priv_data)
|
|
|
|
|
Give_Up_And_Quit (urj_vhdl_parser_priv_t *priv_data)
|
|
|
|
|
{
|
|
|
|
|
Print_Error (priv_data, _("Too many errors"));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
|
void
|
|
|
|
|
yyerror (urj_bsdl_vhdl_parser_priv_t *priv_data, const char *error_string)
|
|
|
|
|
yyerror (urj_vhdl_parser_priv_t *priv_data, const char *error_string)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
|
* void urj_vhdl_sem_init( urj_bsdl_vhdl_parser_priv_t *priv )
|
|
|
|
|
* void urj_vhdl_sem_init( urj_vhdl_parser_priv_t *priv )
|
|
|
|
|
*
|
|
|
|
|
* Initializes storage elements in the private parser and jtag control
|
|
|
|
|
* structures that are used for semantic purposes.
|
|
|
|
@ -702,7 +702,7 @@ yyerror (urj_bsdl_vhdl_parser_priv_t *priv_data, const char *error_string)
|
|
|
|
|
* void
|
|
|
|
|
****************************************************************************/
|
|
|
|
|
static void
|
|
|
|
|
urj_vhdl_sem_init (urj_bsdl_vhdl_parser_priv_t *priv)
|
|
|
|
|
urj_vhdl_sem_init (urj_vhdl_parser_priv_t *priv)
|
|
|
|
|
{
|
|
|
|
|
priv->tmp_port_desc.names_list = NULL;
|
|
|
|
|
priv->tmp_port_desc.next = NULL;
|
|
|
|
@ -765,7 +765,7 @@ free_port_list (urj_bsdl_port_desc_t *pl, int free_me)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
|
* void free_elem_list( urj_bsdl_vhdl_elem_t *el )
|
|
|
|
|
* void free_elem_list( urj_vhdl_elem_t *el )
|
|
|
|
|
*
|
|
|
|
|
* Deallocates the given list of vhdl_elem items.
|
|
|
|
|
*
|
|
|
|
@ -776,7 +776,7 @@ free_port_list (urj_bsdl_port_desc_t *pl, int free_me)
|
|
|
|
|
* void
|
|
|
|
|
****************************************************************************/
|
|
|
|
|
static void
|
|
|
|
|
free_elem_list (urj_bsdl_vhdl_elem_t *el)
|
|
|
|
|
free_elem_list (urj_vhdl_elem_t *el)
|
|
|
|
|
{
|
|
|
|
|
if (el)
|
|
|
|
|
{
|
|
|
|
@ -793,7 +793,7 @@ free_elem_list (urj_bsdl_vhdl_elem_t *el)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
|
* void urj_vhdl_sem_deinit( urj_bsdl_vhdl_parser_priv_t *priv )
|
|
|
|
|
* void urj_vhdl_sem_deinit( urj_vhdl_parser_priv_t *priv )
|
|
|
|
|
*
|
|
|
|
|
* Frees and deinitializes storage elements in the private parser and
|
|
|
|
|
* jtag control structures that were filled by semantic rules.
|
|
|
|
@ -805,10 +805,10 @@ free_elem_list (urj_bsdl_vhdl_elem_t *el)
|
|
|
|
|
* void
|
|
|
|
|
****************************************************************************/
|
|
|
|
|
static void
|
|
|
|
|
urj_vhdl_sem_deinit (urj_bsdl_vhdl_parser_priv_t *priv_data)
|
|
|
|
|
urj_vhdl_sem_deinit (urj_vhdl_parser_priv_t *priv_data)
|
|
|
|
|
{
|
|
|
|
|
urj_bsdl_port_desc_t *pd = priv_data->jtag_ctrl->port_desc;
|
|
|
|
|
urj_bsdl_vhdl_elem_t *el = priv_data->jtag_ctrl->vhdl_elem_first;
|
|
|
|
|
urj_vhdl_elem_t *el = priv_data->jtag_ctrl->vhdl_elem_first;
|
|
|
|
|
|
|
|
|
|
/* free port_desc list */
|
|
|
|
|
free_port_list (pd, 1);
|
|
|
|
@ -822,7 +822,7 @@ urj_vhdl_sem_deinit (urj_bsdl_vhdl_parser_priv_t *priv_data)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
|
* urj_bsdl_vhdl_parser_priv_t *urj_vhdl_parser_init( FILE *f, urj_bsdl_jtag_ctrl_t *jtag_ctrl )
|
|
|
|
|
* urj_vhdl_parser_priv_t *urj_vhdl_parser_init( FILE *f, urj_bsdl_jtag_ctrl_t *jtag_ctrl )
|
|
|
|
|
*
|
|
|
|
|
* Initializes storage elements in the private parser structure that are
|
|
|
|
|
* used for parser maintenance purposes.
|
|
|
|
@ -836,12 +836,12 @@ urj_vhdl_sem_deinit (urj_bsdl_vhdl_parser_priv_t *priv_data)
|
|
|
|
|
* Returns
|
|
|
|
|
* pointer to private parser structure
|
|
|
|
|
****************************************************************************/
|
|
|
|
|
urj_bsdl_vhdl_parser_priv_t *
|
|
|
|
|
urj_vhdl_parser_priv_t *
|
|
|
|
|
urj_vhdl_parser_init (FILE *f, urj_bsdl_jtag_ctrl_t *jtag_ctrl)
|
|
|
|
|
{
|
|
|
|
|
urj_bsdl_vhdl_parser_priv_t *new_priv;
|
|
|
|
|
urj_vhdl_parser_priv_t *new_priv;
|
|
|
|
|
|
|
|
|
|
if (!(new_priv = malloc (sizeof (urj_bsdl_vhdl_parser_priv_t))))
|
|
|
|
|
if (!(new_priv = malloc (sizeof (urj_vhdl_parser_priv_t))))
|
|
|
|
|
{
|
|
|
|
|
urj_bsdl_msg (jtag_ctrl->proc_mode,
|
|
|
|
|
BSDL_MSG_ERR, _("Out of memory, %s line %i\n"),
|
|
|
|
@ -868,7 +868,7 @@ urj_vhdl_parser_init (FILE *f, urj_bsdl_jtag_ctrl_t *jtag_ctrl)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
|
* void urj_vhdl_parser_deinit( urj_bsdl_vhdl_parser_priv_t *priv )
|
|
|
|
|
* void urj_vhdl_parser_deinit( urj_vhdl_parser_priv_t *priv )
|
|
|
|
|
*
|
|
|
|
|
* Frees storage elements in the private parser structure that are
|
|
|
|
|
* used for parser maintenance purposes.
|
|
|
|
@ -882,7 +882,7 @@ urj_vhdl_parser_init (FILE *f, urj_bsdl_jtag_ctrl_t *jtag_ctrl)
|
|
|
|
|
* void
|
|
|
|
|
****************************************************************************/
|
|
|
|
|
void
|
|
|
|
|
urj_vhdl_parser_deinit (urj_bsdl_vhdl_parser_priv_t *priv_data)
|
|
|
|
|
urj_vhdl_parser_deinit (urj_vhdl_parser_priv_t *priv_data)
|
|
|
|
|
{
|
|
|
|
|
if (priv_data->buffer)
|
|
|
|
|
{
|
|
|
|
@ -896,7 +896,7 @@ urj_vhdl_parser_deinit (urj_bsdl_vhdl_parser_priv_t *priv_data)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
|
* void urj_vhdl_set_entity( urj_bsdl_vhdl_parser_priv_t *priv, char *entityname )
|
|
|
|
|
* void urj_vhdl_set_entity( urj_vhdl_parser_priv_t *priv, char *entityname )
|
|
|
|
|
*
|
|
|
|
|
* Applies the entity name from BSDL as the part name.
|
|
|
|
|
*
|
|
|
|
@ -908,7 +908,7 @@ urj_vhdl_parser_deinit (urj_bsdl_vhdl_parser_priv_t *priv_data)
|
|
|
|
|
* void
|
|
|
|
|
****************************************************************************/
|
|
|
|
|
static void
|
|
|
|
|
urj_vhdl_set_entity (urj_bsdl_vhdl_parser_priv_t *priv, char *entityname)
|
|
|
|
|
urj_vhdl_set_entity (urj_vhdl_parser_priv_t *priv, char *entityname)
|
|
|
|
|
{
|
|
|
|
|
if (priv->jtag_ctrl->proc_mode & URJ_BSDL_MODE_INSTR_EXEC)
|
|
|
|
|
{
|
|
|
|
@ -921,7 +921,7 @@ urj_vhdl_set_entity (urj_bsdl_vhdl_parser_priv_t *priv, char *entityname)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
|
* void urj_vhdl_port_add_name( urj_bsdl_vhdl_parser_priv_t *priv, char *name )
|
|
|
|
|
* void urj_vhdl_port_add_name( urj_vhdl_parser_priv_t *priv, char *name )
|
|
|
|
|
* Port name management function
|
|
|
|
|
*
|
|
|
|
|
* Sets the name field of the temporary storage area for port description
|
|
|
|
@ -935,7 +935,7 @@ urj_vhdl_set_entity (urj_bsdl_vhdl_parser_priv_t *priv, char *entityname)
|
|
|
|
|
* void
|
|
|
|
|
****************************************************************************/
|
|
|
|
|
static void
|
|
|
|
|
urj_vhdl_port_add_name (urj_bsdl_vhdl_parser_priv_t *priv, char *name)
|
|
|
|
|
urj_vhdl_port_add_name (urj_vhdl_parser_priv_t *priv, char *name)
|
|
|
|
|
{
|
|
|
|
|
urj_bsdl_port_desc_t *pd = &(priv->tmp_port_desc);
|
|
|
|
|
urj_bsdl_string_elem_t *new_string;
|
|
|
|
@ -956,7 +956,7 @@ urj_vhdl_port_add_name (urj_bsdl_vhdl_parser_priv_t *priv, char *name)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
|
* void urj_vhdl_port_add_bit( urj_bsdl_vhdl_parser_priv_t *priv )
|
|
|
|
|
* void urj_vhdl_port_add_bit( urj_vhdl_parser_priv_t *priv )
|
|
|
|
|
* Port name management function
|
|
|
|
|
*
|
|
|
|
|
* Sets the vector and index fields of the temporary storage area for port
|
|
|
|
@ -970,7 +970,7 @@ urj_vhdl_port_add_name (urj_bsdl_vhdl_parser_priv_t *priv, char *name)
|
|
|
|
|
* void
|
|
|
|
|
****************************************************************************/
|
|
|
|
|
static void
|
|
|
|
|
urj_vhdl_port_add_bit (urj_bsdl_vhdl_parser_priv_t *priv)
|
|
|
|
|
urj_vhdl_port_add_bit (urj_vhdl_parser_priv_t *priv)
|
|
|
|
|
{
|
|
|
|
|
urj_bsdl_port_desc_t *pd = &(priv->tmp_port_desc);
|
|
|
|
|
|
|
|
|
@ -981,7 +981,7 @@ urj_vhdl_port_add_bit (urj_bsdl_vhdl_parser_priv_t *priv)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
|
* void urj_vhdl_port_add_range( urj_bsdl_vhdl_parser_priv_t *priv, int low, int high )
|
|
|
|
|
* void urj_vhdl_port_add_range( urj_vhdl_parser_priv_t *priv, int low, int high )
|
|
|
|
|
* Port name management function
|
|
|
|
|
*
|
|
|
|
|
* Sets the vector and index fields of the temporary storage area for port
|
|
|
|
@ -996,7 +996,7 @@ urj_vhdl_port_add_bit (urj_bsdl_vhdl_parser_priv_t *priv)
|
|
|
|
|
* void
|
|
|
|
|
****************************************************************************/
|
|
|
|
|
static void
|
|
|
|
|
urj_vhdl_port_add_range (urj_bsdl_vhdl_parser_priv_t *priv, int low,
|
|
|
|
|
urj_vhdl_port_add_range (urj_vhdl_parser_priv_t *priv, int low,
|
|
|
|
|
int high)
|
|
|
|
|
{
|
|
|
|
|
urj_bsdl_port_desc_t *pd = &(priv->tmp_port_desc);
|
|
|
|
@ -1007,7 +1007,7 @@ urj_vhdl_port_add_range (urj_bsdl_vhdl_parser_priv_t *priv, int low,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
|
* void urj_vhdl_port_apply_port( urj_bsdl_vhdl_parser_priv_t *priv )
|
|
|
|
|
* void urj_vhdl_port_apply_port( urj_vhdl_parser_priv_t *priv )
|
|
|
|
|
* Port name management function
|
|
|
|
|
*
|
|
|
|
|
* Applies the current temporary port description to the final list
|
|
|
|
@ -1020,7 +1020,7 @@ urj_vhdl_port_add_range (urj_bsdl_vhdl_parser_priv_t *priv, int low,
|
|
|
|
|
* void
|
|
|
|
|
****************************************************************************/
|
|
|
|
|
static void
|
|
|
|
|
urj_vhdl_port_apply_port (urj_bsdl_vhdl_parser_priv_t *priv)
|
|
|
|
|
urj_vhdl_port_apply_port (urj_vhdl_parser_priv_t *priv)
|
|
|
|
|
{
|
|
|
|
|
urj_bsdl_port_desc_t *tmp_pd = &(priv->tmp_port_desc);
|
|
|
|
|
urj_bsdl_port_desc_t *pd = malloc (sizeof (urj_bsdl_port_desc_t));
|
|
|
|
@ -1048,7 +1048,7 @@ urj_vhdl_port_apply_port (urj_bsdl_vhdl_parser_priv_t *priv)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static void
|
|
|
|
|
add_elem (urj_bsdl_vhdl_parser_priv_t *priv, urj_bsdl_vhdl_elem_t *el)
|
|
|
|
|
add_elem (urj_vhdl_parser_priv_t *priv, urj_vhdl_elem_t *el)
|
|
|
|
|
{
|
|
|
|
|
urj_bsdl_jtag_ctrl_t *jc = priv->jtag_ctrl;
|
|
|
|
|
|
|
|
|
@ -1065,9 +1065,9 @@ add_elem (urj_bsdl_vhdl_parser_priv_t *priv, urj_bsdl_vhdl_elem_t *el)
|
|
|
|
|
|
|
|
|
|
#if 0
|
|
|
|
|
static void
|
|
|
|
|
set_attr_bool (urj_bsdl_vhdl_parser_priv_t *priv, char *name, int value)
|
|
|
|
|
set_attr_bool (urj_vhdl_parser_priv_t *priv, char *name, int value)
|
|
|
|
|
{
|
|
|
|
|
urj_bsdl_vhdl_elem_t *el = malloc (sizeof (urj_bsdl_vhdl_elem_t));
|
|
|
|
|
urj_vhdl_elem_t *el = malloc (sizeof (urj_vhdl_elem_t));
|
|
|
|
|
|
|
|
|
|
if (el)
|
|
|
|
|
{
|
|
|
|
@ -1084,9 +1084,9 @@ set_attr_bool (urj_bsdl_vhdl_parser_priv_t *priv, char *name, int value)
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
static void
|
|
|
|
|
set_attr_decimal (urj_bsdl_vhdl_parser_priv_t *priv, char *name, int value)
|
|
|
|
|
set_attr_decimal (urj_vhdl_parser_priv_t *priv, char *name, int value)
|
|
|
|
|
{
|
|
|
|
|
urj_bsdl_vhdl_elem_t *el = malloc (sizeof (urj_bsdl_vhdl_elem_t));
|
|
|
|
|
urj_vhdl_elem_t *el = malloc (sizeof (urj_vhdl_elem_t));
|
|
|
|
|
char *string = malloc (10);
|
|
|
|
|
|
|
|
|
|
if (el && string)
|
|
|
|
@ -1105,9 +1105,9 @@ set_attr_decimal (urj_bsdl_vhdl_parser_priv_t *priv, char *name, int value)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static void
|
|
|
|
|
set_attr_string (urj_bsdl_vhdl_parser_priv_t *priv, char *name, char *string)
|
|
|
|
|
set_attr_string (urj_vhdl_parser_priv_t *priv, char *name, char *string)
|
|
|
|
|
{
|
|
|
|
|
urj_bsdl_vhdl_elem_t *el = malloc (sizeof (urj_bsdl_vhdl_elem_t));
|
|
|
|
|
urj_vhdl_elem_t *el = malloc (sizeof (urj_vhdl_elem_t));
|
|
|
|
|
|
|
|
|
|
/* skip certain attributes */
|
|
|
|
|
if ((strcasecmp (name, "DESIGN_WARNING") == 0)
|
|
|
|
@ -1138,9 +1138,9 @@ set_attr_string (urj_bsdl_vhdl_parser_priv_t *priv, char *name, char *string)
|
|
|
|
|
|
|
|
|
|
#if 0
|
|
|
|
|
static void
|
|
|
|
|
set_attr_real (urj_bsdl_vhdl_parser_priv_t *priv, char *name, char *string)
|
|
|
|
|
set_attr_real (urj_vhdl_parser_priv_t *priv, char *name, char *string)
|
|
|
|
|
{
|
|
|
|
|
urj_bsdl_vhdl_elem_t *el = malloc (sizeof (urj_bsdl_vhdl_elem_t));
|
|
|
|
|
urj_vhdl_elem_t *el = malloc (sizeof (urj_vhdl_elem_t));
|
|
|
|
|
|
|
|
|
|
if (el)
|
|
|
|
|
{
|
|
|
|
@ -1158,9 +1158,9 @@ set_attr_real (urj_bsdl_vhdl_parser_priv_t *priv, char *name, char *string)
|
|
|
|
|
|
|
|
|
|
#if 0
|
|
|
|
|
static void
|
|
|
|
|
set_attr_const (urj_bsdl_vhdl_parser_priv_t *priv, char *name, char *string)
|
|
|
|
|
set_attr_const (urj_vhdl_parser_priv_t *priv, char *name, char *string)
|
|
|
|
|
{
|
|
|
|
|
urj_bsdl_vhdl_elem_t *el = malloc (sizeof (urj_bsdl_vhdl_elem_t));
|
|
|
|
|
urj_vhdl_elem_t *el = malloc (sizeof (urj_vhdl_elem_t));
|
|
|
|
|
|
|
|
|
|
if (el)
|
|
|
|
|
{
|
|
|
|
|