Last change
on this file since 134 was
123,
checked in by rosiere, 15 years ago
|
1) Fix performance
2) add auto generation to SPECINT2000
3) add reset in genMoore and genMealy
|
-
Property svn:keywords set to
Id
|
File size:
1.0 KB
|
Rev | Line | |
---|
[108] | 1 | #ifdef SYSTEMC |
---|
| 2 | /* |
---|
| 3 | * $Id: Front_end_Glue_genMealy_nb_inst.cpp 123 2009-06-08 20:43:30Z rosiere $ |
---|
| 4 | * |
---|
| 5 | * [ Description ] |
---|
| 6 | * |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | #include "Behavioural/Core/Multi_Front_end/Front_end/Front_end_Glue/include/Front_end_Glue.h" |
---|
| 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | namespace core { |
---|
| 14 | namespace multi_front_end { |
---|
| 15 | namespace front_end { |
---|
| 16 | namespace front_end_glue { |
---|
| 17 | |
---|
| 18 | #undef FUNCTION |
---|
| 19 | #define FUNCTION "Front_end_Glue::genMealy_nb_inst" |
---|
| 20 | void Front_end_Glue::genMealy_nb_inst (void) |
---|
| 21 | { |
---|
| 22 | log_begin(Front_end_Glue,FUNCTION); |
---|
| 23 | |
---|
[123] | 24 | if (PORT_READ(in_NRESET)) |
---|
| 25 | { |
---|
[108] | 26 | for (uint32_t i=0; i<_param->_nb_context; ++i) |
---|
| 27 | { |
---|
| 28 | Tcounter_t nb_inst = PORT_READ(in_NB_INST_DECOD_UNIT_DECOD_ALL [i]); |
---|
| 29 | |
---|
| 30 | PORT_WRITE(out_NB_INST_DECOD_ALL [i], nb_inst); |
---|
| 31 | PORT_WRITE(out_NB_INST_CONTEXT_STATE_DECOD_ALL [i], nb_inst); |
---|
| 32 | } |
---|
[123] | 33 | } |
---|
[108] | 34 | |
---|
| 35 | log_end(Front_end_Glue,FUNCTION); |
---|
| 36 | }; |
---|
| 37 | |
---|
| 38 | }; // end namespace front_end_glue |
---|
| 39 | }; // end namespace front_end |
---|
| 40 | }; // end namespace multi_front_end |
---|
| 41 | }; // end namespace core |
---|
| 42 | |
---|
| 43 | }; // end namespace behavioural |
---|
| 44 | }; // end namespace morpheo |
---|
| 45 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.