SimpleMemobj.py revision 14252
13170Sstever@eecs.umich.edu# -*- coding: utf-8 -*-
23170Sstever@eecs.umich.edu# Copyright (c) 2017 Jason Lowe-Power
33170Sstever@eecs.umich.edu# All rights reserved.
43170Sstever@eecs.umich.edu#
53170Sstever@eecs.umich.edu# Redistribution and use in source and binary forms, with or without
63170Sstever@eecs.umich.edu# modification, are permitted provided that the following conditions are
73170Sstever@eecs.umich.edu# met: redistributions of source code must retain the above copyright
83170Sstever@eecs.umich.edu# notice, this list of conditions and the following disclaimer;
93170Sstever@eecs.umich.edu# redistributions in binary form must reproduce the above copyright
103170Sstever@eecs.umich.edu# notice, this list of conditions and the following disclaimer in the
113170Sstever@eecs.umich.edu# documentation and/or other materials provided with the distribution;
123170Sstever@eecs.umich.edu# neither the name of the copyright holders nor the names of its
133170Sstever@eecs.umich.edu# contributors may be used to endorse or promote products derived from
143170Sstever@eecs.umich.edu# this software without specific prior written permission.
153170Sstever@eecs.umich.edu#
163170Sstever@eecs.umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
173170Sstever@eecs.umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
183170Sstever@eecs.umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
193170Sstever@eecs.umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
203170Sstever@eecs.umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
213170Sstever@eecs.umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
223170Sstever@eecs.umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
233170Sstever@eecs.umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
243170Sstever@eecs.umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
253170Sstever@eecs.umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
263170Sstever@eecs.umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
273170Sstever@eecs.umich.edu#
283170Sstever@eecs.umich.edu# Authors: Jason Lowe-Power
293170Sstever@eecs.umich.edu
303170Sstever@eecs.umich.edufrom m5.params import *
313170Sstever@eecs.umich.edufrom m5.SimObject import SimObject
323170Sstever@eecs.umich.edu
333170Sstever@eecs.umich.educlass SimpleMemobj(SimObject):
343170Sstever@eecs.umich.edu    type = 'SimpleMemobj'
353170Sstever@eecs.umich.edu    cxx_header = "learning_gem5/part2/simple_memobj.hh"
363170Sstever@eecs.umich.edu
373170Sstever@eecs.umich.edu    inst_port = SlavePort("CPU side port, receives requests")
383170Sstever@eecs.umich.edu    data_port = SlavePort("CPU side port, receives requests")
393170Sstever@eecs.umich.edu    mem_side = MasterPort("Memory side port, sends requests")
404661Sksewell@umich.edu