source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interface_set_signal.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.1 KB
Line 
1/*
2 * $Id: Interface_set_signal.cpp 112 2009-03-18 22:36:26Z rosiere $
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/include/Interface.h"
9
10namespace morpheo              {
11namespace behavioural          {
12
13  Signal * Interface::set_signal (std::string     name     ,
14                                  direction_t     direction,
15                                  uint32_t        size     ,
16                                  presence_port_t presence_port)
17  {
18    log_printf(FUNC,Behavioural,"set_signal","Begin");
19
20    std::string signame = signal_name(_name, name, direction);
21   
22    Signal * sig = new Signal (signame, direction, size, presence_port);
23
24    _list_signal->push_back (sig);
25
26    log_printf(FUNC,Behavioural,"set_signal","End");
27
28    return sig;
29  };
30
31#ifdef VHDL
32#  ifdef VHDL_TESTBENCH
33
34#undef  FUNCTION
35#define FUNCTION "Interface::set_signal"
36  void Interface::set_signal (Vhdl * & vhdl)
37  {
38    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
39    if (not _list_signal->empty())
40      {
41        std::list<Signal*>::iterator i = _list_signal->begin();
42       
43        while (i != _list_signal->end())
44          {
45            (*i)->set_signal (vhdl);
46            ++i;
47          }
48      }
49    log_printf(FUNC,Behavioural,FUNCTION,"End");
50  };
51#  endif
52#endif
53
54}; // end namespace behavioural         
55}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.