Mercurial > pygar
view modules/bluespec/Pygar/core/AudioCoreRRR.h @ 65:cf8bb3038cbd pygar svn.66
[svn r66] sim passes
author | punk |
---|---|
date | Tue, 11 May 2010 09:05:22 -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_CLASS15 {16 private:17 // self-instantiation18 static AUDIOCORERRR_SERVER_CLASS instance;19 FILE *outputFile;20 FUNCP_SIMULATED_MEMORY_CLASS *memory;22 // server stub23 RRR_SERVER_STUB serverStub;25 int count;27 public:28 AUDIOCORERRR_SERVER_CLASS();29 ~AUDIOCORERRR_SERVER_CLASS();31 // static methods32 static AUDIOCORERRR_SERVER GetInstance() { return &instance; }34 // required RRR methods35 void Init(PLATFORMS_MODULE);36 void Uninit();37 void Cleanup();39 //40 // RRR service methods41 //43 /* Not Used by ScratchPad44 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 stub54 #include "asim/rrr/server_stub_AUDIOCORERRR.h"56 #endif