OpenASIP
2.0
|
#include <RFPortCheck.hh>
Public Member Functions | |
RFPortCheck () | |
virtual | ~RFPortCheck () |
virtual bool | check (const TTAMachine::Machine &mach, MachineCheckResults &results) const |
Public Member Functions inherited from MachineCheck | |
virtual std::string | shortDescription () const |
virtual std::string | description () const |
virtual bool | canFix (const TTAMachine::Machine &mach) const |
virtual std::string | fix (TTAMachine::Machine &mach) const |
virtual | ~MachineCheck () |
Additional Inherited Members | |
Protected Member Functions inherited from MachineCheck | |
MachineCheck (const std::string &shortDesc_) | |
Checks that the ports of the register files are sensible.
Currently checks only that there is at least one input port in the register file.
Definition at line 44 of file RFPortCheck.hh.
RFPortCheck::RFPortCheck | ( | ) |
|
virtual |
|
virtual |
Sanity checks the RF ports of the target machine.
mach | Machine to be checked. |
results | Check results. |
Implements MachineCheck.
Definition at line 64 of file RFPortCheck.cc.
References MachineCheckResults::addError(), TTAMachine::Machine::Navigator< ComponentType >::count(), TTAMachine::Port::isInput(), TTAMachine::Machine::Navigator< ComponentType >::item(), TTAMachine::BaseRegisterFile::port(), TTAMachine::Unit::portCount(), and TTAMachine::Machine::registerFileNavigator().