1 | #ifdef SYSTEMC |
---|
2 | /* |
---|
3 | * $Id: OOO_Engine_Glue_genMealy_spr.cpp 88 2008-12-10 18:31:39Z rosiere $ |
---|
4 | * |
---|
5 | * [ Description ] |
---|
6 | * |
---|
7 | */ |
---|
8 | |
---|
9 | #include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/OOO_Engine_Glue/include/OOO_Engine_Glue.h" |
---|
10 | #include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Special_Register_unit/include/SPR.h" |
---|
11 | |
---|
12 | namespace morpheo { |
---|
13 | namespace behavioural { |
---|
14 | namespace core { |
---|
15 | namespace multi_ooo_engine { |
---|
16 | namespace ooo_engine { |
---|
17 | namespace ooo_engine_glue { |
---|
18 | |
---|
19 | |
---|
20 | #undef FUNCTION |
---|
21 | #define FUNCTION "OOO_Engine_Glue::genMealy_spr" |
---|
22 | void OOO_Engine_Glue::genMealy_spr (void) |
---|
23 | { |
---|
24 | log_begin(OOO_Engine_Glue,FUNCTION); |
---|
25 | |
---|
26 | for (uint32_t i=0; i<_param->_nb_front_end; ++i) |
---|
27 | for (uint32_t j=0; j<_param->_nb_context[i]; ++j) |
---|
28 | { |
---|
29 | special_register_unit::SR * sr = new special_register_unit::SR (i,j); |
---|
30 | |
---|
31 | sr->write(PORT_READ(in_SPR_SPECIAL_REGISTER_UNIT_SR [i][j])); |
---|
32 | |
---|
33 | PORT_WRITE(out_SPR_SR_IEE [i][j],sr->iee); |
---|
34 | PORT_WRITE(out_SPR_SR_EPH [i][j],sr->eph); |
---|
35 | PORT_WRITE(out_SPR_COMMIT_UNIT_SR_OVE [i][j],sr->ove); |
---|
36 | PORT_WRITE(out_SPR_RENAME_UNIT_SR [i][j],sr->read()); |
---|
37 | |
---|
38 | delete sr; |
---|
39 | } |
---|
40 | |
---|
41 | log_end(OOO_Engine_Glue,FUNCTION); |
---|
42 | }; |
---|
43 | |
---|
44 | }; // end namespace ooo_engine_glue |
---|
45 | }; // end namespace ooo_engine |
---|
46 | }; // end namespace multi_ooo_engine |
---|
47 | }; // end namespace core |
---|
48 | |
---|
49 | }; // end namespace behavioural |
---|
50 | }; // end namespace morpheo |
---|
51 | #endif |
---|