Last change
on this file since 83 was
82,
checked in by rosiere, 16 years ago
|
- support locale (now must "just" translate)
- update all component with new test format
- update all component with usage
- New component : decod queue and prediction_unit
|
File size:
1.2 KB
|
Line | |
---|
1 | #ifdef SYSTEMC |
---|
2 | /* |
---|
3 | * $Id$ |
---|
4 | * |
---|
5 | * [ Description ] |
---|
6 | * |
---|
7 | */ |
---|
8 | |
---|
9 | #include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Prediction_unit_Glue/include/Prediction_unit_Glue.h" |
---|
10 | |
---|
11 | namespace morpheo { |
---|
12 | namespace behavioural { |
---|
13 | namespace core { |
---|
14 | namespace multi_front_end { |
---|
15 | namespace front_end { |
---|
16 | namespace prediction_unit { |
---|
17 | namespace prediction_unit_glue { |
---|
18 | |
---|
19 | |
---|
20 | #undef FUNCTION |
---|
21 | #define FUNCTION "Prediction_unit_Glue::transition" |
---|
22 | void Prediction_unit_Glue::transition (void) |
---|
23 | { |
---|
24 | log_printf(FUNC,Prediction_unit_Glue,FUNCTION,"Begin"); |
---|
25 | |
---|
26 | if (PORT_READ(in_NRESET) == 0) |
---|
27 | { |
---|
28 | reg_PREDICT_PRIORITY = 0; |
---|
29 | reg_DECOD_PRIORITY = 0; |
---|
30 | } |
---|
31 | else |
---|
32 | { |
---|
33 | // Round robin priority |
---|
34 | reg_PREDICT_PRIORITY = (reg_PREDICT_PRIORITY+_param->_nb_inst_branch_predict)%_param->_nb_context; |
---|
35 | reg_DECOD_PRIORITY = (reg_DECOD_PRIORITY +1)%_param->_nb_decod_unit; |
---|
36 | } |
---|
37 | #if defined(STATISTICS) or defined(VHDL_TESTBENCH) |
---|
38 | end_cycle (); |
---|
39 | #endif |
---|
40 | |
---|
41 | log_printf(FUNC,Prediction_unit_Glue,FUNCTION,"End"); |
---|
42 | }; |
---|
43 | |
---|
44 | }; // end namespace prediction_unit_glue |
---|
45 | }; // end namespace prediction_unit |
---|
46 | }; // end namespace front_end |
---|
47 | }; // end namespace multi_front_end |
---|
48 | }; // end namespace core |
---|
49 | |
---|
50 | }; // end namespace behavioural |
---|
51 | }; // end namespace morpheo |
---|
52 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.