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