#ifdef VHDL
/*
 * $Id$
 *
 * [ Description ]
 * 
 */

#include "Behavioural/Stage_1_Ifetch/Predictor/Meta_Predictor/Two_Level_Branch_Predictor/Pattern_History_Table/include/Pattern_History_Table.h"
#include "Behavioural/include/Vhdl.h"

namespace morpheo                    {
namespace behavioural {
namespace stage_1_ifetch {
namespace predictor {
namespace meta_predictor {
namespace two_level_branch_predictor {
namespace pattern_history_table {


  void Pattern_History_Table::vhdl (void)
  {
    log_printf(FUNC,Pattern_History_Table,"vhdl","Begin");
    Vhdl vhdl (_name);

    vhdl.set_library_work (_name + "_Pack");
    vhdl.set_library_work (_name + "_RegisterFile_Pack");
    vhdl.set_library_work (_name + "_Counter_Pack");

    vhdl_port        (vhdl);
    vhdl_declaration (vhdl);
    vhdl_body        (vhdl);

    vhdl.generate_file();
    log_printf(FUNC,Pattern_History_Table,"vhdl","End");

  };

}; // end namespace pattern_history_table
}; // end namespace two_level_branch_predictor
}; // end namespace meta_predictor
}; // end namespace predictor
}; // end namespace stage_1_ifetch

}; // end namespace behavioural
}; // end namespace morpheo              
#endif
