1 | #ifdef SYSTEMC |
---|
2 | //#if defined(STATISTICS) or defined(VHDL_TESTBENCH) |
---|
3 | /* |
---|
4 | * $Id$ |
---|
5 | * |
---|
6 | * [ Description ] |
---|
7 | * |
---|
8 | */ |
---|
9 | |
---|
10 | #include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/include/Register_unit_Glue.h" |
---|
11 | |
---|
12 | namespace morpheo { |
---|
13 | namespace behavioural { |
---|
14 | namespace core { |
---|
15 | namespace multi_execute_loop { |
---|
16 | namespace execute_loop { |
---|
17 | namespace register_unit { |
---|
18 | namespace register_unit_glue { |
---|
19 | |
---|
20 | |
---|
21 | #undef FUNCTION |
---|
22 | #define FUNCTION "Register_unit_Glue::genMealy_retire" |
---|
23 | void Register_unit_Glue::genMealy_retire (void) |
---|
24 | { |
---|
25 | log_printf(FUNC,Register_unit_Glue,FUNCTION,"Begin"); |
---|
26 | |
---|
27 | for (uint32_t i=0; i<_param->_nb_ooo_engine; i++) |
---|
28 | { |
---|
29 | uint32_t x=_param->_nb_inst_retire_rob [i]; |
---|
30 | |
---|
31 | for (uint32_t j=0; j<x; j++) |
---|
32 | { |
---|
33 | Tcontrol_t val = PORT_READ(in_RETIRE_ROB_VAL [i][j]); |
---|
34 | Tcontrol_t gpr_old_use = PORT_READ(in_RETIRE_ROB_RD_OLD_USE [i][j]); |
---|
35 | Tcontrol_t gpr_new_use = PORT_READ(in_RETIRE_ROB_RD_NEW_USE [i][j]); |
---|
36 | Tcontrol_t spr_old_use = PORT_READ(in_RETIRE_ROB_RE_OLD_USE [i][j]); |
---|
37 | Tcontrol_t spr_new_use = PORT_READ(in_RETIRE_ROB_RE_NEW_USE [i][j]); |
---|
38 | Tcontrol_t gpr_old_ack = PORT_READ(in_RETIRE_ROB_GPR_STATUS_OLD_ACK [i][j]); |
---|
39 | Tcontrol_t gpr_new_ack = PORT_READ(in_RETIRE_ROB_GPR_STATUS_NEW_ACK [i][j]); |
---|
40 | Tcontrol_t spr_old_ack = PORT_READ(in_RETIRE_ROB_SPR_STATUS_OLD_ACK [i][j]); |
---|
41 | Tcontrol_t spr_new_ack = PORT_READ(in_RETIRE_ROB_SPR_STATUS_NEW_ACK [i][j]); |
---|
42 | |
---|
43 | PORT_WRITE(out_RETIRE_ROB_ACK [i][j], (gpr_old_ack and |
---|
44 | gpr_new_ack and |
---|
45 | spr_old_ack and |
---|
46 | spr_new_ack)); |
---|
47 | |
---|
48 | PORT_WRITE(out_RETIRE_ROB_GPR_STATUS_OLD_VAL [i][j], |
---|
49 | val and gpr_old_use and gpr_new_ack and spr_old_ack and spr_new_ack); |
---|
50 | PORT_WRITE(out_RETIRE_ROB_GPR_STATUS_NEW_VAL [i][j], |
---|
51 | val and gpr_new_use and gpr_old_ack and spr_old_ack and spr_new_ack); |
---|
52 | PORT_WRITE(out_RETIRE_ROB_SPR_STATUS_OLD_VAL [i][j], |
---|
53 | val and spr_old_use and gpr_old_ack and gpr_new_ack and spr_new_ack); |
---|
54 | PORT_WRITE(out_RETIRE_ROB_SPR_STATUS_NEW_VAL [i][j], |
---|
55 | val and spr_new_use and gpr_old_ack and gpr_new_ack and spr_old_ack ); |
---|
56 | } |
---|
57 | } |
---|
58 | |
---|
59 | log_printf(FUNC,Register_unit_Glue,FUNCTION,"End"); |
---|
60 | }; |
---|
61 | |
---|
62 | }; // end namespace register_unit_glue |
---|
63 | }; // end namespace register_unit |
---|
64 | }; // end namespace execute_loop |
---|
65 | }; // end namespace multi_execute_loop |
---|
66 | }; // end namespace core |
---|
67 | |
---|
68 | }; // end namespace behavioural |
---|
69 | }; // end namespace morpheo |
---|
70 | #endif |
---|
71 | //#endif |
---|