[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> |
---|
[59] | 19 | //#include <stdint.h> |
---|
[1] | 20 | |
---|
| 21 | namespace sc_core { |
---|
| 22 | |
---|
| 23 | // Method Process List |
---|
[52] | 24 | extern method_process_t * method; |
---|
[1] | 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; |
---|
[59] | 30 | extern std::vector<const char *> allocated_names; |
---|
[1] | 31 | |
---|
| 32 | // Hash Table Port -> Module |
---|
[52] | 33 | typedef std::map</*const */sc_port_base *, const sc_module *> port2module_t; |
---|
[1] | 34 | extern port2module_t port2module; |
---|
| 35 | |
---|
| 36 | // Functions for Elaboration step |
---|
[52] | 37 | void sort_equi_list(); |
---|
| 38 | void create_signals_table(); |
---|
| 39 | void bind_to_table(); |
---|
[1] | 40 | |
---|
| 41 | // Debug Functions |
---|
[52] | 42 | void print_table(std::ostream&); |
---|
| 43 | void print_table_stats(std::ostream&); |
---|
| 44 | void print_registers_writing_stats(std::ostream&); |
---|
[1] | 45 | |
---|
[52] | 46 | extern bool is_clock(const sc_interface &inter); |
---|
[1] | 47 | |
---|
| 48 | // Flags |
---|
[52] | 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; |
---|
[1] | 63 | |
---|
[52] | 64 | #define NO_SCHEDULING 0 |
---|
| 65 | #define BUCHMANN_SCHEDULING 1 |
---|
| 66 | #define MOUCHARD_SCHEDULING 2 |
---|
| 67 | #define CASS_SCHEDULING 4 |
---|
[1] | 68 | |
---|
| 69 | // More |
---|
[52] | 70 | |
---|
[1] | 71 | extern uint64 trace_start; |
---|
[52] | 72 | |
---|
[1] | 73 | } |
---|
| 74 | |
---|
| 75 | #endif |
---|
| 76 | |
---|