OpenCores
URL https://opencores.org/ocsvn/aemb/aemb/trunk

Subversion Repositories aemb

[/] [aemb/] [trunk/] [sw/] [iss/] [mem/] [DataMemory.hh] - Blame information for rev 199

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 198 sybreon
/*!
2
  AEMB INSTRUCTION SET SIMULATOR
3
  Copyright (C) 2009 Shawn Tan 
4
 
5
  This program is free software: you can redistribute it and/or modify
6
  it under the terms of the GNU General Public License as published by
7
  the Free Software Foundation, either version 3 of the License, or
8
  (at your option) any later version.
9
 
10
  This program is distributed in the hope that it will be useful, but
11
  WITHOUT ANY WARRANTY; without even the implied warranty of
12
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
  General Public License for more details.
14
 
15
  You should have received a copy of the GNU General Public License
16
  along with this program.  If not, see
17
  .
18
*/
19
 
20 199 sybreon
#ifndef DataMemory_H_
21
#define DataMemory_H_
22 198 sybreon
 
23
#include 
24
 
25
using std::map;
26
 
27 199 sybreon
class DataMemory
28 198 sybreon
{
29
        map mem;
30
public:
31
        /**
32
         * Generic memory read
33
         * @param addr Address to read.
34
         * @return memory word read.
35
         * */
36
        int getData(const int addr);
37
 
38
        /**
39
         * Generic memory write
40
         * @param addr Address to write
41
         * @param data Data to write
42
         */
43
        void putData(const int addr, const int data);
44
 
45
        /**
46
         * Align address
47
         * @param addr Address to align
48
         **/
49
 
50 199 sybreon
        DataMemory();
51
        virtual ~DataMemory();
52 198 sybreon
};
53
 
54 199 sybreon
#endif /*DataMemory_H_*/

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.