Last change
on this file since 138 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.1 KB
|
Rev | Line | |
---|
[88] | 1 | #ifdef SYSTEMC |
---|
| 2 | /* |
---|
| 3 | * $Id: Front_end_Glue_genMealy_decod.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_decod" |
---|
| 20 | void Front_end_Glue::genMealy_decod (void) |
---|
| 21 | { |
---|
| 22 | log_begin(Front_end_Glue,FUNCTION); |
---|
| 23 | |
---|
| 24 | // Warning : this function is an sc_method if _have_port_context_id |
---|
| 25 | |
---|
[123] | 26 | if (PORT_READ(in_NRESET)) |
---|
| 27 | { |
---|
[88] | 28 | for (uint32_t i=0; i<_param->_nb_decod_unit; ++i) |
---|
| 29 | for (uint32_t j=0; j<_param->_nb_inst_decod[i]; ++j) |
---|
| 30 | PORT_WRITE(out_DECOD_CONTEXT_ID [i][j],_param->_translate_context_id_from_decod_unit[i][PORT_READ(in_DECOD_DECOD_UNIT_CONTEXT_ID [i][j])]); |
---|
[123] | 31 | } |
---|
[88] | 32 | |
---|
| 33 | log_end(Front_end_Glue,FUNCTION); |
---|
| 34 | }; |
---|
| 35 | |
---|
| 36 | }; // end namespace front_end_glue |
---|
| 37 | }; // end namespace front_end |
---|
| 38 | }; // end namespace multi_front_end |
---|
| 39 | }; // end namespace core |
---|
| 40 | |
---|
| 41 | }; // end namespace behavioural |
---|
| 42 | }; // end namespace morpheo |
---|
| 43 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.