source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Multi_Banked/src/RegisterFile_Multi_Banked_transition.cpp @ 53

Last change on this file since 53 was 53, checked in by rosiere, 17 years ago
  • Banc de registre multi banc
  • Banc de registre générique.
File size: 1.2 KB
Line 
1#ifdef SYSTEMC
2//#if defined(STATISTICS) or defined(VHDL_TESTBENCH)
3/*
4 * $Id$
5 *
6 * [ Description ]
7 *
8 */
9
10#include "Behavioural/Generic/RegisterFile/RegisterFile_Multi_Banked/include/RegisterFile_Multi_Banked.h"
11
12namespace morpheo                    {
13namespace behavioural {
14namespace generic {
15namespace registerfile {
16namespace registerfile_multi_banked {
17
18
19  void RegisterFile_Multi_Banked::transition (void)
20  {
21    log_printf(FUNC,RegisterFile_Multi_Banked,"transition","Begin");
22   
23    // call function pointer
24//     (this->*function_transition) ();
25
26    for (uint32_t i=0; i<_param._nb_port_write; i++)
27      {
28        if (internal_WRITE_VAL [i] == 1)
29          {
30            Tdata_t data = PORT_READ(in_WRITE_DATA   [i]);
31           
32            // Write in registerFile
33            REGISTER_WRITE(reg_DATA[internal_WRITE_BANK[i]][internal_WRITE_NUM_REG[i]],data);
34          }
35      }
36
37
38
39#ifdef STATISTICS
40    _stat->add();
41#endif   
42
43#ifdef VHDL_TESTBENCH
44    vhdl_testbench_transition ();
45#endif
46
47    log_printf(FUNC,RegisterFile_Multi_Banked,"transition","End");
48  };
49
50}; // end namespace registerfile_multi_banked
51}; // end namespace registerfile
52}; // end namespace generic
53
54}; // end namespace behavioural
55}; // end namespace morpheo             
56#endif
57//#endif
Note: See TracBrowser for help on using the repository browser.