Ignore:
Timestamp:
Jun 5, 2007, 11:06:46 PM (17 years ago)
Author:
rosiere
Message:

Interface et Signal, c'est deux classes enregistres la valeurs des signaux à chaque cycle ... étape préparatoire avan le changement de la classe Vhdl_Testbench

Location:
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/SelfTest/src/test.cpp

    r15 r40  
    1919  Select_Priority_Fixed * _Select_Priority_Fixed = new Select_Priority_Fixed (name.c_str(),
    2020#ifdef STATISTICS
    21                                              morpheo::behavioural::Parameters_Statistics(5,50),
     21                                                                              morpheo::behavioural::Parameters_Statistics(5,50),
    2222#endif
    23                                              _param);
     23                                                                              _param);
    2424 
    2525#ifdef SYSTEMC
     
    137137  cout << "<" << name << "> ............ Stop Simulation" << endl;
    138138
    139   delete CLOCK;
    140   delete NRESET;
    141 
    142   for (uint32_t i=0; i<_param._nb_entity; i++)
    143     {
    144       delete VAL [i];
    145       delete ACK [i];
    146     }
    147  
    148   delete VAL       ;
    149   delete ACK       ;
    150   delete ENTITY    ;
    151   delete ENTITY_ACK;
     139  delete    CLOCK;
     140  delete    NRESET;
     141  delete [] VAL       ;
     142  delete [] ACK       ;
     143  delete    ENTITY    ;
     144  delete    ENTITY_ACK;
    152145#endif
    153146
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/include/Select_Priority_Fixed.h

    r31 r40  
    1919#include "Behavioural/Generic/Select/Select_Priority_Fixed/include/Parameters.h"
    2020#include "Behavioural/Generic/Select/Select_Priority_Fixed/include/Types.h"
     21#ifdef STATISTICS
     22#include "Behavioural/Generic/Select/Select_Priority_Fixed/include/Statistics.h"
     23#endif
    2124#ifdef POSITION
    2225#include "Behavioural/include/Position.h"
    2326#else
    2427#include "Behavioural/include/Interfaces.h"
    25 #endif
    26 
    27 #ifdef STATISTICS
    28 #include "Behavioural/Generic/Select/Select_Priority_Fixed/include/Statistics.h"
    2928#endif
    3029#ifdef VHDL
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Parameters_msg_error.cpp

    r15 r40  
    3131      }
    3232
     33    log_printf(FUNC,Select_Priority_Fixed,"msg_error","End");
     34
    3335    return msg;
    34 
    35     log_printf(FUNC,Select_Priority_Fixed,"msg_error","End");
    3636  };
    3737
     
    3939}; // end namespace select
    4040}; // end namespace generic
    41 
    4241}; // end namespace behavioural
    4342}; // end namespace morpheo             
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Select_Priority_Fixed.cpp

    r29 r40  
    3838#endif
    3939
    40 #ifdef POSITION
    41     log_printf(INFO,Select_Priority_Fixed,"Select_Priority_Fixed","Position");
    42    
    43    
    44 #endif
    45 
    4640#ifdef STATISTICS
    4741    log_printf(INFO,Select_Priority_Fixed,"Select_Priority_Fixed","Allocation of statistics");
     
    5650    log_printf(INFO,Select_Priority_Fixed,"Select_Priority_Fixed","Creation of a testbench");
    5751
    58     // Creation of a testbench
    59     //  -> port
    60     //  -> clock's signals
    6152    _vhdl_testbench = new Vhdl_Testbench (_name);
    6253#endif
     
    137128}; // end namespace select
    138129}; // end namespace generic
    139 
    140130}; // end namespace behavioural
    141131}; // end namespace morpheo             
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Select_Priority_Fixed_allocation.cpp

    r31 r40  
    3535    // ~~~~~[ Interface : "" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    3636
    37     Interface * interface_ = _interfaces->set_interface(""  ,
    38                                                         IN  ,
    39                                                         WEST,
    40                                                         "...");
     37    Interface_fifo * interface_ = _interfaces->set_interface("", IN  ,WEST, "Generalist interface");
    4138
    4239     in_CLOCK        = interface_->set_signal_clk              ("clock" ,1, PORT_VHDL_YES_TESTBENCH_NO);
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Select_Priority_Fixed_deallocation.cpp

    r31 r40  
    2020    log_printf(FUNC,Select_Priority_Fixed,"deallocation","Begin");
    2121
    22     delete in_CLOCK;
    23     delete in_NRESET;
     22    delete     in_CLOCK;
     23    delete     in_NRESET;
    2424
    25     for (uint32_t i=0; i<_param._nb_entity; i++)
    26       {
    27         delete  in_VAL [i];
    28         if (_param._encoding_one_hot)
    29         delete out_ACK [i];
    30       }
     25    delete []  in_VAL;
     26    if (_param._encoding_one_hot)
     27    delete [] out_ACK;
    3128
    32     delete  in_VAL;
    33     if (_param._encoding_one_hot)
    34     delete out_ACK;
    3529    if (_param._encoding_compact)
    3630      {
    37     delete out_ENTITY;
    38     delete out_ENTITY_ACK;
     31    delete    out_ENTITY;
     32    delete    out_ENTITY_ACK;
    3933      }
    4034    // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
     35
     36    cout << *_interfaces << endl;
    4137
    4238#ifdef POSITION
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Select_Priority_Fixed_genMealy_entity.cpp

    r15 r40  
    11#ifdef SYSTEMC
    2 #if defined(STATISTICS) or defined(VHDL_TESTBENCH)
    32/*
    43 * $Id$
     
    6463}; // end namespace morpheo             
    6564#endif
    66 #endif
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Select_Priority_Fixed_vhdl.cpp

    r29 r40  
    3030
    3131    vhdl->generate_file();
     32
     33    delete vhdl;
     34
    3235    log_printf(FUNC,Select_Priority_Fixed,"vhdl","End");
    33 
    3436  };
    3537
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Select_Priority_Fixed_vhdl_port.cpp

    r31 r40  
    1919    log_printf(FUNC,Select_Priority_Fixed,"vhdl_port","Begin");
    2020
    21 #ifdef VHDL
    2221    _interfaces->set_port(vhdl);
    23 #endif
     22
    2423#ifdef VHDL_TESTBENCH
    2524    _interfaces->set_port(_vhdl_testbench);                     
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Select_Priority_Fixed_vhdl_testbench_transition.cpp

    r38 r40  
    2323    sc_start(0);
    2424
    25     // In order with file Select_Priority_Fixed_vhdl_testbench_port.cpp
    26     // Warning : if a output depend of a subcomponent, take directly the port of subcomponent
    27     // (because we have no control on the ordonnancer's policy)
    28 
    2925    _interfaces->testbench(_vhdl_testbench);
    3026
Note: See TracChangeset for help on using the changeset viewer.