source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Special_Register_unit/src/Special_Register_unit_genMoore.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: 1.3 KB
Line 
1#ifdef SYSTEMC
2/*
3 * $Id: Special_Register_unit_genMoore.cpp 88 2008-12-10 18:31:39Z 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
25    // ===================================================================
26    // =====[ SPR_READ ]==================================================
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        PORT_WRITE(out_SPR_READ_SR [i][j],_spr [i][j][GROUP_SYSTEM_AND_CONTROL][SPR_SR]->read());
31//      {
32//        SR * sr = static_cast<SR*>(_spr [i][j][GROUP_SYSTEM_AND_CONTROL][SPR_SR]);
33//        PORT_WRITE(out_SPR_READ_SR [i][j],sr->read());
34//      }
35
36    log_end(Special_Register_unit,FUNCTION);
37  };
38
39}; // end namespace special_register_unit
40}; // end namespace ooo_engine
41}; // end namespace multi_ooo_engine
42}; // end namespace core
43
44}; // end namespace behavioural
45}; // end namespace morpheo             
46#endif
Note: See TracBrowser for help on using the repository browser.