1 | /*------------------------------------------------------------\ |
---|
2 | | | |
---|
3 | | Tool : systemcass | |
---|
4 | | | |
---|
5 | | File : internal.h | |
---|
6 | | | |
---|
7 | | Author : Buchmann Richard | |
---|
8 | | | |
---|
9 | | Date : 09_07_2004 | |
---|
10 | | | |
---|
11 | \------------------------------------------------------------*/ |
---|
12 | #ifndef __INTERNAL_H__ |
---|
13 | #define __INTERNAL_H__ |
---|
14 | |
---|
15 | #include "internal_ext.h" |
---|
16 | #include <map> |
---|
17 | |
---|
18 | namespace sc_core { |
---|
19 | |
---|
20 | // Method Process List |
---|
21 | extern method_process_t *method; |
---|
22 | extern method_process_list_t method_process_list; |
---|
23 | |
---|
24 | // Module Naming Stack |
---|
25 | typedef std::vector<std::string> module_name_stack_t; |
---|
26 | extern module_name_stack_t module_name_stack; |
---|
27 | |
---|
28 | // Hash Table Port -> Module |
---|
29 | typedef std::map</*const */sc_port_base*, const sc_module*> port2module_t; |
---|
30 | extern port2module_t port2module; |
---|
31 | |
---|
32 | // Functions for Elaboration step |
---|
33 | void sort_equi_list (); |
---|
34 | void create_signals_table (); |
---|
35 | void bind_to_table (); |
---|
36 | |
---|
37 | // Debug Functions |
---|
38 | void print_table (std::ostream&); |
---|
39 | void print_table_stats (std::ostream&); |
---|
40 | void print_registers_writing_stats (std::ostream&); |
---|
41 | |
---|
42 | extern bool is_clock (const sc_interface &inter); |
---|
43 | |
---|
44 | // Flags |
---|
45 | extern bool check_port_dependencies; |
---|
46 | extern bool dump_all_graph; |
---|
47 | extern const char* dump_module_hierarchy; |
---|
48 | extern bool dump_netlist_info; |
---|
49 | extern bool dump_funclist_info; |
---|
50 | extern bool dynamic_link_of_scheduling_code; |
---|
51 | extern bool keep_generated_code; |
---|
52 | extern bool nosimulation; |
---|
53 | extern bool notrace; |
---|
54 | extern bool print_user_resources; |
---|
55 | extern char* save_on_exit; |
---|
56 | extern int scheduling_method; |
---|
57 | extern bool use_port_dependency; |
---|
58 | |
---|
59 | #define NO_SCHEDULING 0 |
---|
60 | #define BUCHMANN_SCHEDULING 1 |
---|
61 | #define MOUCHARD_SCHEDULING 2 |
---|
62 | #define CASS_SCHEDULING 4 |
---|
63 | |
---|
64 | // More |
---|
65 | extern uint64 trace_start; |
---|
66 | } |
---|
67 | |
---|
68 | #endif |
---|
69 | |
---|