gem5  v20.1.0.0
Public Member Functions | Public Attributes | Private Attributes | List of all members
FuncUnit Class Reference

#include <func_unit.hh>

Inheritance diagram for FuncUnit:
Minor::FUPipeline

Public Member Functions

 FuncUnit ()
 
 FuncUnit (const FuncUnit &fu)
 
void addCapability (OpClass cap, unsigned oplat, bool pipelined)
 
bool provides (OpClass capability)
 
std::bitset< Num_OpClassescapabilities ()
 
unsigned & opLatency (OpClass capability)
 
bool isPipelined (OpClass capability)
 

Public Attributes

std::string name
 

Private Attributes

std::array< unsigned, Num_OpClassesopLatencies
 
std::array< bool, Num_OpClassespipelined
 
std::bitset< Num_OpClassescapabilityList
 

Detailed Description

Definition at line 83 of file func_unit.hh.

Constructor & Destructor Documentation

◆ FuncUnit() [1/2]

FuncUnit::FuncUnit ( )

Definition at line 42 of file func_unit.cc.

◆ FuncUnit() [2/2]

FuncUnit::FuncUnit ( const FuncUnit fu)

Definition at line 51 of file func_unit.cc.

References PowerISA::fu, ArmISA::i, and Num_OpClasses.

Member Function Documentation

◆ addCapability()

void FuncUnit::addCapability ( OpClass  cap,
unsigned  oplat,
bool  pipelined 
)

Definition at line 64 of file func_unit.cc.

References panic.

Referenced by Minor::FUPipeline::FUPipeline().

◆ capabilities()

bitset< Num_OpClasses > FuncUnit::capabilities ( )

Definition at line 82 of file func_unit.cc.

◆ isPipelined()

bool FuncUnit::isPipelined ( OpClass  capability)

Definition at line 94 of file func_unit.cc.

◆ opLatency()

unsigned & FuncUnit::opLatency ( OpClass  capability)

Definition at line 88 of file func_unit.cc.

◆ provides()

bool FuncUnit::provides ( OpClass  capability)

Definition at line 76 of file func_unit.cc.

Member Data Documentation

◆ capabilityList

std::bitset<Num_OpClasses> FuncUnit::capabilityList
private

Definition at line 88 of file func_unit.hh.

◆ name

std::string FuncUnit::name

Definition at line 94 of file func_unit.hh.

Referenced by FUPool::FUPool().

◆ opLatencies

std::array<unsigned, Num_OpClasses> FuncUnit::opLatencies
private

Definition at line 86 of file func_unit.hh.

◆ pipelined

std::array<bool, Num_OpClasses> FuncUnit::pipelined
private

Definition at line 87 of file func_unit.hh.


The documentation for this class was generated from the following files:

Generated on Wed Sep 30 2020 14:02:24 for gem5 by doxygen 1.8.17