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