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 | #include <string> |
---|
18 | #include <vector> |
---|
19 | //#include <stdint.h> |
---|
20 | |
---|
21 | namespace sc_core { |
---|
22 | |
---|
23 | // Method Process List |
---|
24 | extern method_process_t * method; |
---|
25 | extern method_process_list_t method_process_list; |
---|
26 | |
---|
27 | // Module Naming Stack |
---|
28 | typedef std::vector<std::string> module_name_stack_t; |
---|
29 | extern module_name_stack_t module_name_stack; |
---|
30 | extern std::vector<const char *> allocated_names; |
---|
31 | |
---|
32 | // Hash Table Port -> Module |
---|
33 | typedef std::map</*const */sc_port_base *, const sc_module *> port2module_t; |
---|
34 | extern port2module_t port2module; |
---|
35 | |
---|
36 | // Functions for Elaboration step |
---|
37 | void sort_equi_list(); |
---|
38 | void create_signals_table(); |
---|
39 | void bind_to_table(); |
---|
40 | |
---|
41 | // Debug Functions |
---|
42 | void print_table(std::ostream&); |
---|
43 | void print_table_stats(std::ostream&); |
---|
44 | void print_registers_writing_stats(std::ostream&); |
---|
45 | |
---|
46 | extern bool is_clock(const sc_interface &inter); |
---|
47 | |
---|
48 | // Flags |
---|
49 | extern bool check_port_dependencies; |
---|
50 | extern bool dump_all_graph; |
---|
51 | extern const char * dump_module_hierarchy; |
---|
52 | extern bool dump_netlist_info; |
---|
53 | extern bool dump_funclist_info; |
---|
54 | extern bool dynamic_link_of_scheduling_code; |
---|
55 | extern bool keep_generated_code; |
---|
56 | extern bool nosimulation; |
---|
57 | extern bool notrace; |
---|
58 | extern bool print_user_resources; |
---|
59 | extern char * save_on_exit; |
---|
60 | extern int scheduling_method; |
---|
61 | extern bool use_port_dependency; |
---|
62 | extern bool use_openmp; |
---|
63 | |
---|
64 | #define NO_SCHEDULING 0 |
---|
65 | #define BUCHMANN_SCHEDULING 1 |
---|
66 | #define MOUCHARD_SCHEDULING 2 |
---|
67 | #define CASS_SCHEDULING 4 |
---|
68 | |
---|
69 | // More |
---|
70 | |
---|
71 | extern uint64 trace_start; |
---|
72 | |
---|
73 | } |
---|
74 | |
---|
75 | #endif |
---|
76 | |
---|