Mercurial > pygar
annotate modules/bluespec/Pygar/core/AudioCoreRRR.h @ 71:86360c5ae9f2 pygar svn.72
[svn r72] added config for htg
author | punk |
---|---|
date | Wed, 12 May 2010 00:21:40 -0400 |
parents | 49049f97312c |
children |
rev | line source |
---|---|
punk@13 | 1 |
punk@13 | 2 #ifndef _AUDIOCORERRR_ |
punk@13 | 3 #define _AUDIOCORERRR_ |
punk@13 | 4 |
punk@13 | 5 #include <stdio.h> |
punk@13 | 6 #include <sys/time.h> |
punk@13 | 7 |
punk@13 | 8 #include "asim/provides/low_level_platform_interface.h" |
punk@13 | 9 #include "asim/provides/funcp_simulated_memory.h" |
punk@13 | 10 #include "asim/provides/rrr.h" |
punk@13 | 11 |
punk@13 | 12 |
punk@13 | 13 typedef class AUDIOCORERRR_SERVER_CLASS* AUDIOCORERRR_SERVER; |
punk@13 | 14 class AUDIOCORERRR_SERVER_CLASS: public RRR_SERVER_CLASS, public PLATFORMS_MODULE_CLASS |
punk@13 | 15 { |
punk@13 | 16 private: |
punk@13 | 17 // self-instantiation |
punk@13 | 18 static AUDIOCORERRR_SERVER_CLASS instance; |
punk@22 | 19 FILE *outputFile; |
punk@13 | 20 FUNCP_SIMULATED_MEMORY_CLASS *memory; |
punk@13 | 21 |
punk@22 | 22 // server stub |
punk@13 | 23 RRR_SERVER_STUB serverStub; |
punk@13 | 24 |
punk@13 | 25 int count; |
punk@13 | 26 |
punk@13 | 27 public: |
punk@13 | 28 AUDIOCORERRR_SERVER_CLASS(); |
punk@13 | 29 ~AUDIOCORERRR_SERVER_CLASS(); |
punk@13 | 30 |
punk@13 | 31 // static methods |
punk@13 | 32 static AUDIOCORERRR_SERVER GetInstance() { return &instance; } |
punk@13 | 33 |
punk@13 | 34 // required RRR methods |
punk@13 | 35 void Init(PLATFORMS_MODULE); |
punk@13 | 36 void Uninit(); |
punk@13 | 37 void Cleanup(); |
punk@13 | 38 |
punk@13 | 39 // |
punk@13 | 40 // RRR service methods |
punk@13 | 41 // |
punk@13 | 42 |
punk@33 | 43 /* Not Used by ScratchPad |
punk@13 | 44 UINT32 MemoryRequestLoad (UINT32 address); |
punk@13 | 45 void MemoryRequestStore (UINT32 address, UINT32 data); |
punk@33 | 46 */ |
punk@52 | 47 void SendTerminate(UINT32 flag); |
punk@22 | 48 void SendProcessedStream(UINT16 control, UINT16 data0); |
punk@13 | 49 }; |
punk@13 | 50 |
punk@13 | 51 |
punk@13 | 52 |
punk@13 | 53 // include server stub |
punk@13 | 54 #include "asim/rrr/server_stub_AUDIOCORERRR.h" |
punk@13 | 55 |
punk@13 | 56 #endif |