FuncUnit.py (10807:dac26eb4cb64) | FuncUnit.py (11683:f1e198a028be) |
---|---|
1# Copyright (c) 2010 ARM Limited 2# All rights reserved. 3# 4# The license below extends only to copyright in the software and shall 5# not be construed as granting a license to any other intellectual 6# property including but not limited to intellectual property relating 7# to a hardware implementation of the functionality of the software 8# licensed hereunder. You may use the software subject to the license --- 29 unchanged lines hidden (view full) --- 38# 39# Authors: Kevin Lim 40 41from m5.SimObject import SimObject 42from m5.params import * 43 44class OpClass(Enum): 45 vals = ['No_OpClass', 'IntAlu', 'IntMult', 'IntDiv', 'FloatAdd', | 1# Copyright (c) 2010 ARM Limited 2# All rights reserved. 3# 4# The license below extends only to copyright in the software and shall 5# not be construed as granting a license to any other intellectual 6# property including but not limited to intellectual property relating 7# to a hardware implementation of the functionality of the software 8# licensed hereunder. You may use the software subject to the license --- 29 unchanged lines hidden (view full) --- 38# 39# Authors: Kevin Lim 40 41from m5.SimObject import SimObject 42from m5.params import * 43 44class OpClass(Enum): 45 vals = ['No_OpClass', 'IntAlu', 'IntMult', 'IntDiv', 'FloatAdd', |
46 'FloatCmp', 'FloatCvt', 'FloatMult', 'FloatDiv', 'FloatSqrt', | 46 'FloatCmp', 'FloatCvt', 'FloatMult', 'FloatMultAcc', 'FloatDiv', 47 'FloatMisc', 'FloatSqrt', |
47 'SimdAdd', 'SimdAddAcc', 'SimdAlu', 'SimdCmp', 'SimdCvt', 48 'SimdMisc', 'SimdMult', 'SimdMultAcc', 'SimdShift', 'SimdShiftAcc', 49 'SimdSqrt', 'SimdFloatAdd', 'SimdFloatAlu', 'SimdFloatCmp', 50 'SimdFloatCvt', 'SimdFloatDiv', 'SimdFloatMisc', 'SimdFloatMult', 51 'SimdFloatMultAcc', 'SimdFloatSqrt', | 48 'SimdAdd', 'SimdAddAcc', 'SimdAlu', 'SimdCmp', 'SimdCvt', 49 'SimdMisc', 'SimdMult', 'SimdMultAcc', 'SimdShift', 'SimdShiftAcc', 50 'SimdSqrt', 'SimdFloatAdd', 'SimdFloatAlu', 'SimdFloatCmp', 51 'SimdFloatCvt', 'SimdFloatDiv', 'SimdFloatMisc', 'SimdFloatMult', 52 'SimdFloatMultAcc', 'SimdFloatSqrt', |
52 'MemRead', 'MemWrite', 'IprAccess', 'InstPrefetch'] | 53 'MemRead', 'MemWrite', 'FloatMemRead', 'FloatMemWrite', 54 'IprAccess', 'InstPrefetch'] |
53 54class OpDesc(SimObject): 55 type = 'OpDesc' 56 cxx_header = "cpu/func_unit.hh" 57 opClass = Param.OpClass("type of operation") 58 opLat = Param.Cycles(1, "cycles until result is available") 59 pipelined = Param.Bool(True, "set to true when the functional unit for" 60 "this op is fully pipelined. False means not pipelined at all.") 61 62class FUDesc(SimObject): 63 type = 'FUDesc' 64 cxx_header = "cpu/func_unit.hh" 65 count = Param.Int("number of these FU's available") 66 opList = VectorParam.OpDesc("operation classes for this FU type") | 55 56class OpDesc(SimObject): 57 type = 'OpDesc' 58 cxx_header = "cpu/func_unit.hh" 59 opClass = Param.OpClass("type of operation") 60 opLat = Param.Cycles(1, "cycles until result is available") 61 pipelined = Param.Bool(True, "set to true when the functional unit for" 62 "this op is fully pipelined. False means not pipelined at all.") 63 64class FUDesc(SimObject): 65 type = 'FUDesc' 66 cxx_header = "cpu/func_unit.hh" 67 count = Param.Int("number of these FU's available") 68 opList = VectorParam.OpDesc("operation classes for this FU type") |