view modules/bluespec/Pygar/core/AudioCoreRRR.h @ 73:0f86d486e38e pygar svn.74

[svn r74] added new programs to run on processor.
author punk
date Wed, 12 May 2010 02:01:01 -0400
parents 49049f97312c
children
line wrap: on
line source

2 #ifndef _AUDIOCORERRR_
3 #define _AUDIOCORERRR_
5 #include <stdio.h>
6 #include <sys/time.h>
8 #include "asim/provides/low_level_platform_interface.h"
9 #include "asim/provides/funcp_simulated_memory.h"
10 #include "asim/provides/rrr.h"
13 typedef class AUDIOCORERRR_SERVER_CLASS* AUDIOCORERRR_SERVER;
14 class AUDIOCORERRR_SERVER_CLASS: public RRR_SERVER_CLASS, public PLATFORMS_MODULE_CLASS
15 {
16 private:
17 // self-instantiation
18 static AUDIOCORERRR_SERVER_CLASS instance;
19 FILE *outputFile;
20 FUNCP_SIMULATED_MEMORY_CLASS *memory;
22 // server stub
23 RRR_SERVER_STUB serverStub;
25 int count;
27 public:
28 AUDIOCORERRR_SERVER_CLASS();
29 ~AUDIOCORERRR_SERVER_CLASS();
31 // static methods
32 static AUDIOCORERRR_SERVER GetInstance() { return &instance; }
34 // required RRR methods
35 void Init(PLATFORMS_MODULE);
36 void Uninit();
37 void Cleanup();
39 //
40 // RRR service methods
41 //
43 /* Not Used by ScratchPad
44 UINT32 MemoryRequestLoad (UINT32 address);
45 void MemoryRequestStore (UINT32 address, UINT32 data);
46 */
47 void SendTerminate(UINT32 flag);
48 void SendProcessedStream(UINT16 control, UINT16 data0);
49 };
53 // include server stub
54 #include "asim/rrr/server_stub_AUDIOCORERRR.h"
56 #endif