Ignore:
Timestamp:
Feb 16, 2010, 1:35:48 PM (15 years ago)
Author:
rosiere
Message:

Various modif (add test, and vhdl)

Location:
trunk/IPs/systemC/processor/Morpheo/Behavioural/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Component_toXML.cpp

    r81 r137  
    33 * $Id$
    44 *
    5  * [ Description ]
     5 * [ Description ]
    66 *
    77 */
    88
    99#include "Behavioural/include/Component.h"
    10 #include "Behavioural/include/Version.h"
     10#include "Common/include/Environment.h"
    1111
    1212namespace morpheo              {
     
    1919  {
    2020    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
     21
     22    environment ();
    2123
    2224    XML xml (_entity->get_name());
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Debug_signal.cpp

    r129 r137  
    88
    99#include "Behavioural/include/Debug_signal.h"
     10#include "Common/include/Message.h"
    1011
    1112namespace morpheo {
    1213namespace behavioural {
    1314
    14   std::set<void *> _debug_signal;
     15  debug_signal _debug_signal;
     16
     17  void debug_signal::add (void *      signal,
     18                          std::string name)
     19  {
     20    _signal[signal] = name;
     21  }
     22
     23  void debug_signal::write (void * signal)
     24  {
     25    std::map <void *,std::string>::iterator it=_signal.find(signal);
     26    if (it != _signal.end())
     27      _signal_access.push_back(it->second);
     28
     29// else
     30//   msgError("At file %s, in line %d, invalid signal.\n",__FILE__,__LINE__);
     31  }
     32
     33  void debug_signal::end_cycle (void)
     34  {
     35    _signal_access.clear();
     36  }
     37
     38  void debug_signal::print (void)
     39  {
     40    msg("List of access signal\n");
     41    for (std::list<std::string>::iterator it = _signal_access.begin();
     42         it != _signal_access.end();
     43         ++ it)
     44      {
     45        msg(" * %s\n",(*it).c_str());
     46      }
     47  }
    1548
    1649}; // end namespace behavioural         
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Stat_generate_file.cpp

    r124 r137  
    11#ifdef STATISTICS
    22#include "Behavioural/include/Stat.h"
    3 #include "Behavioural/include/Version.h"
    43#include "Common/include/Environment.h"
    54#include "Common/include/Systemc.h"
     
    1110  {
    1211    directory();
     12    environment();
    1313
    1414    std::string body = print(1);
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Vhdl_get_header.cpp

    r113 r137  
    99
    1010#include "Behavioural/include/Vhdl.h"
    11 #include "Behavioural/include/Version.h"
     11#include "Common/include/Environment.h"
    1212#include <time.h>
    1313#include <sstream>
     
    2525
    2626    std::string text;
     27
     28    environment();
    2729
    2830    time_t current_time;
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/src/XML_header.cpp

    r98 r137  
    77
    88#include "Behavioural/include/XML.h"
    9 #include "Behavioural/include/Version.h"
     9#include "Common/include/Environment.h"
    1010
    1111namespace morpheo              {
     
    1717  {
    1818    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
     19
     20    environment ();
    1921
    2022    time_t current_time;
Note: See TracChangeset for help on using the changeset viewer.