fdhwlib
2.0.25
|
00001 /*************************************************************************** 00002 fltmemory.h - description 00003 00004 begin : Wed Nov 19 2008 00005 copyright : (C) 2008 by A Kopmann 00006 email : kopmann@ipe.fzk.de 00007 status : 00008 test : 00009 history : 00010 ***************************************************************************/ 00011 00012 00013 00014 #ifndef _HW4_FLTMEMORY_H_INCLUDED 00015 #define _HW4_FLTMEMORY_H_INCLUDED 00016 00017 #include <hw4/sltdef.h> 00018 #include <hw4/baseregister.h> 00019 00020 00021 namespace hw4 { 00022 00027 class FltMemory : public BaseRegister { 00028 00029 public: 00030 00031 FltMemory(const char * name, int slotID, unsigned int regID, int r, int w, int len); 00032 00033 virtual ~FltMemory(); 00034 00035 unsigned long read(int elem = 0, int line = 0); 00036 00037 void write(int elem, unsigned long data); 00038 00039 void write(int elem, int line, unsigned long data); 00040 00041 int getLength(); 00042 }; 00043 00044 } // namespace hw4 00045 00046 #endif // _HW4_FLTMEMORY_H_INCLUDED