source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Stage_1_Ifetch/Predictor/Meta_Predictor/Two_Level_Branch_Predictor/Branch_History_Table/src/Branch_History_Table_vhdl.cpp @ 42

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.1 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/Branch_History_Table/include/Branch_History_Table.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 {
18namespace branch_history_table {
19
20
21  void Branch_History_Table::vhdl (void)
22  {
23    Vhdl * vhdl = new Vhdl (_name);
24
25    vhdl->set_library_work (_name + "_Pack");
26    vhdl->set_library_work (_name + "_RegisterFile_Pack");
27    vhdl->set_library_work (_name + "_Shifter_Pack");
28
29    vhdl_port   (vhdl);
30    vhdl_type   (vhdl);
31    vhdl_signal (vhdl);
32    vhdl_body   (vhdl);
33
34    vhdl->generate_file();
35
36    delete vhdl;
37  };
38
39}; // end namespace branch_history_table
40}; // end namespace two_level_branch_predictor
41}; // end namespace meta_predictor
42}; // end namespace predictor
43}; // end namespace stage_1_ifetch
44
45}; // end namespace behavioural
46}; // end namespace morpheo             
47#endif
Note: See TracBrowser for help on using the repository browser.