source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Entity_map.cpp @ 38

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

Interface et vhdl_testbench : l'appel aux fonction add_input et add_ouput est maintenant réalisé par la classe Interface (et autre).

2 remarques :

  • tester avec des sous composants (en particulier les sorties d'un est directement relié au sortie d'un autre)
  • Signal_testbench.cpp -> l'optimisé (par exemple pointeur de fonction afin d'éviter le test et le switch)
File size: 592 bytes
Line 
1#ifdef POSITION
2/*
3 * $Id$
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/include/Entity.h"
10
11
12namespace morpheo              {
13namespace behavioural          {
14
15  void Entity::mapping (uint32_t pos_x,
16                        uint32_t pos_y,
17                        uint32_t size_x ,
18                        uint32_t size_y )
19  {
20    if (_is_map != false)
21      throw (ErrorMorpheo ("Entity \""+_name+"\" is already mapped"));
22
23    _is_map = true;
24
25    _map_size_x = size_x;
26    _map_size_y = size_y;
27    _map_pos_x  = pos_x ;
28    _map_pos_y  = pos_y ;
29  };
30
31}; // end namespace behavioural         
32}; // end namespace morpheo             
33#endif
Note: See TracBrowser for help on using the repository browser.