Last change
on this file since 42 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.3 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/include/Two_Level_Branch_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 | namespace two_level_branch_predictor { |
---|
| 18 | |
---|
| 19 | |
---|
| 20 | void Two_Level_Branch_Predictor::vhdl (void) |
---|
| 21 | { |
---|
| 22 | log_printf(FUNC,Two_Level_Branch_Predictor,"vhdl","Begin"); |
---|
[42] | 23 | Vhdl * vhdl = new Vhdl (_name); |
---|
[2] | 24 | |
---|
[42] | 25 | vhdl->set_library_work (_name + "_Pack"); |
---|
[3] | 26 | if (_param._have_bht) |
---|
[42] | 27 | vhdl->set_library_work (_name + "_Branch_History_Table_Pack"); |
---|
[3] | 28 | if (_param._have_pht) |
---|
[42] | 29 | vhdl->set_library_work (_name + "_Pattern_History_Table_Pack"); |
---|
| 30 | vhdl->set_library_work (_name + "_Two_Level_Branch_Predictor_Glue_Pack"); |
---|
[3] | 31 | |
---|
[2] | 32 | vhdl_port (vhdl); |
---|
| 33 | vhdl_declaration (vhdl); |
---|
| 34 | vhdl_body (vhdl); |
---|
| 35 | |
---|
[42] | 36 | vhdl->generate_file(); |
---|
| 37 | |
---|
| 38 | delete vhdl; |
---|
| 39 | |
---|
[2] | 40 | log_printf(FUNC,Two_Level_Branch_Predictor,"vhdl","End"); |
---|
| 41 | |
---|
| 42 | }; |
---|
| 43 | |
---|
| 44 | }; // end namespace two_level_branch_predictor |
---|
| 45 | }; // end namespace meta_predictor |
---|
| 46 | }; // end namespace predictor |
---|
| 47 | }; // end namespace stage_1_ifetch |
---|
| 48 | |
---|
| 49 | }; // end namespace behavioural |
---|
| 50 | }; // end namespace morpheo |
---|
| 51 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.