source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Multiplier/include/Multiplier.h @ 112

Last change on this file since 112 was 112, checked in by rosiere, 15 years ago

1) Stat_list : fix retire old and new register bug
2) Stat_list : remove read_counter and valid flag, because validation of destination is in retire step (not in commit step)
3) Model : add class Model (cf Morpheo.sim)
4) Allocation : alloc_interface_begin and alloc_interface_end to delete temporary array.
5) Script : add distexe.sh
6) Add Comparator, Multiplier, Divider. But this component are not implemented
7) Software : add Dhrystone

  • Property svn:keywords set to Id
File size: 3.4 KB
Line 
1#ifndef morpheo_behavioural_generic_multiplier_Multiplier_h
2#define morpheo_behavioural_generic_multiplier_Multiplier_h
3
4/*
5 * $Id: Multiplier.h 112 2009-03-18 22:36:26Z rosiere $
6 *
7 * [ Description ]
8 *
9 */
10
11#ifdef SYSTEMC
12#include "systemc.h"
13#endif
14
15
16#include "Behavioural/Generic/Multiplier/include/Parameters.h"
17#include "Behavioural/Generic/Multiplier/include/Types.h"
18#ifdef STATISTICS
19#include "Behavioural/include/Stat.h"
20#endif
21#include "Behavioural/include/Component.h"
22#ifdef VHDL
23#include "Behavioural/include/Vhdl.h"
24#endif
25#include "Behavioural/include/Usage.h"
26
27#include "Common/include/ToString.h"
28#include "Common/include/Debug.h"
29
30#include <iostream>
31
32namespace morpheo {
33namespace behavioural {
34
35namespace generic {
36namespace multiplier {
37
38
39  class Multiplier
40#if SYSTEMC
41    : public sc_module
42#endif
43  {
44    // -----[ fields ]----------------------------------------------------
45    // Parameters
46  protected : const std::string  _name;
47  protected : const Parameters * _param;
48  private   : const Tusage_t     _usage;
49
50#ifdef STATISTICS
51  public    : Stat                           * _stat;
52#endif
53
54  public    : Component                      * _component;
55  private   : Interfaces                     * _interfaces;
56
57#ifdef SYSTEMC
58    // ~~~~~[ Interface ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
59    // ~~~~~[ Interface : "" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
60  public    : SC_CLOCK                      *  in_CLOCK        ;
61  public    : SC_IN (Tcontrol_t)            *  in_NRESET       ;
62
63    // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
64
65    // ~~~~~[ Register ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
66
67    // ~~~~~[ Internal ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68#endif
69
70    // -----[ Methods ]---------------------------------------------------
71
72#ifdef SYSTEMC
73    SC_HAS_PROCESS (Multiplier);
74#endif
75  public  :          Multiplier             
76  (
77#ifdef SYSTEMC
78   sc_module_name                                name,
79#else                                         
80   std::string                                   name,
81#endif                                         
82#ifdef STATISTICS
83   morpheo::behavioural::Parameters_Statistics * param_statistics,
84#endif
85   Parameters                                  * param,
86   morpheo::behavioural::Tusage_t                usage
87   );
88  public  :          ~Multiplier             (void);
89                                               
90  private : void        allocation                (
91#ifdef STATISTICS
92                                                   morpheo::behavioural::Parameters_Statistics * param_statistics
93#else
94                                                   void
95#endif
96                                                   );
97  private : void        deallocation              (void);
98                                               
99#ifdef SYSTEMC                                 
100  public  : void        transition                (void);
101//public  : void        genMoore                  (void);
102#endif                                         
103
104#if VHDL                                       
105  public  : void        vhdl                      (void);
106  private : void        vhdl_declaration          (Vhdl * & vhdl);
107  private : void        vhdl_body                 (Vhdl * & vhdl);
108#endif                                         
109
110#ifdef STATISTICS
111  public  : void        statistics_allocation     (morpheo::behavioural::Parameters_Statistics * param_statistics);
112  public  : void        statistics_deallocation   (void);
113#endif
114#if defined(STATISTICS) or defined(VHDL_TESTBENCH)
115  private : void        end_cycle                 (void);
116#endif
117  };
118
119}; // end namespace multiplier
120}; // end namespace generic
121
122}; // end namespace behavioural
123}; // end namespace morpheo             
124
125#endif
Note: See TracBrowser for help on using the repository browser.