Changeset 88 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Multi_Banked/src/RegisterFile_Multi_Banked_allocation.cpp
- Timestamp:
- Dec 10, 2008, 7:31:39 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Multi_Banked/src/RegisterFile_Multi_Banked_allocation.cpp
r82 r88 1 #ifdef SYSTEMC2 1 /* 3 2 * $Id$ 4 3 * 5 * [ 4 * [ Description ] 6 5 * 7 6 */ … … 31 30 _interfaces = entity->set_interfaces(); 32 31 33 // ~~~~~[ 32 // ~~~~~[ Interface : "" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 34 33 35 34 Interface * interface = _interfaces->set_interface("" … … 44 43 in_NRESET = interface->set_signal_in <Tcontrol_t> ("nreset",1, RESET_VHDL_YES); 45 44 46 // ~~~~~[ 45 // ~~~~~[ Interface : "read" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 47 46 48 47 in_READ_VAL = new SC_IN (Tcontrol_t) * [_param->_nb_port_read]; … … 69 68 } 70 69 71 // ~~~~~[ 70 // ~~~~~[ Interface : "write" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 72 71 73 72 in_WRITE_VAL = new SC_IN (Tcontrol_t) * [_param->_nb_port_write]; … … 94 93 } 95 94 96 // ~~~~~[ Registers ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 95 if (usage_is_set(_usage,USE_SYSTEMC)) 96 { 97 // ~~~~~[ Registers ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 97 98 98 99 reg_DATA = new Tdata_t * [_param->_nb_bank]; … … 103 104 } 104 105 105 // ~~~~~[ 106 // ~~~~~[ Internal ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 106 107 internal_WRITE_VAL = new bool [_param->_nb_port_write]; 107 108 internal_WRITE_BANK = new Taddress_t [_param->_nb_port_write]; 108 109 internal_WRITE_NUM_REG = new Taddress_t [_param->_nb_port_write]; 110 } 109 111 110 // ~~~~~[ 112 // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 111 113 112 114 #ifdef POSITION 113 _component->generate_file(); 115 if (usage_is_set(_usage,USE_POSITION)) 116 _component->generate_file(); 114 117 #endif 115 118 … … 123 126 }; // end namespace behavioural 124 127 }; // end namespace morpheo 125 #endif
Note: See TracChangeset
for help on using the changeset viewer.