source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Special_Register_unit/src/Special_Register_unit_genMoore.cpp @ 98

Last change on this file since 98 was 98, checked in by rosiere, 16 years ago

1) Fix bug (read unit, RAT -> write in R0, SPR desallocation ...)
2) Change VHDL Execute_queue -> use Generic/Queue?
3) Complete document on VHDL generation
4) Add soc test

  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1#ifdef SYSTEMC
2/*
3 * $Id: Special_Register_unit_genMoore.cpp 98 2008-12-31 10:18:08Z 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    // ===================================================================
27    // =====[ SPR_READ ]==================================================
28    // ===================================================================
29    for (uint32_t i=0; i<_param->_nb_front_end; i++)
30      for (uint32_t j=0; j<_param->_nb_context[i]; j++)
31        PORT_WRITE(out_SPR_READ_SR [i][j],_spr [i][j][GROUP_SYSTEM_AND_CONTROL][SPR_SR]->read());
32//      {
33//        SR * sr = static_cast<SR*>(_spr [i][j][GROUP_SYSTEM_AND_CONTROL][SPR_SR]);
34//        PORT_WRITE(out_SPR_READ_SR [i][j],sr->read());
35//      }
36
37    log_end(Special_Register_unit,FUNCTION);
38  };
39
40}; // end namespace special_register_unit
41}; // end namespace ooo_engine
42}; // end namespace multi_ooo_engine
43}; // end namespace core
44
45}; // end namespace behavioural
46}; // end namespace morpheo             
47#endif
Note: See TracBrowser for help on using the repository browser.