Ignore:
Timestamp:
Sep 28, 2007, 2:58:08 PM (17 years ago)
Author:
rosiere
Message:
  • VHDL - RegisterFile_Multi_Banked (only partial_crossbar)
  • SystemC - modif Component, interface and co -> ajout du type Tusage_T pour instancier un coposant mais ne demander que le VHDL ou le systemC.
  • Séminaire interne
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Component_set_component.cpp

    r43 r57  
    1515  void Component::set_component (Component * component
    1616#ifdef POSITION
    17                                 ,uint32_t   pos_x 
    18                                 ,uint32_t   pos_y 
    19                                 ,uint32_t   size_x
    20                                 ,uint32_t   size_y
     17                                 ,uint32_t   pos_x 
     18                                 ,uint32_t   pos_y 
     19                                 ,uint32_t   size_x
     20                                 ,uint32_t   size_y
    2121#endif
     22                                 ,Tinstance_t instance
    2223                                 )
    2324  {
     
    2627    Entity * entity = component->_entity;
    2728
    28     _list_component->push_back(entity);
     29    Tcomponent_t * entry = new Tcomponent_t;
     30   
     31    entry->_instance = instance;
     32    entry->_entity   = entity;
     33
     34    _list_component->push_back(entry);
    2935
    3036#ifdef POSITION
    31     entity->mapping( pos_x, pos_y, size_x, size_y);
     37    if (instance & INSTANCE_POSITION)
     38      entity->mapping( pos_x, pos_y, size_x, size_y);
    3239#endif
    3340
Note: See TracChangeset for help on using the changeset viewer.