-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainmemory.h
52 lines (43 loc) · 1.08 KB
/
mainmemory.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
51
52
/*******************************************************************
*
* DESCRIPTION: Atomic Model MainMemory
*
* AUTHOR: Yu Wang
*
* EMAIL: mailto://[email protected]
*
* DATE: 15/10/2012
*
*******************************************************************/
#ifndef __MAINMEMORY_H
#define __MAINMEMORY_H
#include "atomic.h" // class Atomic
/** forward declarations **/
class Distribution ;
class MainMemory : public Atomic
{
public:
MainMemory( const string &name = "MainMemory" ); //Default constructor
~MainMemory();
virtual string className() const ;
protected:
Model &initFunction();
Model &externalFunction( const ExternalMessage & );
Model &internalFunction( const InternalMessage & );
Model &outputFunction( const InternalMessage & );
private:
const Port ∈
Port &out;
Port &errorout;
int address ;
Time MemoryAccessTime;
int memoryerrorflag;
int memory_array[32];
}; // class MainMemory
// ** inline ** //
inline
string MainMemory::className() const
{
return "MainMemory" ;
}
#endif //__MAINMEMORY_H