OpenASIP  2.0
Functions
BlocksTranslator.cc File Reference
#include "BlocksTranslator.hh"
#include <map>
#include <memory>
#include <string>
#include "BlocksModel.hh"
#include "ExecutionPipeline.hh"
#include "Segment.hh"
Include dependency graph for BlocksTranslator.cc:

Go to the source code of this file.

Functions

int main (int argc, char *argv[])
 

Detailed Description

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.

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

main()

Definition at line 341 of file BlocksTranslator.cc.

341  {
342  // Define a structured way to represent the .xml architecture.
343  // Verify input arguments and open xml file.
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]);
357  const string outputFileName = string(argv[2]);
358 
359  BlocksModel blocksModel(filepath);
361 }

References BlocksTranslator::BuildTTAModel(), and outputFileName().

Here is the call graph for this function:
outputFileName
static std::string outputFileName(const std::string &adfFile)
Definition: CreateBEM.cc:77
BlocksTranslator::BuildTTAModel
void BuildTTAModel(BlocksModel &blocksModel, const std::string &outputName)
Definition: BlocksTranslator.cc:54
BlocksModel
Definition: BlocksModel.hh:55