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

Last change on this file since 69 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.7 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
[42]13  Interface_fifo::Interface_fifo  (string         name       
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
30    _list_signal_val = new (list<Signal*>);
31    _list_signal_ack = new (list<Signal*>);
32
33#ifdef VHDL_TESTBENCH
34    _test_exhaustive = true;
[41]35    _list_cycle      = new 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.