Mercurial > pygar
annotate modules/bluespec/Pygar/core/AudioCoreRRR.h @ 25:220c14f5963c pygar svn.26
[svn r26] Not fully connected but passes audio successfully
author | punk |
---|---|
date | Wed, 28 Apr 2010 12:01:37 -0400 |
parents | 0cfbb1e2de22 |
children | 2c8166d205d5 |
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 |
punk@13 | 14 typedef class AUDIOCORERRR_SERVER_CLASS* AUDIOCORERRR_SERVER; |
punk@13 | 15 class AUDIOCORERRR_SERVER_CLASS: public RRR_SERVER_CLASS, public PLATFORMS_MODULE_CLASS |
punk@13 | 16 { |
punk@13 | 17 private: |
punk@13 | 18 // self-instantiation |
punk@13 | 19 static AUDIOCORERRR_SERVER_CLASS instance; |
punk@22 | 20 FILE *outputFile; |
punk@13 | 21 FUNCP_SIMULATED_MEMORY_CLASS *memory; |
punk@13 | 22 |
punk@22 | 23 // server stub |
punk@13 | 24 RRR_SERVER_STUB serverStub; |
punk@13 | 25 |
punk@13 | 26 int count; |
punk@13 | 27 |
punk@13 | 28 public: |
punk@13 | 29 AUDIOCORERRR_SERVER_CLASS(); |
punk@13 | 30 ~AUDIOCORERRR_SERVER_CLASS(); |
punk@13 | 31 |
punk@13 | 32 // static methods |
punk@13 | 33 static AUDIOCORERRR_SERVER GetInstance() { return &instance; } |
punk@13 | 34 |
punk@13 | 35 // required RRR methods |
punk@13 | 36 void Init(PLATFORMS_MODULE); |
punk@13 | 37 void Uninit(); |
punk@13 | 38 void Cleanup(); |
punk@13 | 39 |
punk@13 | 40 // |
punk@13 | 41 // RRR service methods |
punk@13 | 42 // |
punk@13 | 43 |
punk@13 | 44 UINT32 MemoryRequestLoad (UINT32 address); |
punk@13 | 45 void MemoryRequestStore (UINT32 address, UINT32 data); |
punk@13 | 46 |
punk@22 | 47 void SendProcessedStream(UINT16 control, UINT16 data0); |
punk@13 | 48 }; |
punk@13 | 49 |
punk@13 | 50 |
punk@13 | 51 |
punk@13 | 52 // include server stub |
punk@13 | 53 #include "asim/rrr/server_stub_AUDIOCORERRR.h" |
punk@13 | 54 |
punk@13 | 55 #endif |