source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Stage_1_Ifetch/Predictor/Meta_Predictor/Two_Level_Branch_Predictor/Pattern_History_Table/src/Pattern_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/Pattern_History_Table/include/Pattern_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 pattern_history_table {
19
20
21  void Pattern_History_Table::vhdl (void)
22  {
23    log_printf(FUNC,Pattern_History_Table,"vhdl","Begin");
24    Vhdl * vhdl = new Vhdl (_name);
25
26    _interfaces->set_port(vhdl);
27    _component->vhdl_instance(vhdl);
28
29    vhdl_declaration (vhdl);
30    vhdl_body        (vhdl);
31
32    vhdl->generate_file();
33
34    delete vhdl;
35
36    log_printf(FUNC,Pattern_History_Table,"vhdl","End");
37
38  };
39
40}; // end namespace pattern_history_table
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.