source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Simulation.cpp @ 110

Last change on this file since 110 was 110, checked in by rosiere, 15 years ago

1) OOO_egine : add stat to depiste low perf source
2) Commit : add stat
3) LSU_Pointer : retire - always ack (else combinatory loop). insert - max nb_inst_memory
4) TopLevel? : add debug_idle_time to stop combinatory loop.
5) Issue_queue : add reexecute_queue, new implementation (routage after issue_queue)
6) Decod / Predictor : add "can_continue"

  • Property svn:keywords set to Id
File size: 1.2 KB
Line 
1#ifdef SYSTEMC
2/*
3 * $Id: Simulation.cpp 110 2009-02-19 16:31:47Z rosiere $
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/include/Simulation.h"
10#include "Common/include/ErrorMorpheo.h"
11
12namespace morpheo              {
13namespace behavioural          {
14
15  static bool          simulation_initialized;
16  double              _simulation_nb_cycle;
17  double              _simulation_nb_instruction;
18  std::vector<double> _simulation_nb_instruction_commited;
19
20  void simulation_init (double nb_cycle,
21                        double nb_instruction)
22  {
23    if (not simulation_initialized)
24      {
25        _simulation_nb_cycle                = nb_cycle;
26        _simulation_nb_instruction          = nb_instruction;
27//      _simulation_nb_instruction_commited = new std::vector<double>;
28
29        simulation_initialized = true;
30      }
31    else
32      {
33        msg_printf(WARNING,_("Multi instance of Morpheo : stop condition, take the highest."));
34
35        if (_simulation_nb_cycle < nb_cycle)
36          _simulation_nb_cycle = nb_cycle;
37
38        if (_simulation_nb_instruction < nb_instruction)
39          _simulation_nb_instruction = nb_instruction;
40      }
41  }
42   
43}; // end namespace behavioural         
44}; // end namespace morpheo             
45
46#endif
Note: See TracBrowser for help on using the repository browser.