source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interface_fifo.cpp @ 78

Last change on this file since 78 was 75, checked in by rosiere, 16 years ago

Update all component (except front_end) to :

  • new statistics model
  • no namespace std
File size: 1.8 KB
RevLine 
[40]1/*
2 * $Id$
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/include/Interface_fifo.h"
9
10namespace morpheo              {
11namespace behavioural          {
12
[75]13  Interface_fifo::Interface_fifo  (std::string         name       
[42]14#ifdef POSITION
15                                   ,direction_t    direction   
16                                   ,localisation_t localisation
17#endif
[57]18                                   ,Tusage_t       usage
[42]19                                   ):
20    Interface (name         
21#ifdef POSITION
22               ,direction   
23               ,localisation
24#endif
[57]25               ,usage
[42]26               )
[40]27  {
28    log_printf(FUNC,Behavioural,"Interface_fifo","Begin");
29
[75]30    _list_signal_val = new (std::list<Signal*>);
31    _list_signal_ack = new (std::list<Signal*>);
[40]32
33#ifdef VHDL_TESTBENCH
34    _test_exhaustive = true;
[75]35    _list_cycle      = new std::list<uint32_t>;
[40]36#endif
37
38    log_printf(FUNC,Behavioural,"Interface_fifo","End");
39  };
40
41  Interface_fifo::Interface_fifo  (const Interface_fifo & interface_fifo) :
[42]42    Interface (interface_fifo._name         
43#ifdef POSITION
44               ,interface_fifo._direction   
45               ,interface_fifo._localisation
46#endif
47               )
[40]48  {
49    log_printf(FUNC,Behavioural,"Interface_fifo (copy)","Begin");
50
51    _list_signal_val = interface_fifo._list_signal_val;
52    _list_signal_ack = interface_fifo._list_signal_ack;
53
54#ifdef VHDL_TESTBENCH
55    _test_exhaustive = interface_fifo._test_exhaustive;
[41]56    _list_cycle      = interface_fifo._list_cycle;
[40]57#endif
58
59    log_printf(FUNC,Behavioural,"Interface_fifo (copy)","End");
60  };
61 
62  Interface_fifo::~Interface_fifo ()
63  {
64    log_printf(FUNC,Behavioural,"~Interface_fifo","Begin");
65
66    delete _list_signal_val;
67    delete _list_signal_ack;
68
[41]69#ifdef VHDL_TESTBENCH
70    delete _list_cycle;
71#endif
72
[40]73    log_printf(FUNC,Behavioural,"~Interface_fifo","End");
74  };
75
76}; // end namespace behavioural         
77}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.