FUPool.py revision 13759
14276SN/A# Copyright (c) 2017 ARM Limited
24276SN/A# All rights reserved
34276SN/A#
44276SN/A# The license below extends only to copyright in the software and shall
54276SN/A# not be construed as granting a license to any other intellectual
64276SN/A# property including but not limited to intellectual property relating
74276SN/A# to a hardware implementation of the functionality of the software
84276SN/A# licensed hereunder.  You may use the software subject to the license
94276SN/A# terms below provided that you ensure that this notice is replicated
104276SN/A# unmodified and in its entirety in all distributions of the software,
114276SN/A# modified or unmodified, in source code or in binary form.
124276SN/A#
134276SN/A# Copyright (c) 2006-2007 The Regents of The University of Michigan
144276SN/A# All rights reserved.
154276SN/A#
164276SN/A# Redistribution and use in source and binary forms, with or without
174276SN/A# modification, are permitted provided that the following conditions are
184276SN/A# met: redistributions of source code must retain the above copyright
194276SN/A# notice, this list of conditions and the following disclaimer;
204276SN/A# redistributions in binary form must reproduce the above copyright
214276SN/A# notice, this list of conditions and the following disclaimer in the
224276SN/A# documentation and/or other materials provided with the distribution;
234276SN/A# neither the name of the copyright holders nor the names of its
244276SN/A# contributors may be used to endorse or promote products derived from
254276SN/A# this software without specific prior written permission.
264276SN/A#
274276SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
284276SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
294276SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
304276SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
314276SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
324276SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
334276SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
344276SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
354276SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
364276SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
374276SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
384276SN/A#
394276SN/A# Authors: Kevin Lim
404276SN/A
414276SN/Afrom m5.SimObject import SimObject
424276SN/Afrom m5.params import *
434276SN/Afrom m5.objects.FuncUnit import *
444276SN/Afrom m5.objects.FuncUnitConfig import *
454276SN/A
464276SN/Aclass FUPool(SimObject):
474276SN/A    type = 'FUPool'
484276SN/A    cxx_header = "cpu/o3/fu_pool.hh"
494276SN/A    FUList = VectorParam.FUDesc("list of FU's for this pool")
504276SN/A
514276SN/Aclass DefaultFUPool(FUPool):
524276SN/A    FUList = [ IntALU(), IntMultDiv(), FP_ALU(), FP_MultDiv(), ReadPort(),
534276SN/A               SIMD_Unit(), PredALU(), WritePort(), RdWrPort(), IprPort() ]
544276SN/A