Go to the documentation of this file.
48 int main(
int argc,
char* argv[]) {
62 std::cerr <<
"IDF file was not given" << std::endl;
66 std::cerr <<
"Illegal arguments" << std::endl;
70 idfFile =
options.idfFileName();
73 string adfFile =
options.adfFileName();
77 if (sim ==
"modelsim") {
83 bool verbose =
options.verbose();
84 bool leaveDirty =
options.leaveDirty();
92 if (!adfFile.empty()) {
105 if (!
testUnits(*idf, simulator, verbose, leaveDirty)) {
124 std::cerr <<
"Failed to load ADF file " << adfName <<
": "
141 std::cerr <<
"Failed to load IDF file " << idfName <<
": "
156 bool success = validator.
validate();
158 for (
int i = 0; i < validator.
errorCount(); i++) {
169 VhdlSim simulator,
bool verbose,
bool leaveDirty) {
171 HDBTester tester(std::cout, std::cerr, simulator, verbose, leaveDirty);
173 bool allPassed =
true;
177 int entryId = unit->
id();
186 int entryId = unit->
id();
virtual void printHelp() const
void setSourceFile(const std::string &fileName)
TTAMachine::Machine * machine
the architecture definition of the estimated processor
virtual int numberOfArguments() const
IDF::MachineImplementation * implementation
the implementation definition of the estimated processor
MachineImplementation * readMachineImplementation()
bool testUnits(const IDF::MachineImplementation &idf, VhdlSim simulator, bool verbose, bool leaveDirty)
std::string errorMessage(int index) const
RFImplementationLocation & rfImplementation(const std::string &rf) const
bool validateIdf(const IDF::MachineImplementation &idf, const TTAMachine::Machine &machine)
int rfImplementationCount() const
TTAMachine::Machine * readAdf(std::string adfName)
bool testOneRF(std::string hdbFile, int entryId)
std::string errorMessage() const
void parse(char *argv[], int argc)
static MachInfoCmdLineOptions options
bool testOneFU(std::string hdbFile, int entryId)
int fuImplementationCount() const
TTAMachine::Machine * readMachine()
virtual std::string hdbFile() const
FUImplementationLocation & fuImplementation(const std::string &fu) const
IDF::MachineImplementation * readIdf(std::string idfName)
int main(int argc, char *argv[])