Go to the documentation of this file.
34 #ifndef TTA_PROGE_SCRIPT_GENERATOR_HH
35 #define TTA_PROGE_SCRIPT_GENERATOR_HH
42 class MachineImplementation;
57 const std::string& dstDir,
58 const std::string& progeOutDir,
59 const std::string& sharedOutDir,
60 const std::string& testBenchDir,
61 const std::string& toplevelEntity,
62 const std::string& simulationRuntime =
"52390");
86 const std::list<std::string>& files,
87 const std::string& cmdPrefix,
88 const std::string& cmdPostfix);
91 const std::string& file,
92 const std::string& cmdPrefix,
93 const std::string& cmdPostfix);
96 const std::string& perlre,
98 std::list<std::string>& found);
100 void findFiles(
const std::string& perlre, T& files);
102 const std::string& perlre,
103 const unsigned int& matchRegion,
104 const std::string& fileName,
105 std::list<std::string>& found);
107 std::list<std::string>& order);
109 std::list<std::string>& toSort,
110 std::list<std::string>& acSort);
112 std::list<std::string>& toSort,
113 std::list<std::string>& acSort);
114 template <
typename CONT>
117 const std::string& rootDirectory);
119 std::list<std::string>& tlist,
120 const std::string& prefix,
ProGeScriptGenerator(const ProGe::HDL language, const IDF::MachineImplementation &idf, const std::string &dstDir, const std::string &progeOutDir, const std::string &sharedOutDir, const std::string &testBenchDir, const std::string &toplevelEntity, const std::string &simulationRuntime="52390")
const std::string toplevelEntity_
const IDF::MachineImplementation & idf_
void generateModsimCompile()
std::list< std::string > gcuicFiles_
void outputScriptCommands(std::ostream &stream, const std::list< std::string > &files, const std::string &cmdPrefix, const std::string &cmdPostfix)
void generateIverilogSimulate()
void generateGhdlCompile()
void findText(const std::string &perlre, const unsigned int &matchRegion, const std::string &fileName, std::list< std::string > &found)
const std::string testbenchName_
void findFiles(const std::string &perlre, T files, std::list< std::string > &found)
void generateIverilogCompile()
void generateSimulationStart(std::ostream &stream)
const std::string gcuicDir_
void getBlockOrder(std::list< std::string > &order)
const std::string vhdlDir_
void generateCompileStart(std::ostream &stream)
void sortFilesLast(std::list< std::string > &toSort, std::list< std::string > &acSort)
const std::string ghdlSimulateScriptName_
const std::string modsimCompileScriptName_
std::string sharedOutDir_
const std::string ghdlCompileScriptName_
const ProGe::HDL language_
const std::string iverilogCompileScriptName_
const std::string iverilogSimulateScriptName_
virtual ~ProGeScriptGenerator()
const std::string verDir_
void createExecutableFile(const std::string &fileName)
const std::string simulationRuntime_
void generateModsimSimulate()
void prefixStrings(std::list< std::string > &tlist, const std::string &prefix, int start=0, int end=-1)
void outputScriptCommand(std::ostream &stream, const std::string &file, const std::string &cmdPrefix, const std::string &cmdPostfix)
void sortFilesFirst(std::list< std::string > &toSort, std::list< std::string > &acSort)
void uniqueFileNames(CONT &files, const std::string &rootDirectory)
HDL
HDLs supported by ProGe.
std::list< std::string > testBenchFiles_
const std::string workDir_
std::string testBenchDir_
std::list< std::string > vhdlFiles_
void generateGhdlSimulate()
const std::string modsimSimulateScriptName_