source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Branch_Target_Buffer/Branch_Target_Buffer_Register/src/Branch_Target_Buffer_Register_constant.cpp @ 131

Last change on this file since 131 was 131, checked in by rosiere, 15 years ago

1) add constant method
2) test with systemc 2.2.0

  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1#ifdef SYSTEMC
2/*
3 * $Id: Branch_Target_Buffer_Register_constant.cpp 131 2009-07-08 18:40:08Z rosiere $
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Branch_Target_Buffer/Branch_Target_Buffer_Register/include/Branch_Target_Buffer_Register.h"
10
11namespace morpheo                    {
12namespace behavioural {
13namespace core {
14namespace multi_front_end {
15namespace front_end {
16namespace prediction_unit {
17namespace branch_target_buffer {
18namespace branch_target_buffer_register {
19
20#undef  FUNCTION
21#define FUNCTION "Branch_Target_Buffer_Register::constant"
22  void Branch_Target_Buffer_Register::constant (void)
23  {
24    log_begin(Branch_Target_Buffer_Register,FUNCTION);
25    log_function(Branch_Target_Buffer_Register,FUNCTION,_name.c_str());
26
27    for (uint32_t i=0; i<_param->_nb_inst_predict; i++)
28      {
29        PORT_WRITE(out_PREDICT_ACK [i],1);
30      }
31    for (uint32_t i=0; i<_param->_nb_inst_decod; i++)
32      {
33        internal_DECOD_ACK [i] = 1;
34        PORT_WRITE(out_DECOD_ACK [i], internal_DECOD_ACK [i]);
35      }
36    for (uint32_t i=0; i<_param->_nb_inst_update; i++)
37      {
38        internal_UPDATE_ACK [i] = 1;
39        PORT_WRITE(out_UPDATE_ACK [i], internal_UPDATE_ACK [i]);
40      }
41   
42    log_end(Branch_Target_Buffer_Register,FUNCTION);
43  };
44
45}; // end namespace branch_target_buffer_register
46}; // end namespace branch_target_buffer
47}; // end namespace prediction_unit
48}; // end namespace front_end
49}; // end namespace multi_front_end
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.