OpenASIP
2.0
|
#include <FUValidator.hh>
Static Public Member Functions | |
static void | checkOperandBindings (const TTAMachine::FunctionUnit &fu, MachineValidatorResults &results) |
static void | checkOperations (const TTAMachine::FunctionUnit &fu, MachineValidatorResults &results) |
Private Member Functions | |
FUValidator () | |
Validator for function units.
Definition at line 45 of file FUValidator.hh.
|
private |
|
static |
Checks that the operands used in the operations of the given FU are bound to some port.
fu | The function unit. |
results | Results of the validation are added to the given instance. |
Definition at line 54 of file FUValidator.cc.
References MachineValidatorResults::addError(), TTAMachine::ExecutionPipeline::latency(), TTAMachine::HWOperation::name(), TTAMachine::Component::name(), TTAMachine::FunctionUnit::operation(), TTAMachine::FunctionUnit::operationCount(), TTAMachine::HWOperation::pipeline(), TTAMachine::HWOperation::port(), TTAMachine::ExecutionPipeline::readOperands(), MachineValidator::USED_IO_NOT_BOUND, and TTAMachine::ExecutionPipeline::writtenOperands().
Referenced by HDB::HDBManager::addFUArchitecture(), and MachineValidator::checkOperandBindings().
|
static |
Checks that the FU has at least one operation which is valid, i.e. has at least one triggering input port
fu | The function unit. |
results | Results of the validation are added to the given instance. |
Definition at line 100 of file FUValidator.cc.
References MachineValidatorResults::addError(), MachineValidator::FU_NO_VALID_OPERATIONS, TTAMachine::FUPort::isTriggering(), TTAMachine::ExecutionPipeline::latency(), TTAMachine::Component::name(), TTAMachine::FunctionUnit::operation(), TTAMachine::FunctionUnit::operationCount(), TTAMachine::HWOperation::pipeline(), TTAMachine::HWOperation::port(), and TTAMachine::ExecutionPipeline::readOperands().
Referenced by HDB::HDBManager::addFUArchitecture().