Command for displaying function unit details in the machine state window component details pane.
Definition at line 46 of file ProximFUDetailsCmd.hh.
bool ProximFUDetailsCmd::Do |
( |
| ) |
|
|
virtual |
Executes the command.
Implements ComponentCommand.
Definition at line 70 of file ProximFUDetailsCmd.cc.
70 {
71
73
75
78
80
81
84
85
93 }
94
95
101
102
106
110 double percent = 0;
111 if (triggerCount > 0) {
112 percent = 100 * (execCount / triggerCount);
113 }
115 " " + opName + ": " +
118 }
119
120 return true;
121}
CycleCount ClockCycleCount
Alias for ClockCycleCount.
static std::string toString(const T &source)
PortState & portState(const std::string &portName, const std::string &fuName)
static const std::string MACH_WIN_FU_LABEL
Label precing function unit names in the machine state window.
static const std::string MACH_WIN_TRIGGER_COUNT_LABEL
Trigger count label for the machine state window.
static const std::string MACH_WIN_EXECUTION_COUNT_LABEL
Execution count title for the machine state window.
static const std::string MACH_WIN_PORTS_TITLE
Title for the machine state window ports list.
void appendDetails(std::string text)
void appendUtilizationData(std::string text)
virtual const SimValue & value() const
UIntWord uIntWordValue() const
const UtilizationStats & utilizationStatistics(int core=-1)
MachineState & machineState(int core=-1)
virtual TCEString name() const
virtual HWOperation * operation(const std::string &name) const
virtual int operationCount() const
virtual BaseFUPort * port(const std::string &name) const
const std::string & name() const
virtual std::string name() const
virtual int portCount() const
ClockCycleCount operationExecutions(const std::string &operationName) const
ClockCycleCount triggerCount(const std::string &fuName) const
References ProximMachineStateWindow::appendDetails(), ProximMachineStateWindow::appendUtilizationData(), ProximToolbox::frontend(), fu_, ProximConstants::MACH_WIN_EXECUTION_COUNT_LABEL, ProximConstants::MACH_WIN_FU_LABEL, ProximConstants::MACH_WIN_PORTS_TITLE, ProximConstants::MACH_WIN_TRIGGER_COUNT_LABEL, SimulatorFrontend::machineState(), ProximToolbox::machineStateWindow(), TTAMachine::HWOperation::name(), TTAMachine::Component::name(), TTAMachine::Port::name(), TTAMachine::FunctionUnit::operation(), TTAMachine::FunctionUnit::operationCount(), UtilizationStats::operationExecutions(), TTAMachine::FunctionUnit::port(), TTAMachine::Unit::portCount(), MachineState::portState(), StringTools::stringToUpper(), Conversion::toString(), UtilizationStats::triggerCount(), SimValue::uIntWordValue(), SimulatorFrontend::utilizationStatistics(), and RegisterState::value().