source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Component_set_entity.cpp @ 57

Last change on this file since 57 was 57, checked in by rosiere, 17 years ago
  • 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 size: 719 bytes
Line 
1/*
2 * $Id$
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/include/Component.h"
9
10namespace morpheo              {
11namespace behavioural          {
12
13#undef  FUNCTION
14#define FUNCTION "Component::set_entity"
15  Entity * Component::set_entity (string        name   
16                                  ,string        type   
17#ifdef POSITION
18                                  ,schema_t      schema
19#endif
20                                  )
21  {
22    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
23   
24    Entity * entity = new Entity (name   
25                                  ,type   
26#ifdef POSITION
27                                  ,schema
28#endif
29                                  ,_usage
30                                  );
31    _entity = entity;
32   
33    log_printf(FUNC,Behavioural,FUNCTION,"End");
34
35    return entity;
36  };
37
38}; // end namespace behavioural         
39}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.