Deleted Added
sdiff udiff text old ( 10807:dac26eb4cb64 ) new ( 11683:f1e198a028be )
full compact
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',
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',
52 'MemRead', 'MemWrite', '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")