source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Special_Register_unit/src/Special_Register_unit_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.4 KB
Line 
1#ifdef SYSTEMC
2/*
3 * $Id: Special_Register_unit_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/Special_Register_unit/include/Special_Register_unit.h"
10
11namespace morpheo                    {
12namespace behavioural {
13namespace core {
14namespace multi_ooo_engine {
15namespace ooo_engine {
16namespace special_register_unit {
17
18
19#undef  FUNCTION
20#define FUNCTION "Special_Register_unit::genMoore"
21  void Special_Register_unit::genMoore (void)
22  {
23    log_begin(Special_Register_unit,FUNCTION);
24    log_function(Special_Register_unit,FUNCTION,_name.c_str());
25
26//     if (PORT_READ(in_NRESET))
27      {
28    // ===================================================================
29    // =====[ SPR_READ ]==================================================
30    // ===================================================================
31    for (uint32_t i=0; i<_param->_nb_front_end; i++)
32      for (uint32_t j=0; j<_param->_nb_context[i]; j++)
33        PORT_WRITE(out_SPR_READ_SR [i][j],_spr [i][j][GROUP_SYSTEM_AND_CONTROL][SPR_SR]->read());
34//      {
35//        SR * sr = static_cast<SR*>(_spr [i][j][GROUP_SYSTEM_AND_CONTROL][SPR_SR]);
36//        PORT_WRITE(out_SPR_READ_SR [i][j],sr->read());
37//      }
38      }
39
40    log_end(Special_Register_unit,FUNCTION);
41  };
42
43}; // end namespace special_register_unit
44}; // end namespace ooo_engine
45}; // end namespace multi_ooo_engine
46}; // end namespace core
47
48}; // end namespace behavioural
49}; // end namespace morpheo             
50#endif
Note: See TracBrowser for help on using the repository browser.