source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/OOO_Engine_Glue/src/OOO_Engine_Glue_genMealy_spr.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.4 KB
Line 
1#ifdef SYSTEMC
2/*
3 * $Id: OOO_Engine_Glue_genMealy_spr.cpp 123 2009-06-08 20:43:30Z rosiere $
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/OOO_Engine_Glue/include/OOO_Engine_Glue.h"
10#include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Special_Register_unit/include/SPR.h"
11
12namespace morpheo                    {
13namespace behavioural {
14namespace core {
15namespace multi_ooo_engine {
16namespace ooo_engine {
17namespace ooo_engine_glue {
18
19
20#undef  FUNCTION
21#define FUNCTION "OOO_Engine_Glue::genMealy_spr"
22  void OOO_Engine_Glue::genMealy_spr (void)
23  {
24    log_begin(OOO_Engine_Glue,FUNCTION);
25
26//     if (PORT_READ(in_NRESET))
27      {
28    for (uint32_t i=0; i<_param->_nb_front_end; ++i)
29      for (uint32_t j=0; j<_param->_nb_context[i]; ++j)
30        {
31          special_register_unit::SR * sr = new special_register_unit::SR (i,j);
32         
33          sr->write(PORT_READ(in_SPR_SPECIAL_REGISTER_UNIT_SR [i][j]));
34
35          PORT_WRITE(out_SPR_SR_IEE             [i][j],sr->iee);
36          PORT_WRITE(out_SPR_SR_EPH             [i][j],sr->eph);
37          PORT_WRITE(out_SPR_COMMIT_UNIT_SR_OVE [i][j],sr->ove);
38          PORT_WRITE(out_SPR_RENAME_UNIT_SR     [i][j],sr->read());
39
40          delete sr;
41        }
42      }
43
44    log_end(OOO_Engine_Glue,FUNCTION);
45  };
46
47}; // end namespace ooo_engine_glue
48}; // end namespace ooo_engine
49}; // end namespace multi_ooo_engine
50}; // end namespace core
51
52}; // end namespace behavioural
53}; // end namespace morpheo             
54#endif
Note: See TracBrowser for help on using the repository browser.