source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Component_set_component.cpp @ 42

Last change on this file since 42 was 42, checked in by rosiere, 17 years ago

Modification des classes d'encapsulation des interfaces :

  • gère les signaux à écrire dans le vhdl
  • les traces pour le testbench
  • la génération des vhdl structurelles

-> test sur la Pattern History Table

File size: 587 bytes
Line 
1/*
2 * $Id$
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/include/Component.h"
9
10namespace morpheo              {
11namespace behavioural          {
12
13  void Component::set_component (Component * component
14#ifdef POSITION
15                                ,uint32_t   pos_x 
16                                ,uint32_t   pos_y 
17                                ,uint32_t   size_x
18                                ,uint32_t   size_y
19#endif
20                                 )
21  {
22    Entity * entity = component->_entity;
23
24    _list_component->push_back(entity);
25
26#ifdef POSITION
27    entity->mapping( pos_x, pos_y, size_x, size_y);
28#endif
29  };
30
31}; // end namespace behavioural         
32}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.