Verilog Parser
verilog_ast_util.h
1 
7 #include <assert.h>
8 #include <stdio.h>
9 
10 #include "verilog_ast.h"
11 
12 #ifndef VERILOG_AST_UTIL_H
13 #define VERILOG_AST_UTIL_H
14 
27  verilog_source_tree * source
28 );
29 
36 ast_module_declaration * verilog_find_module_declaration(
37  verilog_source_tree * source,
38  ast_identifier module_name
39 );
40 
41 // -------------------------------------------------------------------------
42 
43 
56  ast_module_declaration * module
57 );
58 
59 
69  verilog_source_tree * source
70 );
71 
74 #endif
Top level container for parsed source code.
Definition: verilog_ast.h:3272
ast_list * verilog_module_get_children(ast_module_declaration *module)
Returns a list of module declarations, representing the different types of module which this parent i...
Definition: verilog_ast_util.c:109
void verilog_resolve_modules(verilog_source_tree *source)
searches across an entire verilog source tree, resolving module identifiers to their declarations...
Definition: verilog_ast_util.c:42
Contains Declarations of datastructures and functions which represent and operate on the Verilog Abst...
A hash table object.
Definition: verilog_ast_common.h:209
ast_module_declaration * verilog_find_module_declaration(verilog_source_tree *source, ast_identifier module_name)
Searches the list of modules in the parsed source tree, returning the one that matches the passed ide...
Definition: verilog_ast_util.c:19
Container struct for the linked list data structure.
Definition: verilog_ast_common.h:41
ast_hashtable * verilog_modules_get_children(verilog_source_tree *source)
Finds the child modules for all modules in a source tree.
Definition: verilog_ast_util.c:165