Last change
on this file since 43 was
5,
checked in by rosiere, 18 years ago
|
Ajout du composant Meta_Predictor
|
File size:
1.1 KB
|
Rev | Line | |
---|
[5] | 1 | #ifdef VHDL |
---|
| 2 | /* |
---|
| 3 | * $Id$ |
---|
| 4 | * |
---|
| 5 | * [ Description ] |
---|
| 6 | * |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | #include "Behavioural/Stage_1_Ifetch/Predictor/Meta_Predictor/include/Meta_Predictor.h" |
---|
| 10 | #include "Behavioural/include/Vhdl.h" |
---|
| 11 | |
---|
| 12 | namespace morpheo { |
---|
| 13 | namespace behavioural { |
---|
| 14 | namespace stage_1_ifetch { |
---|
| 15 | namespace predictor { |
---|
| 16 | namespace meta_predictor { |
---|
| 17 | |
---|
| 18 | |
---|
| 19 | void Meta_Predictor::vhdl (void) |
---|
| 20 | { |
---|
| 21 | log_printf(FUNC,Meta_Predictor,"vhdl","Begin"); |
---|
| 22 | Vhdl vhdl (_name); |
---|
| 23 | |
---|
| 24 | vhdl.set_library_work (_name + "_Pack"); |
---|
| 25 | vhdl.set_library_work (_name + "_Meta_Predictor_Glue_Pack"); |
---|
| 26 | if (_param._have_meta_predictor) |
---|
| 27 | { |
---|
| 28 | vhdl.set_library_work (_name + "_Two_Level_Branch_Predictor_0_Pack"); |
---|
| 29 | vhdl.set_library_work (_name + "_Two_Level_Branch_Predictor_1_Pack"); |
---|
| 30 | } |
---|
| 31 | vhdl.set_library_work (_name + "_Two_Level_Branch_Predictor_2_Pack"); |
---|
| 32 | |
---|
| 33 | vhdl_port (vhdl); |
---|
| 34 | vhdl_declaration (vhdl); |
---|
| 35 | vhdl_body (vhdl); |
---|
| 36 | |
---|
| 37 | vhdl.generate_file(); |
---|
| 38 | log_printf(FUNC,Meta_Predictor,"vhdl","End"); |
---|
| 39 | |
---|
| 40 | }; |
---|
| 41 | |
---|
| 42 | }; // end namespace meta_predictor |
---|
| 43 | }; // end namespace predictor |
---|
| 44 | }; // end namespace stage_1_ifetch |
---|
| 45 | |
---|
| 46 | }; // end namespace behavioural |
---|
| 47 | }; // end namespace morpheo |
---|
| 48 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.