source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Rename_unit_Glue/src/Rename_unit_Glue_genMealy_retire_valack.cpp @ 112

Last change on this file since 112 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: 2.9 KB
Line 
1#ifdef SYSTEMC
2/*
3 * $Id: Rename_unit_Glue_genMealy_retire_valack.cpp 110 2009-02-19 16:31:47Z rosiere $
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Rename_unit_Glue/include/Rename_unit_Glue.h"
10
11namespace morpheo                    {
12namespace behavioural {
13namespace core {
14namespace multi_ooo_engine {
15namespace ooo_engine {
16namespace rename_unit {
17namespace rename_unit_glue {
18
19
20#undef  FUNCTION
21#define FUNCTION "Rename_unit_Glue::genMealy_retire_valack"
22  void Rename_unit_Glue::genMealy_retire_valack (void)
23  {
24    log_begin(Rename_unit_Glue,FUNCTION);
25    log_function(Rename_unit_Glue,FUNCTION,_name.c_str());
26
27    // Transaction must be in-order - made in commit_unit
28//     Tcontrol_t previous_transaction = true;
29   
30    for (uint32_t i=0; i<_param->_nb_inst_retire; i++)
31      {
32        Tcontrol_t VAL                          = PORT_READ(in_RETIRE_VAL                          [i]);
33        Tcontrol_t LOAD_STORE_QUEUE_POINTER_ACK = PORT_READ(in_RETIRE_LOAD_STORE_QUEUE_POINTER_ACK [i]);
34        Tcontrol_t REGISTER_TRANSLATION_ACK     = PORT_READ(in_RETIRE_REGISTER_TRANSLATION_ACK     [i]);
35
36        Tcontrol_t ACK                          = (// previous_transaction         and
37                                                   LOAD_STORE_QUEUE_POINTER_ACK and
38                                                   REGISTER_TRANSLATION_ACK     );
39        Tcontrol_t LOAD_STORE_QUEUE_POINTER_VAL = (// previous_transaction         and
40                                                   VAL                          and
41                                                   REGISTER_TRANSLATION_ACK     );
42        Tcontrol_t REGISTER_TRANSLATION_VAL     = (// previous_transaction         and
43                                                   VAL                          and
44                                                   LOAD_STORE_QUEUE_POINTER_ACK );
45       
46        PORT_WRITE(out_RETIRE_ACK                          [i], ACK                         );
47        PORT_WRITE(out_RETIRE_LOAD_STORE_QUEUE_POINTER_VAL [i], LOAD_STORE_QUEUE_POINTER_VAL);
48        PORT_WRITE(out_RETIRE_REGISTER_TRANSLATION_VAL     [i], REGISTER_TRANSLATION_VAL    );
49
50//      previous_transaction = VAL and ACK;
51
52        log_printf(TRACE,Rename_unit_Glue,FUNCTION,"  * retire [%d]",i);
53        log_printf(TRACE,Rename_unit_Glue,FUNCTION,"    * val (commit_unit)            (r) : %d",VAL                         );
54        log_printf(TRACE,Rename_unit_Glue,FUNCTION,"    * ack (commit_unit)            (w) : %d",ACK                         );
55        log_printf(TRACE,Rename_unit_Glue,FUNCTION,"    * register_translation_val     (w) : %d",REGISTER_TRANSLATION_VAL    );
56        log_printf(TRACE,Rename_unit_Glue,FUNCTION,"    * register_translation_ack     (r) : %d",REGISTER_TRANSLATION_ACK    );
57        log_printf(TRACE,Rename_unit_Glue,FUNCTION,"    * load_store_queue_pointer_val (w) : %d",LOAD_STORE_QUEUE_POINTER_VAL);
58        log_printf(TRACE,Rename_unit_Glue,FUNCTION,"    * load_store_queue_pointer_ack (r) : %d",LOAD_STORE_QUEUE_POINTER_ACK);
59      }
60
61    log_end(Rename_unit_Glue,FUNCTION);
62  };
63
64}; // end namespace rename_unit_glue
65}; // end namespace rename_unit
66}; // end namespace ooo_engine
67}; // end namespace multi_ooo_engine
68}; // end namespace core
69
70}; // end namespace behavioural
71}; // end namespace morpheo             
72#endif
Note: See TracBrowser for help on using the repository browser.