Mercurial > pygar
view modules/bluespec/Pygar/lab4/ProcessorSystemRRR.h @ 40:7ac38b0f93fa pygar svn.41
[svn r41] made perl build script automatically generate program.vmh
author | rlm |
---|---|
date | Tue, 04 May 2010 19:53:09 -0400 |
parents | 74716e9a81cc |
children |
line wrap: on
line source
2 #ifndef _PROCESSORSYSTEMRRR_3 #define _PROCESSORSYSTEMRRR_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"14 typedef class PROCESSORSYSTEMRRR_SERVER_CLASS* PROCESSORSYSTEMRRR_SERVER;15 class PROCESSORSYSTEMRRR_SERVER_CLASS: public RRR_SERVER_CLASS, public PLATFORMS_MODULE_CLASS16 {17 private:18 // self-instantiation19 static PROCESSORSYSTEMRRR_SERVER_CLASS instance;20 FUNCP_SIMULATED_MEMORY_CLASS *memory;23 // server stub24 RRR_SERVER_STUB serverStub;26 int count;28 public:29 PROCESSORSYSTEMRRR_SERVER_CLASS();30 ~PROCESSORSYSTEMRRR_SERVER_CLASS();32 // static methods33 static PROCESSORSYSTEMRRR_SERVER GetInstance() { return &instance; }35 // required RRR methods36 void Init(PLATFORMS_MODULE);37 void Uninit();38 void Cleanup();40 //41 // RRR service methods42 //44 UINT32 MemoryRequestLoad (UINT32 address);45 void MemoryRequestStore (UINT32 address, UINT32 data);46 };50 // include server stub51 #include "asim/rrr/server_stub_PROCESSORSYSTEMRRR.h"53 #endif