FUPool.py revision 13665
17087Snate@binkert.org# Copyright (c) 2006-2007 The Regents of The University of Michigan
210959Sdavid.hashe@amd.com# All rights reserved.
37087Snate@binkert.org#
47087Snate@binkert.org# Redistribution and use in source and binary forms, with or without
57087Snate@binkert.org# modification, are permitted provided that the following conditions are
67087Snate@binkert.org# met: redistributions of source code must retain the above copyright
77087Snate@binkert.org# notice, this list of conditions and the following disclaimer;
87087Snate@binkert.org# redistributions in binary form must reproduce the above copyright
97087Snate@binkert.org# notice, this list of conditions and the following disclaimer in the
107087Snate@binkert.org# documentation and/or other materials provided with the distribution;
117087Snate@binkert.org# neither the name of the copyright holders nor the names of its
127087Snate@binkert.org# contributors may be used to endorse or promote products derived from
137087Snate@binkert.org# this software without specific prior written permission.
145331Sgblack@eecs.umich.edu#
155331Sgblack@eecs.umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
165331Sgblack@eecs.umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
175331Sgblack@eecs.umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
185331Sgblack@eecs.umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
195331Sgblack@eecs.umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
205331Sgblack@eecs.umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
215331Sgblack@eecs.umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
225331Sgblack@eecs.umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
235331Sgblack@eecs.umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
245331Sgblack@eecs.umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
255331Sgblack@eecs.umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
265331Sgblack@eecs.umich.edu#
275331Sgblack@eecs.umich.edu# Authors: Kevin Lim
285331Sgblack@eecs.umich.edu
295331Sgblack@eecs.umich.edufrom m5.SimObject import SimObject
305331Sgblack@eecs.umich.edufrom m5.params import *
315331Sgblack@eecs.umich.edufrom m5.objects.FuncUnit import *
325331Sgblack@eecs.umich.edufrom m5.objects.FuncUnitConfig import *
335331Sgblack@eecs.umich.edu
345331Sgblack@eecs.umich.educlass FUPool(SimObject):
355331Sgblack@eecs.umich.edu    type = 'FUPool'
365331Sgblack@eecs.umich.edu    cxx_header = "cpu/o3/fu_pool.hh"
375331Sgblack@eecs.umich.edu    FUList = VectorParam.FUDesc("list of FU's for this pool")
385331Sgblack@eecs.umich.edu
395331Sgblack@eecs.umich.educlass DefaultFUPool(FUPool):
405331Sgblack@eecs.umich.edu    FUList = [ IntALU(), IntMultDiv(), FP_ALU(), FP_MultDiv(), ReadPort(),
415331Sgblack@eecs.umich.edu               SIMD_Unit(), WritePort(), RdWrPort(), IprPort() ]
424276Sgblack@eecs.umich.edu