source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/src/RegisterFile_Monolithic_statistics_declaration.cpp @ 84

Last change on this file since 84 was 84, checked in by rosiere, 16 years ago

Change Address_manager :

  • before : pc_previous, pc_current, pc_next
  • now : pc_current, pc_next, pc_next_next.

pc_next is send at the prediction_unit, it return the instruction_enable and pc_next_next

  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1#ifdef STATISTICS
2/*
3 * $Id: RegisterFile_Monolithic_statistics_declaration.cpp 84 2008-05-13 18:04:50Z rosiere $
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/include/RegisterFile_Monolithic.h"
10
11namespace morpheo                    {
12namespace behavioural                {
13namespace generic                    {
14namespace registerfile               {
15namespace registerfile_monolithic    {
16
17  void RegisterFile_Monolithic::statistics_declaration (morpheo::behavioural::Parameters_Statistics * param_statistics)
18  {
19    _stat = new Stat (static_cast<std::string>(_name),
20                      "RegisterFile_Monolithic",
21                      param_statistics);
22
23    _stat_nb_read           = _stat->create_variable("nb_read" );
24    _stat_nb_write          = _stat->create_variable("nb_write");
25
26    _stat->create_expr_average_by_cycle("average_read" , "nb_read" , "", _("Average read by cycle" ));
27    _stat->create_expr_average_by_cycle("average_write", "nb_write", "", _("Average write by cycle"));
28
29    _stat->create_expr_percent         ("percent_use_read" , "average_read" , toString(_param->_nb_port_read +_param->_nb_port_read_write), _("Percent read by cycle" ));
30    _stat->create_expr_percent         ("percent_use_write", "average_write", toString(_param->_nb_port_write+_param->_nb_port_read_write), _("Percent write by cycle"));
31
32  };
33
34}; // end namespace registerfile_monolithic
35}; // end namespace registerfile
36}; // end namespace generic
37}; // end namespace behavioural         
38}; // end namespace morpheo             
39#endif
Note: See TracBrowser for help on using the repository browser.