mem_object.hh revision 2381
12379SN/A/*
210298Salexandru.dutu@amd.com * Copyright (c) 2002-2005 The Regents of The University of Michigan
32379SN/A * All rights reserved.
42379SN/A *
52379SN/A * Redistribution and use in source and binary forms, with or without
62379SN/A * modification, are permitted provided that the following conditions are
72379SN/A * met: redistributions of source code must retain the above copyright
82379SN/A * notice, this list of conditions and the following disclaimer;
92379SN/A * redistributions in binary form must reproduce the above copyright
102379SN/A * notice, this list of conditions and the following disclaimer in the
112379SN/A * documentation and/or other materials provided with the distribution;
122379SN/A * neither the name of the copyright holders nor the names of its
132379SN/A * contributors may be used to endorse or promote products derived from
142379SN/A * this software without specific prior written permission.
152379SN/A *
162379SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
172379SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
182379SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
192379SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
202379SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
212379SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
222379SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
232379SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
242379SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
252379SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
262379SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
272379SN/A */
282665Ssaidi@eecs.umich.edu
292665Ssaidi@eecs.umich.edu/**
302665Ssaidi@eecs.umich.edu * @file
313311Ssaidi@eecs.umich.edu * Base Memory Object decleration.
322379SN/A */
332379SN/A
342379SN/A#ifndef __MEM_MEM_OBJECT_HH__
352379SN/A#define __MEM_MEM_OBJECT_HH__
3610298Salexandru.dutu@amd.com
372379SN/A#include "sim/sim_object.hh"
3811793Sbrandon.potter@amd.com
3911793Sbrandon.potter@amd.com/**
402379SN/A * The base MemoryObject class, allows for an accesor function to a
412379SN/A * simobj that returns the Port.
422379SN/A */
436658Snate@binkert.orgclass MemoryObject : public SimObject
448232Snate@binkert.org{
457678Sgblack@eecs.umich.edu  public:
4611800Sbrandon.potter@amd.com    /** Additional function to return the Port of a memory object. */
472379SN/A    virtual Port *getPort(const char *if_name) = 0;
482399SN/A};
492423SN/A
502399SN/A#endif //__MEM_MEM_OBJECT_HH__
5112448Sgabeblack@google.com