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 @ 88

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

Almost complete design
with Test and test platform

  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1#ifdef SYSTEMC
2/*
3 * $Id: Rename_unit_Glue_genMealy_retire_valack.cpp 88 2008-12-10 18:31:39Z 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
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
53    log_end(Rename_unit_Glue,FUNCTION);
54  };
55
56}; // end namespace rename_unit_glue
57}; // end namespace rename_unit
58}; // end namespace ooo_engine
59}; // end namespace multi_ooo_engine
60}; // end namespace core
61
62}; // end namespace behavioural
63}; // end namespace morpheo             
64#endif
Note: See TracBrowser for help on using the repository browser.