#include "BlocksTranslator.hh"
#include <map>
#include <memory>
#include <string>
#include "BlocksModel.hh"
#include "ExecutionPipeline.hh"
#include "Segment.hh"
Go to the source code of this file.
|
int | main (int argc, char *argv[]) |
|
Implementation of the translation (Blocks to TTA) functions.
- Author
- Maarten Molendijk 2020 (m.j.m.nosp@m.olen.nosp@m.dijk@.nosp@m.tue..nosp@m.nl)
-
Kanishkan Vadivel 2021 (k.vad.nosp@m.ivel.nosp@m.@tue..nosp@m.nl)
Definition in file BlocksTranslator.cc.
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
main()
Definition at line 341 of file BlocksTranslator.cc.
341 {
342
343
344 try {
345 if (argc != 3)
346 throw "Invalid number of arguments, expected 2 arguments. \n";
347 } catch (const char* error) {
348 fprintf(stderr, "%s", error);
349 fprintf(
350 stdout,
351 "Expected path to .xml file with Blocks architecture and name of "
352 "output architecture (<name>.adf). \n");
353 return 1;
354 }
355
356 const string filepath = string(argv[1]);
358
361}
static std::string outputFileName(const std::string &adfFile)
void BuildTTAModel(BlocksModel &blocksModel, const std::string &outputName)
References BlocksTranslator::BuildTTAModel(), and outputFileName().