Last change
on this file since 15 was
3,
checked in by kane, 17 years ago
|
1) Ajout d'un "printer" XML pour la configuration de paramètres
2) Fin du composant "Two_Level_Branch_Predictor"
validation * systemc
|
File size:
1.2 KB
|
Line | |
---|
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"); |
---|
23 | Vhdl vhdl (_name); |
---|
24 | |
---|
25 | vhdl.set_library_work (_name + "_Pack"); |
---|
26 | if (_param._have_bht) |
---|
27 | vhdl.set_library_work (_name + "_Branch_History_Table_Pack"); |
---|
28 | if (_param._have_pht) |
---|
29 | vhdl.set_library_work (_name + "_Pattern_History_Table_Pack"); |
---|
30 | vhdl.set_library_work (_name + "_Two_Level_Branch_Predictor_Glue_Pack"); |
---|
31 | |
---|
32 | vhdl_port (vhdl); |
---|
33 | vhdl_declaration (vhdl); |
---|
34 | vhdl_body (vhdl); |
---|
35 | |
---|
36 | vhdl.generate_file(); |
---|
37 | log_printf(FUNC,Two_Level_Branch_Predictor,"vhdl","End"); |
---|
38 | |
---|
39 | }; |
---|
40 | |
---|
41 | }; // end namespace two_level_branch_predictor |
---|
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.