source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Stage_1_Ifetch/Predictor/Meta_Predictor/Two_Level_Branch_Predictor/src/Two_Level_Branch_Predictor_vhdl.cpp @ 3

Last change on this file since 3 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

  • vhdl
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
12namespace morpheo                    {
13namespace behavioural {
14namespace stage_1_ifetch {
15namespace predictor {
16namespace meta_predictor {
17namespace 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.