Last change
on this file since 136 was
131,
checked in by rosiere, 15 years ago
|
1) add constant method
2) test with systemc 2.2.0
|
-
Property svn:keywords set to
Id
|
File size:
1.1 KB
|
Line | |
---|
1 | #ifdef SYSTEMC |
---|
2 | /* |
---|
3 | * $Id: Commit_unit_constant.cpp 131 2009-07-08 18:40:08Z rosiere $ |
---|
4 | * |
---|
5 | * [ Description ] |
---|
6 | * |
---|
7 | */ |
---|
8 | |
---|
9 | #include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Commit_unit/include/Commit_unit.h" |
---|
10 | #include "Behavioural/include/Simulation.h" |
---|
11 | |
---|
12 | namespace morpheo { |
---|
13 | namespace behavioural { |
---|
14 | namespace core { |
---|
15 | namespace multi_ooo_engine { |
---|
16 | namespace ooo_engine { |
---|
17 | namespace commit_unit { |
---|
18 | |
---|
19 | #undef FUNCTION |
---|
20 | #define FUNCTION "Commit_unit::constant" |
---|
21 | void Commit_unit::constant (void) |
---|
22 | { |
---|
23 | log_begin(Commit_unit,FUNCTION); |
---|
24 | log_function(Commit_unit,FUNCTION,_name.c_str()); |
---|
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 | internal_EVENT_ACK [i][j] = 1; |
---|
30 | PORT_WRITE(out_EVENT_ACK [i][j], internal_EVENT_ACK [i][j]); |
---|
31 | |
---|
32 | internal_RETIRE_EVENT_VAL [i][j] = 1; |
---|
33 | PORT_WRITE(out_RETIRE_EVENT_VAL [i][j], internal_RETIRE_EVENT_VAL [i][j]); |
---|
34 | } |
---|
35 | |
---|
36 | log_end(Commit_unit,FUNCTION); |
---|
37 | }; |
---|
38 | |
---|
39 | }; // end namespace commit_unit |
---|
40 | }; // end namespace ooo_engine |
---|
41 | }; // end namespace multi_ooo_engine |
---|
42 | }; // end namespace core |
---|
43 | |
---|
44 | }; // end namespace behavioural |
---|
45 | }; // end namespace morpheo |
---|
46 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.