source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Update_Prediction_Table/src/Update_Prediction_Table_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.3 KB
Line 
1#ifdef SYSTEMC
2/*
3 * $Id: Update_Prediction_Table_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/Update_Prediction_Table/include/Update_Prediction_Table.h"
10
11namespace morpheo                    {
12namespace behavioural {
13namespace core {
14namespace multi_front_end {
15namespace front_end {
16namespace prediction_unit {
17namespace update_prediction_table {
18
19#undef  FUNCTION
20#define FUNCTION "Update_Prediction_Table::constant"
21  void Update_Prediction_Table::constant (void)
22  {
23    log_begin(Update_Prediction_Table,FUNCTION);
24    log_function(Update_Prediction_Table,FUNCTION,_name.c_str());
25
26    for (uint32_t i=0; i<_param->_nb_inst_branch_complete; i++)
27      {
28        internal_BRANCH_COMPLETE_ACK [i] = 1;
29        PORT_WRITE(out_BRANCH_COMPLETE_ACK [i], internal_BRANCH_COMPLETE_ACK [i]);
30      }
31    for (uint32_t i=0; i<_param->_nb_context; ++i)
32      {
33        internal_EVENT_ACK [i] = 1;
34        PORT_WRITE(out_EVENT_ACK [i], internal_EVENT_ACK [i]);
35      }
36
37    log_end(Update_Prediction_Table,FUNCTION);
38  };
39
40}; // end namespace update_prediction_table
41}; // end namespace prediction_unit
42}; // end namespace front_end
43}; // end namespace multi_front_end
44}; // end namespace core
45
46}; // end namespace behavioural
47}; // end namespace morpheo             
48#endif
Note: See TracBrowser for help on using the repository browser.