source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interfaces.cpp @ 112

Last change on this file since 112 was 112, checked in by rosiere, 15 years ago

1) Stat_list : fix retire old and new register bug
2) Stat_list : remove read_counter and valid flag, because validation of destination is in retire step (not in commit step)
3) Model : add class Model (cf Morpheo.sim)
4) Allocation : alloc_interface_begin and alloc_interface_end to delete temporary array.
5) Script : add distexe.sh
6) Add Comparator, Multiplier, Divider. But this component are not implemented
7) Software : add Dhrystone

  • Property svn:keywords set to Id
File size: 1.2 KB
Line 
1/*
2 * $Id: Interfaces.cpp 112 2009-03-18 22:36:26Z rosiere $
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/include/Interfaces.h"
9
10namespace morpheo              {
11namespace behavioural          {
12
13  Interfaces::Interfaces  (std::string   name,
14                           Tusage_t usage):
15    _name  (name),
16    _usage (usage)
17  {
18    log_printf(FUNC,Behavioural,"Interfaces","Begin");
19    _list_interface = new std::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    if (_usage & USE_VHDL_TESTBENCH)
38      testbench_generate_file ();
39#endif
40
41    for (std::list<Interface_fifo*>::iterator it = _list_interface->begin();
42         it!=_list_interface->end();
43         ++it)
44      delete (*it);
45
46    delete _list_interface;
47    log_printf(FUNC,Behavioural,"~Interfaces","End");
48  };
49 
50}; // end namespace behavioural         
51}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.