Last change
on this file since 111 was
111,
checked in by rosiere, 15 years ago
|
1) Decod_queue : multi implementation (one_fifo, multi_fifo)
2) Issue_queue : multi implementation (in_order, out_of_order)
3) Direction : Add Meta predictor
4) Context_State : re add Branch_complete, More priority to Load miss (is not speculative)
5) Return_Address_Stack : update reg_PREDICT pointer on decod miss prediction
6) UPT : Fix bug in multi event
7) Prediction_glue : in read_stack case, insert in UPT pc_next
8) Rename select : when rob have an event (need flush), read_r{a,b,c} and write_r{d,e} is set at 0
|
-
Property svn:keywords set to
Id
|
File size:
1.0 KB
|
Rev | Line | |
---|
[88] | 1 | #ifdef SYSTEMC |
---|
| 2 | /* |
---|
| 3 | * $Id: Core_Glue_transition.cpp 111 2009-02-27 18:37:40Z rosiere $ |
---|
| 4 | * |
---|
| 5 | * [ Description ] |
---|
| 6 | * |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | #include "Behavioural/Core/Core_Glue/include/Core_Glue.h" |
---|
| 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | namespace core { |
---|
| 14 | namespace core_glue { |
---|
| 15 | |
---|
| 16 | |
---|
| 17 | #undef FUNCTION |
---|
| 18 | #define FUNCTION "Core_Glue::transition" |
---|
| 19 | void Core_Glue::transition (void) |
---|
| 20 | { |
---|
| 21 | log_begin(Core_Glue,FUNCTION); |
---|
| 22 | |
---|
| 23 | if (PORT_READ(in_NRESET) == 0) |
---|
| 24 | { |
---|
| 25 | for (uint32_t i=0; i<_param->_nb_execute_loop; ++i) |
---|
[111] | 26 | { |
---|
| 27 | _priority_ooo_engine [i]->reset(); |
---|
| 28 | _priority_read_unit [i]->reset(); |
---|
| 29 | } |
---|
[88] | 30 | } |
---|
| 31 | else |
---|
| 32 | { |
---|
| 33 | // next priority |
---|
| 34 | for (uint32_t i=0; i<_param->_nb_execute_loop; ++i) |
---|
[111] | 35 | { |
---|
| 36 | _priority_ooo_engine [i]->transition(); |
---|
| 37 | _priority_read_unit [i]->transition(); |
---|
| 38 | } |
---|
[88] | 39 | } |
---|
| 40 | |
---|
| 41 | #if defined(STATISTICS) or defined(VHDL_TESTBENCH) |
---|
| 42 | end_cycle (); |
---|
| 43 | #endif |
---|
| 44 | |
---|
| 45 | log_end(Core_Glue,FUNCTION); |
---|
| 46 | }; |
---|
| 47 | |
---|
| 48 | }; // end namespace core_glue |
---|
| 49 | }; // end namespace core |
---|
| 50 | |
---|
| 51 | }; // end namespace behavioural |
---|
| 52 | }; // end namespace morpheo |
---|
| 53 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.