1 | #ifdef SYSTEMC |
---|
2 | /* |
---|
3 | * $Id: Load_store_unit_constant.cpp 131 2009-07-08 18:40:08Z rosiere $ |
---|
4 | * |
---|
5 | * [ Description ] |
---|
6 | * |
---|
7 | */ |
---|
8 | |
---|
9 | #include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Load_store_unit/include/Load_store_unit.h" |
---|
10 | |
---|
11 | namespace morpheo { |
---|
12 | namespace behavioural { |
---|
13 | namespace core { |
---|
14 | namespace multi_execute_loop { |
---|
15 | namespace execute_loop { |
---|
16 | namespace multi_execute_unit { |
---|
17 | namespace execute_unit { |
---|
18 | namespace load_store_unit { |
---|
19 | |
---|
20 | |
---|
21 | #undef FUNCTION |
---|
22 | #define FUNCTION "Load_store_unit::constant" |
---|
23 | void Load_store_unit::constant (void) |
---|
24 | { |
---|
25 | log_printf(FUNC,Load_store_unit,FUNCTION,"Begin"); |
---|
26 | |
---|
27 | internal_DCACHE_RSP_ACK = 1; |
---|
28 | PORT_WRITE(out_DCACHE_RSP_ACK [0], internal_DCACHE_RSP_ACK); |
---|
29 | for (uint32_t i=1; i<_param->_nb_cache_port; ++i) |
---|
30 | { |
---|
31 | PORT_WRITE(out_DCACHE_RSP_ACK [i], 0); |
---|
32 | PORT_WRITE(out_DCACHE_REQ_VAL [i], 0); |
---|
33 | } |
---|
34 | |
---|
35 | for (uint32_t i=1; i<_param->_nb_inst_memory; i++) |
---|
36 | { |
---|
37 | PORT_WRITE(out_MEMORY_OUT_VAL [i], 0); |
---|
38 | } |
---|
39 | |
---|
40 | log_printf(FUNC,Load_store_unit,FUNCTION,"End"); |
---|
41 | }; |
---|
42 | |
---|
43 | }; // end namespace load_store_unit |
---|
44 | }; // end namespace execute_unit |
---|
45 | }; // end namespace multi_execute_unit |
---|
46 | }; // end namespace execute_loop |
---|
47 | }; // end namespace multi_execute_loop |
---|
48 | }; // end namespace core |
---|
49 | |
---|
50 | }; // end namespace behavioural |
---|
51 | }; // end namespace morpheo |
---|
52 | #endif |
---|