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

Last change on this file since 144 was 82, checked in by rosiere, 16 years ago
  • support locale (now must "just" translate)
  • update all component with new test format
  • update all component with usage
  • New component : decod queue and prediction_unit
  • Property svn:keywords set to Id
File size: 1.8 KB
RevLine 
[40]1/*
2 * $Id: Interface_fifo.cpp 82 2008-05-01 16:48:45Z rosiere $
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
[82]47               ,interface_fifo._usage
[42]48               )
[40]49  {
50    log_printf(FUNC,Behavioural,"Interface_fifo (copy)","Begin");
51
52    _list_signal_val = interface_fifo._list_signal_val;
53    _list_signal_ack = interface_fifo._list_signal_ack;
54
55#ifdef VHDL_TESTBENCH
56    _test_exhaustive = interface_fifo._test_exhaustive;
[41]57    _list_cycle      = interface_fifo._list_cycle;
[40]58#endif
59
60    log_printf(FUNC,Behavioural,"Interface_fifo (copy)","End");
61  };
62 
63  Interface_fifo::~Interface_fifo ()
64  {
65    log_printf(FUNC,Behavioural,"~Interface_fifo","Begin");
66
67    delete _list_signal_val;
68    delete _list_signal_ack;
69
[41]70#ifdef VHDL_TESTBENCH
71    delete _list_cycle;
72#endif
73
[40]74    log_printf(FUNC,Behavioural,"~Interface_fifo","End");
75  };
76
77}; // end namespace behavioural         
78}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.