Ignore:
Timestamp:
Feb 16, 2010, 1:35:48 PM (14 years ago)
Author:
rosiere
Message:

Various modif (add test, and vhdl)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Allocation.h

    r135 r137  
    337337    for (uint32_t it1=0; it1<iterator_1; it1++)                         \
    338338      {                                                                 \
    339         interface [it1] = _interfaces->set_interface( name+separator+toString(it1), direction, localisation, str); \
     339        interface [it1] = _interfaces->set_interface(((toString(name)!="")?(name+separator):"")+toString(it1), direction, localisation, str); \
    340340      }                                                                 \
    341341  }
     
    351351    for (uint32_t it1=0; it1<iterator_1; it1++)                         \
    352352      {                                                                 \
    353         interface [it1] = _interfaces->set_interface( name+separator+toString(it1)); \
     353        interface [it1] = _interfaces->set_interface(((toString(name)!="")?(name+separator):"")+toString(it1)); \
    354354      }                                                                 \
    355355  }
     
    559559        for (uint32_t it2=0; it2<iterator_2; it2++)                     \
    560560          {                                                             \
    561             interface [it1][it2] = _interfaces->set_interface( name+separator+toString(it1)+separator+toString(it2), direction, localisation, str); \
     561            interface [it1][it2] = _interfaces->set_interface(((toString(name)!="")?(name+separator):"")+toString(it1)+separator+toString(it2), direction, localisation, str); \
    562562          }                                                             \
    563563      }                                                                 \
     
    579579        for (uint32_t it2=0; it2<iterator_2; it2++)                     \
    580580          {                                                             \
    581             interface [it1][it2] = _interfaces->set_interface( name+separator+toString(it1)+separator+toString(it2)); \
     581            interface [it1][it2] = _interfaces->set_interface(((toString(name)!="")?(name+separator):"")+toString(it1)+separator+toString(it2)); \
    582582          }                                                             \
    583583      }                                                                 \
     
    849849            for (uint32_t it3=0; it3<iterator_3; it3++)                 \
    850850              {                                                         \
    851                 interface [it1][it2][it3] = _interfaces->set_interface( name+separator+toString(it1)+separator+toString(it2)+separator+toString(it3), direction, localisation, str); \
     851                interface [it1][it2][it3] = _interfaces->set_interface(((toString(name)!="")?(name+separator):"")+toString(it1)+separator+toString(it2)+separator+toString(it3), direction, localisation, str); \
    852852              }                                                         \
    853853          }                                                             \
     
    875875            for (uint32_t it3=0; it3<iterator_3; it3++)                 \
    876876              {                                                         \
    877                 interface [it1][it2][it3] = _interfaces->set_interface( name+separator+toString(it1)+separator+toString(it2)+separator+toString(it3)); \
     877                interface [it1][it2][it3] = _interfaces->set_interface(((toString(name)!="")?(name+separator):"")+toString(it1)+separator+toString(it2)+separator+toString(it3)); \
    878878              }                                                         \
    879879          }                                                             \
Note: See TracChangeset for help on using the changeset viewer.