-
Notifications
You must be signed in to change notification settings - Fork 0
/
powLvlRegister.h
50 lines (38 loc) · 1005 Bytes
/
powLvlRegister.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*******************************************************************
*
* DESCRIPTION: Header File for the atomic Model of powerlevel
* register.
*
*******************************************************************/
#ifndef __POWLVLREGISTER_H
#define __POWLVLREGISTER_H
#include <list>
#include "atomic.h" // class Atomic
// PowLvlReg class
class PowLvlReg : public Atomic
{
public:
// Constructor
PowLvlReg( const string &name = "PowLvlReg" );
virtual string className() const ;
protected:
Model &initFunction();
Model &externalFunction( const ExternalMessage & );
Model &internalFunction( const InternalMessage & );
Model &outputFunction( const InternalMessage & );
private:
// input ports
const Port &phase_set;
const Port &powerlevel_in;
// output port
Port &powerlevel_out;
// value of the powerlevel register
int powerlevel;
}; // class PowLvlReg
// ** inline ** //
inline
string PowLvlReg::className() const
{
return "PowLvlReg" ;
}
#endif //__POWLVLREGISTER_H