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/Core/Multi_Front_end/Front_end/Prediction_unit/Return_Address_Stack/SelfTest
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Return_Address_Stack/SelfTest/Makefile

    r81 r88  
    2424library_clean                   : Return_Address_Stack_library_clean
    2525
     26local_clean                     :
     27
    2628include                         $(DIR_COMPONENT)/Makefile.deps
    2729include                         $(DIR_MORPHEO)/Behavioural/Makefile.flags
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Return_Address_Stack/SelfTest/config_mono_context.cfg

    r81 r88  
    332       4       *2      # size_queue     [0]
    4432      32      *2      # size_address   
    5 1       1       +1      # nb_inst_predict
    6 1       1       +1      # nb_inst_decod 
    7 1       1       +1      # nb_inst_update
     51       4       *4      # nb_inst_predict
     61       4       *4      # nb_inst_decod 
     71       4       *4      # nb_inst_update
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Return_Address_Stack/SelfTest/config_multi_context.cfg

    r81 r88  
    444       4       *2      # size_queue     [1]
    558       8       *2      # size_queue     [2]
    6 16      16      *2      # size_queue     [3]
     68       8       *2      # size_queue     [3]
    7732      32      *2      # size_address   
    8 1       1       +1      # nb_inst_predict
    9 1       1       +1      # nb_inst_decod 
    10 1       1       +1      # nb_inst_update
     81       4       *4      # nb_inst_predict
     91       4       *4      # nb_inst_decod 
     101       4       *4      # nb_inst_update
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Return_Address_Stack/SelfTest/src/main.cpp

    r81 r88  
    6060         _nb_inst_predict ,
    6161         _nb_inst_decod   ,
    62          _nb_inst_update  );
     62         _nb_inst_update  ,
     63         true // is_toplevel
     64         );
    6365     
    6466      msg(_("%s"),param->print(1).c_str());
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Return_Address_Stack/SelfTest/src/test.cpp

    r82 r88  
    2323#endif
    2424
     25  Tusage_t _usage = USE_ALL;
     26
     27//   _usage = usage_unset(_usage,USE_SYSTEMC              );
     28//   _usage = usage_unset(_usage,USE_VHDL                 );
     29//   _usage = usage_unset(_usage,USE_VHDL_TESTBENCH       );
     30//   _usage = usage_unset(_usage,USE_VHDL_TESTBENCH_ASSERT);
     31//   _usage = usage_unset(_usage,USE_POSITION             );
     32//   _usage = usage_unset(_usage,USE_STATISTICS           );
     33//   _usage = usage_unset(_usage,USE_INFORMATION          );
     34
    2535  Return_Address_Stack * _Return_Address_Stack = new Return_Address_Stack
    2636    (name.c_str(),
     
    2939#endif
    3040     _param,
    31      USE_ALL);
     41     _usage);
    3242 
    3343#ifdef SYSTEMC
     
    403413
    404414        in_DECOD_VAL [port1]->write(0);
    405 
    406       }
     415        }
    407416    }
    408417
     
    419428  delete in_NRESET;
    420429
    421   delete []  in_PREDICT_VAL          ;
    422   delete [] out_PREDICT_ACK          ;
    423   delete []  in_PREDICT_CONTEXT_ID   ;
    424   delete [] out_PREDICT_HIT          ;
    425   delete []  in_PREDICT_PUSH         ;
    426   delete []  in_PREDICT_ADDRESS_PUSH ;
    427   delete [] out_PREDICT_ADDRESS_POP  ;
    428   delete [] out_PREDICT_INDEX        ;
    429   delete []  in_DECOD_VAL            ;
    430   delete [] out_DECOD_ACK            ;
    431   delete []  in_DECOD_PUSH           ;
    432   delete []  in_DECOD_CONTEXT_ID     ;
    433   delete [] out_DECOD_HIT            ;
    434   delete []  in_DECOD_ADDRESS_PUSH   ;
    435   delete [] out_DECOD_ADDRESS_POP    ;
    436   delete [] out_DECOD_INDEX          ;
    437   delete []  in_DECOD_MISS_PREDICTION;
    438   delete []  in_UPDATE_VAL           ;
    439   delete [] out_UPDATE_ACK           ;
    440   delete []  in_UPDATE_CONTEXT_ID    ;
    441   delete []  in_UPDATE_PUSH          ;
    442   delete []  in_UPDATE_INDEX         ;
    443   delete []  in_UPDATE_ADDRESS       ;
    444   delete []  in_UPDATE_MISS_PREDICTION;
    445   delete []  in_UPDATE_PREDICTION_IFETCH;
     430  DELETE1_SC_SIGNAL( in_PREDICT_VAL             ,_param->_nb_inst_predict);
     431  DELETE1_SC_SIGNAL(out_PREDICT_ACK             ,_param->_nb_inst_predict);
     432  DELETE1_SC_SIGNAL( in_PREDICT_CONTEXT_ID      ,_param->_nb_inst_predict);
     433  DELETE1_SC_SIGNAL(out_PREDICT_HIT             ,_param->_nb_inst_predict);
     434  DELETE1_SC_SIGNAL( in_PREDICT_PUSH            ,_param->_nb_inst_predict);
     435  DELETE1_SC_SIGNAL( in_PREDICT_ADDRESS_PUSH    ,_param->_nb_inst_predict);
     436  DELETE1_SC_SIGNAL(out_PREDICT_ADDRESS_POP     ,_param->_nb_inst_predict);
     437  DELETE1_SC_SIGNAL(out_PREDICT_INDEX           ,_param->_nb_inst_predict);
     438
     439  DELETE1_SC_SIGNAL( in_DECOD_VAL               ,_param->_nb_inst_decod);
     440  DELETE1_SC_SIGNAL(out_DECOD_ACK               ,_param->_nb_inst_decod);
     441  DELETE1_SC_SIGNAL( in_DECOD_CONTEXT_ID        ,_param->_nb_inst_decod);
     442  DELETE1_SC_SIGNAL(out_DECOD_HIT               ,_param->_nb_inst_decod);
     443  DELETE1_SC_SIGNAL( in_DECOD_PUSH              ,_param->_nb_inst_decod);
     444  DELETE1_SC_SIGNAL( in_DECOD_ADDRESS_PUSH      ,_param->_nb_inst_decod);
     445  DELETE1_SC_SIGNAL(out_DECOD_ADDRESS_POP       ,_param->_nb_inst_decod);
     446  DELETE1_SC_SIGNAL(out_DECOD_INDEX             ,_param->_nb_inst_decod);
     447  DELETE1_SC_SIGNAL( in_DECOD_MISS_PREDICTION   ,_param->_nb_inst_decod);
     448
     449  DELETE1_SC_SIGNAL( in_UPDATE_VAL              ,_param->_nb_inst_update);
     450  DELETE1_SC_SIGNAL(out_UPDATE_ACK              ,_param->_nb_inst_update);
     451  DELETE1_SC_SIGNAL( in_UPDATE_CONTEXT_ID       ,_param->_nb_inst_update);
     452  DELETE1_SC_SIGNAL( in_UPDATE_PUSH             ,_param->_nb_inst_update);
     453  DELETE1_SC_SIGNAL( in_UPDATE_ADDRESS          ,_param->_nb_inst_update);
     454  DELETE1_SC_SIGNAL( in_UPDATE_INDEX            ,_param->_nb_inst_update);
     455  DELETE1_SC_SIGNAL( in_UPDATE_MISS_PREDICTION  ,_param->_nb_inst_update);
     456  DELETE1_SC_SIGNAL( in_UPDATE_PREDICTION_IFETCH,_param->_nb_inst_update);
    446457
    447458#endif
Note: See TracChangeset for help on using the changeset viewer.