source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/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: 1.3 KB
Line 
1/*
2 * $Id$
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/include/Entity.h"
9
10namespace morpheo              {
11namespace behavioural          {
12
13  Entity::Entity  ( string       name   
14                   ,string       type 
15#ifdef POSITION
16                   ,schema_t     schema
17#endif
18                    ,Tusage_t      usage
19                    ):
20     _name       (name      )
21    ,_type       (type      )
22#ifdef POSITION
23    ,_schema     (schema    )
24#endif
25     ,_usage      (usage     )
26  {
27    log_printf(FUNC,Behavioural,"Entity","Begin");
28    _interfaces = new Interfaces (name, usage);
29#ifdef POSITION
30    _is_map     = false;
31#endif
32    log_printf(FUNC,Behavioural,"Entity","End");
33  };
34
35  Entity::Entity  (const Entity & entity):
36     _name       (entity._name      )
37    ,_type       (entity._type      )
38#ifdef POSITION
39    ,_schema     (entity._schema    )
40#endif
41    ,_usage      (entity._usage     )
42  {
43    log_printf(FUNC,Behavioural,"Entity (copy)","Begin");
44    _interfaces = entity._interfaces;
45#ifdef POSITION
46    _is_map     = entity._is_map    ;
47    _comment    = entity._comment   ;
48#endif
49    log_printf(FUNC,Behavioural,"Entity (copy)","End");
50  };
51 
52  Entity::~Entity ()
53  {
54    log_printf(FUNC,Behavioural,"~Entity","Begin");
55    delete _interfaces;
56    log_printf(FUNC,Behavioural,"~Entity","End");
57  };
58
59}; // end namespace behavioural         
60}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.