Changeset 113 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Counter/src/Counter_vhdl_body.cpp
- Timestamp:
- Apr 14, 2009, 8:39:12 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Counter/src/Counter_vhdl_body.cpp
r81 r113 19 19 vhdl->set_body (""); 20 20 21 for (uint32_t i=0; i<_param ._nb_port; i++)21 for (uint32_t i=0; i<_param->_nb_port; i++) 22 22 { 23 23 std::string counter_inc, counter_dec; 24 24 25 if (_param ._size_data > 1)25 if (_param->_size_data > 1) 26 26 { 27 27 counter_inc = "in_COUNTER_"+toString(i)+"_DATA+1"; … … 35 35 36 36 vhdl->set_body ("out_COUNTER_"+toString(i)+"_DATA <="); 37 if (_param ._size_data > 1)37 if (_param->_size_data > 1) 38 38 { 39 39 vhdl->set_body ("\tin_COUNTER_"+toString(i)+"_DATA+1 when in_COUNTER_"+toString(i)+"_ADDSUB = '1' and in_COUNTER_"+toString(i)+"_DATA < cst_max else");
Note: See TracChangeset
for help on using the changeset viewer.