view modules/bluespec/Pygar/core/AudioCoreRRR.h @ 76:8bd0e4d37ad2 pygar svn.77 tip

[svn r77] I don't know why my last change didn't go through grumble grumble....
author rlm
date Wed, 12 May 2010 08:58:23 -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