Last change
on this file since 43 was
42,
checked in by rosiere, 17 years ago
|
Modification des classes d'encapsulation des interfaces :
- gère les signaux à écrire dans le vhdl
- les traces pour le testbench
- la génération des vhdl structurelles
-> test sur la Pattern History Table
|
File size:
1.2 KB
|
Rev | Line | |
---|
[2] | 1 | #ifdef VHDL |
---|
| 2 | /* |
---|
| 3 | * $Id$ |
---|
| 4 | * |
---|
| 5 | * [ Description ] |
---|
| 6 | * |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | #include "Behavioural/Stage_1_Ifetch/Predictor/Meta_Predictor/Two_Level_Branch_Predictor/Pattern_History_Table/include/Pattern_History_Table.h" |
---|
| 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | namespace stage_1_ifetch { |
---|
| 14 | namespace predictor { |
---|
| 15 | namespace meta_predictor { |
---|
| 16 | namespace two_level_branch_predictor { |
---|
| 17 | namespace pattern_history_table { |
---|
| 18 | |
---|
| 19 | |
---|
[42] | 20 | void Pattern_History_Table::vhdl_body (Vhdl * & vhdl) |
---|
[2] | 21 | { |
---|
| 22 | log_printf(FUNC,Pattern_History_Table,"vhdl_body","Begin"); |
---|
| 23 | |
---|
[42] | 24 | // vhdl->set_body ("-- Output : always at '1'"); |
---|
[15] | 25 | // for (uint32_t i=0; i<_param._nb_branch_complete; i++) |
---|
[42] | 26 | // vhdl->set_body ("out_BRANCH_COMPLETE_ACK_"+toString(i)+" <= '1';"); |
---|
[15] | 27 | // for (uint32_t i=0; i<_param._nb_prediction ; i++) |
---|
[42] | 28 | // vhdl->set_body ("out_PREDICT_ACK_"+toString(i)+" <= '1';"); |
---|
| 29 | // vhdl->set_body (""); |
---|
[2] | 30 | |
---|
| 31 | log_printf(FUNC,Pattern_History_Table,"vhdl_body","End"); |
---|
| 32 | }; |
---|
| 33 | |
---|
| 34 | }; // end namespace pattern_history_table |
---|
| 35 | }; // end namespace two_level_branch_predictor |
---|
| 36 | }; // end namespace meta_predictor |
---|
| 37 | }; // end namespace predictor |
---|
| 38 | }; // end namespace stage_1_ifetch |
---|
| 39 | |
---|
| 40 | }; // end namespace behavioural |
---|
| 41 | }; // end namespace morpheo |
---|
| 42 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.