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