Ignore:
Timestamp:
Sep 6, 2007, 6:30:49 PM (17 years ago)
Author:
rosiere
Message:
  • Banc de registre multi banc
  • Banc de registre générique.
Location:
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src
Files:
16 edited

Legend:

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

    r41 r53  
    1212@NAMESPACE_BEGIN
    1313
     14#undef  FUNCTION
     15#define FUNCTION "@COMPONENT::@COMPONENT"
    1416#ifdef SYSTEMC
    1517  @COMPONENT::@COMPONENT (sc_module_name name,
     
    1820#endif
    1921#ifdef STATISTICS
    20                               morpheo::behavioural::Parameters_Statistics            param_statistics,
     22                          morpheo::behavioural::Parameters_Statistics * param_statistics,
    2123#endif
    22                               morpheo::behavioural::@NAMESPACE_USE::Parameters param ):
     24                          morpheo::behavioural::@NAMESPACE_USE::Parameters * param ):
    2325                              _name              (name)
    2426                              ,_param            (param)
     
    2729// #endif
    2830  {
    29     log_printf(FUNC,@COMPONENT,"@COMPONENT","Begin");
     31    log_printf(FUNC,@COMPONENT,FUNCTION,"Begin");
    3032
    3133#ifdef SYSTEMC
    32     log_printf(INFO,@COMPONENT,"@COMPONENT","Allocation");
     34    log_printf(INFO,@COMPONENT,FUNCTION,"Allocation");
    3335
    3436    allocation ();
     
    3638
    3739#ifdef STATISTICS
    38     log_printf(INFO,@COMPONENT,"@COMPONENT","Allocation of statistics");
     40    log_printf(INFO,@COMPONENT,FUNCTION,"Allocation of statistics");
    3941
    4042    // Allocation of statistics
     
    4648#ifdef VHDL
    4749    // generate the vhdl
    48     log_printf(INFO,@COMPONENT,"@COMPONENT","Generate the vhdl");
     50    log_printf(INFO,@COMPONENT,FUNCTION,"Generate the vhdl");
    4951
    5052    vhdl();
     
    5355#ifdef SYSTEMC
    5456//#if defined(STATISTICS) or defined(VHDL_TESTBENCH)
    55     log_printf(INFO,@COMPONENT,"@COMPONENT","Method - transition");
     57    log_printf(INFO,@COMPONENT,FUNCTION,"Method - transition");
    5658
    5759    SC_METHOD (transition);
     
    6567
    6668#endif
    67     log_printf(FUNC,@COMPONENT,"@COMPONENT","End");
     69    log_printf(FUNC,@COMPONENT,FUNCTION,"End");
    6870  };
    6971 
     72#undef  FUNCTION
     73#define FUNCTION "@COMPONENT::~@COMPONENT"
    7074  @COMPONENT::~@COMPONENT (void)
    7175  {
    72     log_printf(FUNC,@COMPONENT,"~@COMPONENT","Begin");
     76    log_printf(FUNC,@COMPONENT,FUNCTION,"Begin");
    7377
    7478#ifdef STATISTICS
    75     log_printf(INFO,@COMPONENT,"~@COMPONENT","Generate Statistics file");
     79    log_printf(INFO,@COMPONENT,FUNCTION,"Generate Statistics file");
    7680
    7781    _stat->generate_file(statistics(0));
     
    8185
    8286#ifdef SYSTEMC
    83     log_printf(INFO,@COMPONENT,"~@COMPONENT","Deallocation");
     87    log_printf(INFO,@COMPONENT,FUNCTION,"Deallocation");
    8488
    8589    deallocation ();
    8690#endif
    8791
    88     log_printf(FUNC,@COMPONENT,"~@COMPONENT","End");
     92    log_printf(FUNC,@COMPONENT,FUNCTION,"End");
    8993  };
    9094
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component_allocation.cpp

    r50 r53  
    1313@NAMESPACE_BEGIN
    1414
     15
     16#undef  FUNCTION
     17#define FUNCTION "@COMPONENT::allocation"
    1518  void @COMPONENT::allocation (void)
    1619  {
    1720    string rename;
    1821
    19     log_printf(FUNC,@COMPONENT,"allocation","Begin");
     22    log_printf(FUNC,@COMPONENT,FUNCTION,"Begin");
    2023
    2124    _component   = new Component ();
     
    4952#endif
    5053
    51     log_printf(FUNC,@COMPONENT,"allocation","End");
     54    log_printf(FUNC,@COMPONENT,FUNCTION,"End");
    5255  };
    5356
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component_deallocation.cpp

    r42 r53  
     1#undef  FUNCTION
     2#define FUNCTION "@COMPONENT::"
     3
    14#ifdef SYSTEMC
    25/*
     
    1316@NAMESPACE_BEGIN
    1417
     18#undef  FUNCTION
     19#define FUNCTION "@COMPONENT::deallocation"
    1520  void @COMPONENT::deallocation (void)
    1621  {
    17     log_printf(FUNC,@COMPONENT,"deallocation","Begin");
     22    log_printf(FUNC,@COMPONENT,FUNCTION,"Begin");
    1823
    1924//#if defined(STATISTICS) or defined(VHDL_TESTBENCH)
    20     delete in_CLOCK;
     25    delete    in_CLOCK ;
    2126//#endif
    22     delete in_NRESET;
     27    delete    in_NRESET;
    2328
    2429    // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
     
    2631    delete _component;
    2732
    28     log_printf(FUNC,@COMPONENT,"deallocation","End");
     33    log_printf(FUNC,@COMPONENT,FUNCTION,"End");
    2934  };
    3035
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component_statistics.cpp

    r2 r53  
    1313@NAMESPACE_BEGIN
    1414
     15#undef  FUNCTION
     16#define FUNCTION "@COMPONENT::statistics"
    1517  string @COMPONENT::statistics (uint32_t depth)
    1618  {
    17     log_printf(FUNC,@COMPONENT,"statistics","Begin");
     19    log_printf(FUNC,@COMPONENT,FUNCTION,"Begin");
    1820
    1921    string txt = _stat->print(depth);
    2022   
    21     log_printf(FUNC,@COMPONENT,"statistics","End");
     23    log_printf(FUNC,@COMPONENT,FUNCTION,"End");
    2224
    2325    return txt;
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component_transition.cpp

    r15 r53  
    1414@NAMESPACE_BEGIN
    1515
     16#undef  FUNCTION
     17#define FUNCTION "@COMPONENT::transition"
    1618  void @COMPONENT::transition (void)
    1719  {
    18     log_printf(FUNC,@COMPONENT,"transition","Begin");
     20    log_printf(FUNC,@COMPONENT,FUNCTION,"Begin");
    1921
    2022#ifdef STATISTICS
     
    2628#endif
    2729
    28     log_printf(FUNC,@COMPONENT,"transition","End");
     30    log_printf(FUNC,@COMPONENT,FUNCTION,"End");
    2931  };
    3032
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component_vhdl.cpp

    r50 r53  
    1414@NAMESPACE_BEGIN
    1515
     16#undef  FUNCTION
     17#define FUNCTION "@COMPONENT::vhdl"
    1618  void @COMPONENT::vhdl (void)
    1719  {
    18     log_printf(FUNC,@COMPONENT,"vhdl","Begin");
     20    log_printf(FUNC,@COMPONENT,FUNCTION,"Begin");
    1921
    2022    Vhdl * vhdl = new Vhdl (_name);
     
    3032    delete vhdl;
    3133
    32     log_printf(FUNC,@COMPONENT,"vhdl","End");
     34    log_printf(FUNC,@COMPONENT,FUNCTION,"End");
    3335  };
    3436
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component_vhdl_body.cpp

    r50 r53  
    1313@NAMESPACE_BEGIN
    1414
     15#undef  FUNCTION
     16#define FUNCTION "@COMPONENT::vhdl_body"
    1517  void @COMPONENT::vhdl_body (Vhdl * & vhdl)
    1618  {
    17     log_printf(FUNC,@COMPONENT,"vhdl_body","Begin");
     19    log_printf(FUNC,@COMPONENT,FUNCTION,"Begin");
    1820    vhdl->set_body ("");
    19     log_printf(FUNC,@COMPONENT,"vhdl_body","End");
     21    log_printf(FUNC,@COMPONENT,FUNCTION,"End");
    2022  };
    2123
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component_vhdl_declaration.cpp

    r50 r53  
    1313@NAMESPACE_BEGIN
    1414
     15#undef  FUNCTION
     16#define FUNCTION "@COMPONENT::vhdl_declaration"
    1517  void @COMPONENT::vhdl_declaration (Vhdl * & vhdl)
    1618  {
    17     log_printf(FUNC,@COMPONENT,"vhdl_declaration","Begin");
    18     log_printf(FUNC,@COMPONENT,"vhdl_declaration","End");
     19    log_printf(FUNC,@COMPONENT,FUNCTION,"Begin");
     20    log_printf(FUNC,@COMPONENT,FUNCTION,"End");
    1921  };
    2022
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component_vhdl_testbench_transition.cpp

    r44 r53  
    1313@NAMESPACE_BEGIN
    1414
     15#undef  FUNCTION
     16#define FUNCTION "@COMPONENT::vhdl_testbench_transition"
    1517  void @COMPONENT::vhdl_testbench_transition ()
    1618  {
    17     log_printf(FUNC,@COMPONENT,"vhdl_testbench_transition","Begin");
     19    log_printf(FUNC,@COMPONENT,FUNCTION,"Begin");
    1820
    1921    // Evaluation before read the ouput signal
     
    2224    _interfaces->testbench();
    2325
    24     log_printf(FUNC,@COMPONENT,"vhdl_testbench_transition","End");
     26    log_printf(FUNC,@COMPONENT,FUNCTION,"End");
    2527  };
    2628
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/Parameters.cpp

    r15 r53  
    1212@NAMESPACE_BEGIN
    1313
     14#undef  FUNCTION
     15#define FUNCTION "@COMPONENT::Parameters"
    1416  Parameters::Parameters ()
    1517  {
    16     log_printf(FUNC,@COMPONENT,"Parameters","Begin");
     18    log_printf(FUNC,@COMPONENT,FUNCTION,"Begin");
    1719    test();
    18     log_printf(FUNC,@COMPONENT,"Parameters","End");
     20    log_printf(FUNC,@COMPONENT,FUNCTION,"End");
    1921  };
    2022 
     23#undef  FUNCTION
     24#define FUNCTION "@COMPONENT::Parameters (copy)"
    2125  Parameters::Parameters (Parameters & param)
    2226  {
    23     log_printf(FUNC,@COMPONENT,"Parameters (copy)","Begin");
     27    log_printf(FUNC,@COMPONENT,FUNCTION,"Begin");
    2428    test();
    25     log_printf(FUNC,@COMPONENT,"Parameters (copy)","End");
     29    log_printf(FUNC,@COMPONENT,FUNCTION,"End");
    2630  };
    2731
     32#undef  FUNCTION
     33#define FUNCTION "@COMPONENT::~Parameters"
    2834  Parameters::~Parameters ()
    2935  {
    30     log_printf(FUNC,@COMPONENT,"~Parameters","Begin");
    31     log_printf(FUNC,@COMPONENT,"~Parameters","End");
     36    log_printf(FUNC,@COMPONENT,FUNCTION,"Begin");
     37    log_printf(FUNC,@COMPONENT,FUNCTION,"End");
    3238  };
    3339
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/Parameters_msg_error.cpp

    r2 r53  
    1515@NAMESPACE_BEGIN
    1616
     17#undef  FUNCTION
     18#define FUNCTION "@COMPONENT::msg_error"
    1719  string Parameters::msg_error(void)
    1820  {
    19     log_printf(FUNC,@COMPONENT,"msg_error","Begin");
     21    log_printf(FUNC,@COMPONENT,FUNCTION,"Begin");
    2022
    2123    string msg = "";
     
    2325    return msg;
    2426
    25     log_printf(FUNC,@COMPONENT,"msg_error","End");
     27    log_printf(FUNC,@COMPONENT,FUNCTION,"End");
    2628  };
    2729
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/Parameters_print.cpp

    r15 r53  
    1414@NAMESPACE_BEGIN
    1515
     16#undef  FUNCTION
     17#define FUNCTION "@COMPONENT::print"
    1618  string Parameters::print (uint32_t depth)
    1719  {
    18     log_printf(FUNC,@COMPONENT,"print","Begin");
     20    log_printf(FUNC,@COMPONENT,FUNCTION,"Begin");
    1921
    2022    XML xml ("@COMPONENT_LOWER");
    2123
    2224    xml.balise_open("@COMPONENT_LOWER");
    23 //  xml.singleton_begin("size_data"); xml.attribut("value",toString(_size_data)); xml.singleton_end();
    24 //  xml.singleton_begin("nb_port  "); xml.attribut("value",toString(_nb_port  )); xml.singleton_end();
     25//  xml.singleton_begin(""); xml.attribut("value",toString(_)); xml.singleton_end();
    2526    xml.balise_close();
    2627
    27     log_printf(FUNC,@COMPONENT,"print","End");
     28    log_printf(FUNC,@COMPONENT,FUNCTION,"End");
    2829   
    2930    return xml.get_body(depth);
    3031  };
    3132
     33#undef  FUNCTION
     34#define FUNCTION "@COMPONENT::operator<<"
    3235  ostream& operator<< (ostream& output_stream ,
    3336                       morpheo::behavioural::@NAMESPACE_USE::Parameters & x)
    3437  {
     38    log_printf(FUNC,@COMPONENT,FUNCTION,"Begin");
     39
    3540    output_stream << x.print(0);
    3641   
     42    log_printf(FUNC,@COMPONENT,FUNCTION,"End");
     43
    3744    return output_stream;
    3845  };
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/Statistics.cpp

    r2 r53  
    1313@NAMESPACE_BEGIN
    1414
    15   Statistics::Statistics (string                                      name                       ,
    16                           morpheo::behavioural::Parameters_Statistics parameters_statistics      ,
    17                           Parameters                                  parameters
     15#undef  FUNCTION
     16#define FUNCTION "@COMPONENT::Statistics"
     17  Statistics::Statistics (string                                        name                       ,
     18                          morpheo::behavioural::Parameters_Statistics * parameters_statistics      ,
     19                          Parameters                                  * parameters
    1820                          ) :
    1921    morpheo::behavioural::Statistics(name                  ,
     
    2123    _parameters(parameters)
    2224  {
    23     log_printf(FUNC,@COMPONENT,"Statistics","Begin");
    24     log_printf(FUNC,@COMPONENT,"Statistics","End");
     25    log_printf(FUNC,@COMPONENT,FUNCTION,"Begin");
     26    log_printf(FUNC,@COMPONENT,FUNCTION,"End");
    2527  };
    2628 
     29#undef  FUNCTION
     30#define FUNCTION "@COMPONENT::~Statistics"
    2731  Statistics::~Statistics ()
    2832  {
    29     log_printf(FUNC,@COMPONENT,"~Statistics","Begin");
    30     log_printf(FUNC,@COMPONENT,"~Statistics","End");
     33    log_printf(FUNC,@COMPONENT,FUNCTION,"Begin");
     34    log_printf(FUNC,@COMPONENT,FUNCTION,"End");
    3135  };
    3236
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/Statistics_add.cpp

    r2 r53  
    1616@NAMESPACE_BEGIN
    1717
     18#undef  FUNCTION
     19#define FUNCTION "@COMPONENT::add"
    1820  void Statistics::add ()
    1921  {
    20     log_printf(FUNC,@COMPONENT,"add","Begin");
    21     log_printf(FUNC,@COMPONENT,"add","End");
     22    log_printf(FUNC,@COMPONENT,FUNCTION,"Begin");
     23    log_printf(FUNC,@COMPONENT,FUNCTION,"End");
    2224  };
    2325
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/Statistics_print.cpp

    r2 r53  
    1616@NAMESPACE_BEGIN
    1717
     18#undef  FUNCTION
     19#define FUNCTION "@COMPONENT::print"
    1820  string Statistics::print (uint32_t depth)
    1921  {
    20     log_printf(FUNC,@COMPONENT,"print","Begin");
     22    log_printf(FUNC,@COMPONENT,FUNCTION,"Begin");
    2123
    2224    string        tab = string(depth,'\t');
     
    2729        << tab << "</@COMPONENT_LOWER>" << endl;
    2830   
    29     log_printf(FUNC,@COMPONENT,"print","End");
     31    log_printf(FUNC,@COMPONENT,FUNCTION,"End");
    3032
    3133    return msg.str();
    3234  };
    3335
     36#undef  FUNCTION
     37#define FUNCTION "@COMPONENT::operator<<"
    3438  ostream& operator<< (ostream& output_stream ,
    3539                       morpheo::behavioural::@NAMESPACE_USE::Statistics & x)
    3640  {
     41    log_printf(FUNC,@COMPONENT,FUNCTION,"Begin");
     42
    3743    output_stream << x.print(0);
     44
     45    log_printf(FUNC,@COMPONENT,FUNCTION,"End");
    3846
    3947    return output_stream;
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/Statistics_print_body.cpp

    r2 r53  
    1616@NAMESPACE_BEGIN
    1717
     18#undef  FUNCTION
     19#define FUNCTION "@COMPONENT::print_body"
    1820  string Statistics::print_body (uint32_t depth)
    1921  {
    20     log_printf(FUNC,@COMPONENT,"print_body","Begin");
     22    log_printf(FUNC,@COMPONENT,FUNCTION,"Begin");
    2123
    2224    string        tab = string(depth,'\t');
     
    2527    msg << tab << "";
    2628   
    27     log_printf(FUNC,@COMPONENT,"print_body","End");
     29    log_printf(FUNC,@COMPONENT,FUNCTION,"End");
    2830
    2931    return msg.str();
Note: See TracChangeset for help on using the changeset viewer.