FuncUnitConfig.py revision 4486
14486Sbinkertn@umich.edu# Copyright (c) 2006-2007 The Regents of The University of Michigan 24486Sbinkertn@umich.edu# All rights reserved. 34486Sbinkertn@umich.edu# 44486Sbinkertn@umich.edu# Redistribution and use in source and binary forms, with or without 54486Sbinkertn@umich.edu# modification, are permitted provided that the following conditions are 64486Sbinkertn@umich.edu# met: redistributions of source code must retain the above copyright 74486Sbinkertn@umich.edu# notice, this list of conditions and the following disclaimer; 84486Sbinkertn@umich.edu# redistributions in binary form must reproduce the above copyright 94486Sbinkertn@umich.edu# notice, this list of conditions and the following disclaimer in the 104486Sbinkertn@umich.edu# documentation and/or other materials provided with the distribution; 114486Sbinkertn@umich.edu# neither the name of the copyright holders nor the names of its 124486Sbinkertn@umich.edu# contributors may be used to endorse or promote products derived from 134486Sbinkertn@umich.edu# this software without specific prior written permission. 144486Sbinkertn@umich.edu# 154486Sbinkertn@umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 164486Sbinkertn@umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 174486Sbinkertn@umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 184486Sbinkertn@umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 194486Sbinkertn@umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 204486Sbinkertn@umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 214486Sbinkertn@umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 224486Sbinkertn@umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 234486Sbinkertn@umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 244486Sbinkertn@umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 254486Sbinkertn@umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 264486Sbinkertn@umich.edu# 274486Sbinkertn@umich.edu# Authors: Kevin Lim 284486Sbinkertn@umich.edu 293223SN/Afrom m5.SimObject import SimObject 303223SN/Afrom m5.params import * 313223SN/Afrom FuncUnit import * 323223SN/A 333223SN/Aclass IntALU(FUDesc): 343223SN/A opList = [ OpDesc(opClass='IntAlu') ] 353223SN/A count = 6 363223SN/A 373223SN/Aclass IntMultDiv(FUDesc): 383223SN/A opList = [ OpDesc(opClass='IntMult', opLat=3), 393223SN/A OpDesc(opClass='IntDiv', opLat=20, issueLat=19) ] 403223SN/A count=2 413223SN/A 423223SN/Aclass FP_ALU(FUDesc): 433223SN/A opList = [ OpDesc(opClass='FloatAdd', opLat=2), 443223SN/A OpDesc(opClass='FloatCmp', opLat=2), 453223SN/A OpDesc(opClass='FloatCvt', opLat=2) ] 463223SN/A count = 4 473223SN/A 483223SN/Aclass FP_MultDiv(FUDesc): 493223SN/A opList = [ OpDesc(opClass='FloatMult', opLat=4), 503223SN/A OpDesc(opClass='FloatDiv', opLat=12, issueLat=12), 513223SN/A OpDesc(opClass='FloatSqrt', opLat=24, issueLat=24) ] 523223SN/A count = 2 533223SN/A 543223SN/Aclass ReadPort(FUDesc): 553223SN/A opList = [ OpDesc(opClass='MemRead') ] 563223SN/A count = 0 573223SN/A 583223SN/Aclass WritePort(FUDesc): 593223SN/A opList = [ OpDesc(opClass='MemWrite') ] 603223SN/A count = 0 613223SN/A 623223SN/Aclass RdWrPort(FUDesc): 633223SN/A opList = [ OpDesc(opClass='MemRead'), OpDesc(opClass='MemWrite') ] 643223SN/A count = 4 653223SN/A 663223SN/Aclass IprPort(FUDesc): 673223SN/A opList = [ OpDesc(opClass='IprAccess', opLat = 3, issueLat = 3) ] 683223SN/A count = 1 693223SN/A 70