- Timestamp:
- May 28, 2007, 10:38:18 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Interface.h
r29 r31 26 26 #endif 27 27 #include "Include/ToString.h" 28 #include "Include/ErrorMorpheo.h" 28 29 #include "Include/Debug.h" 29 30 … … 35 36 class Interface 36 37 { 38 friend class Interfaces; 39 37 40 // -----[ fields ]---------------------------------------------------- 38 41 private : const string _name ; … … 40 43 private : const localisation_t _localisation ; 41 44 private : string _comment ; 42 private : list<Signal> _list_signal ; 45 46 #ifdef POSITION 47 private : bool _is_map ; 48 private : void * _entity_map ; // Entity -> erreur cyclique 49 private : void * _interface_map; // pour être homogène avec _entity_map 50 #endif 51 private : list<Signal> * _list_signal ; 43 52 44 53 // -----[ methods ]--------------------------------------------------- … … 47 56 localisation_t localisation); 48 57 58 public : Interface (const Interface & interface); 49 59 public : ~Interface (); 50 60 51 61 public : void set_comment (string comment); 52 p ublic: string get_comment (void );62 private : string get_comment (void ); 53 63 54 p ublic : string set_signal (Signal signal);55 public : stringset_signal (string name ,64 private : string get_signal (void); 65 public : Signal * set_signal (string name , 56 66 direction_t direction, 57 67 uint32_t size , … … 63 73 presence_port_t presence_port=PORT_VHDL_YES_TESTBENCH_YES) 64 74 { 65 string str= set_signal (name, IN , size, presence_port);66 sc_in_clk * signal = new sc_in_clk (s tr.c_str());75 Signal * sig = set_signal (name, IN , size, presence_port); 76 sc_in_clk * signal = new sc_in_clk (sig->_name.c_str()); 67 77 return signal; 68 78 }; … … 73 83 presence_port_t presence_port=PORT_VHDL_YES_TESTBENCH_YES) 74 84 { 75 string str= set_signal (name, IN , size, presence_port);76 sc_in <T> * signal = new sc_in <T> (s tr.c_str());85 Signal * sig = set_signal (name, IN , size, presence_port); 86 sc_in <T> * signal = new sc_in <T> (sig->_name.c_str()); 77 87 return signal; 78 88 }; … … 83 93 presence_port_t presence_port=PORT_VHDL_YES_TESTBENCH_YES) 84 94 { 85 string str= set_signal (name, OUT , size, presence_port);86 sc_out <T> * signal = new sc_out <T> (s tr.c_str());95 Signal * sig = set_signal (name, OUT , size, presence_port); 96 sc_out <T> * signal = new sc_out <T> (sig->_name.c_str()); 87 97 return signal; 88 98 }; 89 99 #endif 90 91 public : string get_signal (void);92 100 93 101 #ifdef VHDL … … 98 106 #endif 99 107 108 #ifdef POSITION 109 public : void port_map (void * entity, 110 void * interface); 111 #endif 112 100 113 public : XML toXML (void); 101 114 #ifdef POSITION 115 public : XML toXML_mapping (void); 116 #endif 102 117 public : friend ostream& operator<< (ostream& output_stream, 103 118 morpheo::behavioural::Interface & x);
Note: See TracChangeset
for help on using the changeset viewer.