source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Issue_queue/src/Issue_queue_genMoore.cpp @ 123

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

1) Fix performance
2) add auto generation to SPECINT2000
3) add reset in genMoore and genMealy

  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1#ifdef SYSTEMC
2/*
3 * $Id: Issue_queue_genMoore.cpp 123 2009-06-08 20:43:30Z rosiere $
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Issue_queue/include/Issue_queue.h"
10
11namespace morpheo                    {
12namespace behavioural {
13namespace core {
14namespace multi_ooo_engine {
15namespace ooo_engine {
16namespace issue_queue {
17
18
19#undef  FUNCTION
20#define FUNCTION "Issue_queue::genMoore"
21  void Issue_queue::genMoore (void)
22  {
23    log_begin(Issue_queue,FUNCTION);
24    log_function(Issue_queue,FUNCTION,_name.c_str());
25
26    if (PORT_READ(in_NRESET))
27      {
28    // ===================================================================
29    // =====[ REEXECUTE_UNIT ]============================================
30    // ===================================================================
31   
32    for (uint32_t i=0; i<_param->_nb_inst_reexecute; ++i)
33      {
34        log_printf(TRACE,Issue_queue,FUNCTION,"  * REEXECUTE [%d]",i);
35
36        internal_REEXECUTE_ACK [i] = (_reexecute_queue.size()+i) < _param->_size_reexecute_queue;
37
38        log_printf(TRACE,Issue_queue,FUNCTION,"    * ACK : %d",internal_REEXECUTE_ACK [i]);
39      }
40
41      }
42    else
43      {
44        // Reset
45        for (uint32_t i=0; i<_param->_nb_inst_reexecute; ++i)
46          internal_REEXECUTE_ACK [i] = 0;
47      }
48
49    // Write Output
50    for (uint32_t i=0; i<_param->_nb_inst_reexecute; ++i)
51      PORT_WRITE(out_REEXECUTE_ACK [i], internal_REEXECUTE_ACK [i]);
52
53    (this->*function_genMoore) ();
54
55    log_end(Issue_queue,FUNCTION);
56  };
57
58}; // end namespace issue_queue
59}; // end namespace ooo_engine
60}; // end namespace multi_ooo_engine
61}; // end namespace core
62
63}; // end namespace behavioural
64}; // end namespace morpheo             
65#endif
Note: See TracBrowser for help on using the repository browser.