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