Mercurial > pygar
annotate modules/bluespec/Pygar/core/AudioCoreRRR.h~ @ 18:bb7db7d1b37c pygar svn.19
[svn r19] removed garbage
author | rlm |
---|---|
date | Tue, 27 Apr 2010 23:06:26 -0400 |
parents | 6d461680c6d9 |
children |
rev | line source |
---|---|
punk@13 | 1 |
punk@13 | 2 #ifndef _PROCESSORSYSTEMRRR_ |
punk@13 | 3 #define _PROCESSORSYSTEMRRR_ |
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 PROCESSORSYSTEMRRR_SERVER_CLASS* PROCESSORSYSTEMRRR_SERVER; |
punk@13 | 15 class PROCESSORSYSTEMRRR_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 PROCESSORSYSTEMRRR_SERVER_CLASS instance; |
punk@13 | 20 FUNCP_SIMULATED_MEMORY_CLASS *memory; |
punk@13 | 21 |
punk@13 | 22 |
punk@13 | 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 PROCESSORSYSTEMRRR_SERVER_CLASS(); |
punk@13 | 30 ~PROCESSORSYSTEMRRR_SERVER_CLASS(); |
punk@13 | 31 |
punk@13 | 32 // static methods |
punk@13 | 33 static PROCESSORSYSTEMRRR_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@13 | 47 |
punk@13 | 48 |
punk@13 | 49 |
punk@13 | 50 // include server stub |
punk@13 | 51 #include "asim/rrr/server_stub_PROCESSORSYSTEMRRR.h" |
punk@13 | 52 |
punk@13 | 53 #endif |