FuncUnit.py revision 2736
11689SN/Afrom m5.config import * 28842Smrinmoy.ghosh@arm.com 37783SGiacomo.Gabrielli@arm.comclass OpType(Enum): 47783SGiacomo.Gabrielli@arm.com vals = ['(null)', 'IntAlu', 'IntMult', 'IntDiv', 'FloatAdd', 57783SGiacomo.Gabrielli@arm.com 'FloatCmp', 'FloatCvt', 'FloatMult', 'FloatDiv', 'FloatSqrt', 67783SGiacomo.Gabrielli@arm.com 'MemRead', 'MemWrite', 'IprAccess', 'InstPrefetch'] 77783SGiacomo.Gabrielli@arm.com 87783SGiacomo.Gabrielli@arm.comclass OpDesc(SimObject): 97783SGiacomo.Gabrielli@arm.com type = 'OpDesc' 107783SGiacomo.Gabrielli@arm.com issueLat = Param.Int(1, "cycles until another can be issued") 117783SGiacomo.Gabrielli@arm.com opClass = Param.OpType("type of operation") 127783SGiacomo.Gabrielli@arm.com opLat = Param.Int(1, "cycles until result is available") 137783SGiacomo.Gabrielli@arm.com 142316SN/Aclass FUDesc(SimObject): 151689SN/A type = 'FUDesc' 161689SN/A count = Param.Int("number of these FU's available") 171689SN/A opList = VectorParam.OpDesc("operation classes for this FU type") 181689SN/A