Changeset 78 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Victim/Victim_Pseudo_LRU/src/Victim_Pseudo_LRU_vhdl_declaration.cpp
- Timestamp:
- Mar 27, 2008, 11:04:49 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Victim/Victim_Pseudo_LRU/src/Victim_Pseudo_LRU_vhdl_declaration.cpp
r42 r78 18 18 void Victim_Pseudo_LRU::vhdl_declaration (Vhdl * & vhdl) 19 19 { 20 vhdl->set_type ("Ttable", "array (" + toString(_param ._size_table-1) + " downto 0) of "+std_logic(_param._nb_entity-1));20 vhdl->set_type ("Ttable", "array (" + toString(_param->_size_table-1) + " downto 0) of "+std_logic(_param->_nb_entity-1)); 21 21 22 22 23 23 vhdl->set_signal ("reg_TABLE", "Ttable"); 24 for (uint32_t i=0; i<_param ._nb_access; i++)24 for (uint32_t i=0; i<_param->_nb_access; i++) 25 25 { 26 vhdl->set_signal ("access_entry_"+toString(i)+" ",std_logic(_param ._nb_entity-1));27 vhdl->set_signal ("access_next_entry_"+toString(i)+"",std_logic(_param ._nb_entity-1));28 vhdl->set_signal ("access_entity_"+toString(i)+" ",std_logic(static_cast<uint32_t>(log2(_param ._nb_entity))));26 vhdl->set_signal ("access_entry_"+toString(i)+" ",std_logic(_param->_nb_entity-1)); 27 vhdl->set_signal ("access_next_entry_"+toString(i)+"",std_logic(_param->_nb_entity-1)); 28 vhdl->set_signal ("access_entity_"+toString(i)+" ",std_logic(static_cast<uint32_t>(log2(_param->_nb_entity)))); 29 29 } 30 30 31 for (uint32_t i=0; i<_param ._nb_update; i++)31 for (uint32_t i=0; i<_param->_nb_update; i++) 32 32 { 33 vhdl->set_signal ("update_next_entry_"+toString(i)+"",std_logic(_param ._nb_entity-1));33 vhdl->set_signal ("update_next_entry_"+toString(i)+"",std_logic(_param->_nb_entity-1)); 34 34 } 35 35 };
Note: See TracChangeset
for help on using the changeset viewer.