source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Entity.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: 1.2 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
18                    ):
19     _name       (name      )
20    ,_type       (type      )
21#ifdef POSITION
22    ,_schema     (schema    )
23#endif
[31]24  {
[38]25    log_printf(FUNC,Behavioural,"Entity","Begin");
[41]26    _interfaces = new Interfaces (name);
[42]27#ifdef POSITION
[41]28    _is_map     = false;
[42]29#endif
[38]30    log_printf(FUNC,Behavioural,"Entity","End");
[31]31  };
32
33  Entity::Entity  (const Entity & entity):
[42]34     _name       (entity._name      )
35    ,_type       (entity._type      )
36#ifdef POSITION
37    ,_schema     (entity._schema    )
38#endif
[31]39  {
[38]40    log_printf(FUNC,Behavioural,"Entity (copy)","Begin");
[42]41    _interfaces = entity._interfaces;
42#ifdef POSITION
[31]43    _is_map     = entity._is_map    ;
44    _comment    = entity._comment   ;
[42]45#endif
[38]46    log_printf(FUNC,Behavioural,"Entity (copy)","End");
[31]47  };
48 
49  Entity::~Entity ()
50  {
[38]51    log_printf(FUNC,Behavioural,"~Entity","Begin");
[31]52    delete _interfaces;
[38]53    log_printf(FUNC,Behavioural,"~Entity","End");
[31]54  };
55
56}; // end namespace behavioural         
57}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.