Verilog Parser

Represents generate loops. More...

Data Structures

struct  ast_generate_block
 Simple wrapper and placeholder for generate associated meta-data. More...
 

Functions

ast_generate_block * ast_new_generate_block (ast_identifier identifier, ast_list *generate_items)
 Creates and returns a new block of generate items.
 
ast_statement * ast_new_generate_item (ast_statement_type type, void *construct)
 Creates and returns a new item which exists inside a generate statement. More...
 

Detailed Description

Represents generate loops.

Function Documentation

ast_statement* ast_new_generate_item ( ast_statement_type  type,
void *  construct 
)

Creates and returns a new item which exists inside a generate statement.

Note
the void* type of the construct parameter allows for a single constructor function rather than one per member of the union inside the ast_generate_item structure.

Wraps around ast_new_statement and sets appropriate internal flags to represent this as a statment in a generate block.

Note
the void* type of the construct parameter allows for a single constructor function rather than one per member of the union inside the ast_generate_item structure.