29 #ifndef __CPU_FUNC_UNIT_HH__ 30 #define __CPU_FUNC_UNIT_HH__ 38 #include "params/FUDesc.hh" 39 #include "params/OpDesc.hh" 57 :
SimObject(p), opClass(p->opClass), opLat(p->opLat),
58 pipelined(p->pipelined) {};
96 void addCapability(OpClass cap,
unsigned oplat,
bool pipelined);
98 bool provides(OpClass capability);
99 std::bitset<Num_OpClasses> capabilities();
101 unsigned &opLatency(OpClass capability);
102 bool isPipelined(OpClass capability);
105 #endif // __FU_POOL_HH__
Cycles is a wrapper class for representing cycle counts, i.e.
std::array< bool, Num_OpClasses > pipelined
std::vector< OpDesc * >::const_iterator OPDDiterator
OpDesc(const OpDescParams *p)
std::vector< FUDesc * >::const_iterator FUDDiterator
std::vector< OpDesc * > opDescList
std::bitset< Num_OpClasses > capabilityList
FUDesc(const FUDescParams *p)
std::array< unsigned, Num_OpClasses > opLatencies
Abstract superclass for simulation objects.