Ignore:
Timestamp:
Dec 10, 2008, 7:31:39 PM (16 years ago)
Author:
rosiere
Message:

Almost complete design
with Test and test platform

Location:
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/SelfTest/Makefile

    r81 r88  
    2424library_clean                   : Queue_library_clean
    2525
     26local_clean                     :
     27
    2628include                         ../Makefile.deps
    2729include                         $(DIR_MORPHEO)/Behavioural/Makefile.flags
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/SelfTest/src/test.cpp

    r82 r88  
    2222#endif
    2323
     24  Tusage_t _usage = USE_ALL;
     25
     26//   _usage = usage_unset(_usage,USE_SYSTEMC              );
     27//   _usage = usage_unset(_usage,USE_VHDL                 );
     28//   _usage = usage_unset(_usage,USE_VHDL_TESTBENCH       );
     29//   _usage = usage_unset(_usage,USE_VHDL_TESTBENCH_ASSERT);
     30//   _usage = usage_unset(_usage,USE_POSITION             );
     31//   _usage = usage_unset(_usage,USE_STATISTICS           );
     32//   _usage = usage_unset(_usage,USE_INFORMATION          );
     33
    2434  Queue * _Queue = new Queue
    2535    (name.c_str(),
     
    2838#endif
    2939     _param,
    30      USE_ALL);
     40     _usage);
    3141 
    3242#ifdef SYSTEMC
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/include/Parameters.h

    r81 r88  
    2929  public : Parameters  (uint32_t size_queue,
    3030                        uint32_t size_data );
    31   public : Parameters  (Parameters & param) ;
     31//   public : Parameters  (Parameters & param) ;
    3232  public : ~Parameters () ;
     33
     34  public :        void            copy       (void);
    3335
    3436  public :        Parameters_test msg_error  (void);
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/src/Parameters.cpp

    r81 r88  
    2626  };
    2727 
     28// #undef  FUNCTION
     29// #define FUNCTION "Queue::Parameters (copy)"
     30//   Parameters::Parameters (Parameters & param):
     31//     _size_queue (param._size_queue),
     32//     _size_data  (param._size_data )
     33//   {
     34//     log_printf(FUNC,Queue,FUNCTION,"Begin");
     35//     test();
     36//     log_printf(FUNC,Queue,FUNCTION,"End");
     37//   };
     38
    2839#undef  FUNCTION
    29 #define FUNCTION "Queue::Parameters (copy)"
    30   Parameters::Parameters (Parameters & param):
    31     _size_queue (param._size_queue),
    32     _size_data  (param._size_data )
     40#define FUNCTION "Queue::~Parameters"
     41  Parameters::~Parameters ()
    3342  {
    3443    log_printf(FUNC,Queue,FUNCTION,"Begin");
    35     test();
    3644    log_printf(FUNC,Queue,FUNCTION,"End");
    3745  };
    3846
    3947#undef  FUNCTION
    40 #define FUNCTION "Queue::~Parameters"
    41   Parameters::~Parameters ()
     48#define FUNCTION "Queue::copy"
     49  void Parameters::copy (void)
    4250  {
    4351    log_printf(FUNC,Queue,FUNCTION,"Begin");
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/src/Queue.cpp

    r81 r88  
    3535    log_printf(FUNC,Queue,FUNCTION,"Begin");
    3636
     37#if DEBUG_Core == true
     38    log_printf(INFO,Core,FUNCTION,_("<%s> Parameters"),_name.c_str());
     39
     40    std::cout << *param << std::endl;
     41#endif   
     42
    3743    log_printf(INFO,Queue,FUNCTION,"Allocation");
    3844    allocation ();
    3945
    4046#ifdef STATISTICS
    41     if (_usage & USE_STATISTICS)
     47    if (usage_is_set(_usage,USE_STATISTICS))
    4248      {
    4349        log_printf(INFO,Queue,FUNCTION,"Allocation of statistics");
     
    4854
    4955#ifdef VHDL
    50     if (_usage & USE_VHDL)
     56    if (usage_is_set(_usage,USE_VHDL))
    5157      {
    5258        // generate the vhdl
     
    5864
    5965#ifdef SYSTEMC
    60     if (_usage & USE_SYSTEMC)
     66    if (usage_is_set(_usage,USE_SYSTEMC))
    6167      {
    6268        log_printf(INFO,Queue,FUNCTION,"Method - transition");
     
    9298
    9399#ifdef STATISTICS
    94     if (_usage & USE_STATISTICS)
     100    if (usage_is_set(_usage,USE_STATISTICS))
    95101      {
    96102        log_printf(INFO,Queue,FUNCTION,"Generate Statistics file");
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/src/Queue_allocation.cpp

    r81 r88  
    7575    }
    7676     
     77    if (usage_is_set(_usage,USE_SYSTEMC))
     78      {
    7779    // ~~~~~[ Register ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
    7880    _queue_control = new morpheo::behavioural::generic::queue_control::Queue_Control::Queue_Control(_param->_size_queue);
    7981    _queue_data    = new Tdata_t [_param->_size_queue];
     82      }
    8083
    8184    // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
    8285
    8386#ifdef POSITION
    84     _component->generate_file();
     87    if (usage_is_set(_usage,USE_POSITION))
     88      _component->generate_file();
    8589#endif
    8690
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/src/Queue_deallocation.cpp

    r81 r88  
    2020    log_printf(FUNC,Queue,FUNCTION,"Begin");
    2121
    22     if (_usage & USE_SYSTEMC)
     22    if (usage_is_set(_usage,USE_SYSTEMC))
    2323      {
    2424        delete    in_CLOCK ;
     
    3333        delete   out_RETIRE_DATA;
    3434       
     35        // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
     36        delete _queue_control;
     37        delete _queue_data;
    3538      }
    36     // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
    37     delete _queue_control;
    38     delete _queue_data;
     39
    3940    delete _component;
    4041
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/src/Queue_end_cycle.cpp

    r81 r88  
    2121
    2222#ifdef STATISTICS
    23     _stat->end_cycle();
     23    if (usage_is_set(_usage,USE_STATISTICS))
     24      _stat->end_cycle();
    2425#endif   
    2526
     
    2728    // Evaluation before read the ouput signal
    2829//  sc_start(0);
    29     _interfaces->testbench();
     30    if (usage_is_set(_usage,USE_VHDL_TESTBENCH))
     31      _interfaces->testbench();
    3032#endif
    3133
Note: See TracChangeset for help on using the changeset viewer.