Go to the documentation of this file.
34 #ifndef TTA_PROGRAM_IMAGE_GENERATOR_HH
35 #define TTA_PROGRAM_IMAGE_GENERATOR_HH
49 class InstructionElement;
81 typedef std::map<std::string, TPEF::Binary*>
TPEFMap;
95 const std::string& programName,
101 const std::string& addressSpace, std::ostream& stream,
102 OutputFormat format,
int mausPerLine,
bool usePregeneratedImage);
112 const std::string& fileName, std::ostream& stream);
116 const std::string& addressSpace,
124 const std::string& fileName,
PluginTools& pluginTool);
128 Word dataSectionOffset)
const;
void generateProgramImage(const std::string &programName, std::ostream &stream, OutputFormat format, int mausPerLine=0)
static std::vector< std::string > availableCompressors()
void loadBEM(const BinaryEncoding &bem)
void loadCompressorParameters(CodeCompressorPlugin::ParameterTable parameters)
TTAMachine::Machine * machine
the architecture definition of the estimated processor
std::set< TPEF::Binary * > ProgramSet
Typedef for program set.
@ ASCII
ASCII 1's and 0's.
virtual ~ProgramImageGenerator()
static CodeCompressorPlugin * createCompressor(const std::string &fileName, PluginTools &pluginTool)
void loadPrograms(TPEFMap programs)
void loadCompressorPlugin(const std::string &fileName)
static void printCompressorDescription(const std::string &fileName, std::ostream &stream)
TPEF::InstructionElement * relocTarget(const TPEF::Binary &program, const TPEF::DataSection &dataSection, Word dataSectionOffset) const
@ MIF
MIF Memory Initialization File.
@ HEX
HEX memory initialization format.
std::vector< Parameter > ParameterTable
Table for passing plugin parameters.
void loadMachine(const TTAMachine::Machine &machine)
void generateDataImage(const std::string &programName, TPEF::Binary &program, const std::string &addressSpace, std::ostream &stream, OutputFormat format, int mausPerLine, bool usePregeneratedImage)
std::string entityName_
Toplevel entity name.
void setEntityName(const std::string &entity)
@ VHDL
Array as a Vhdl package.
void writeDataSection(TPEF::Binary &program, BitVector &bitVector, const std::string &addressSpace, TPEF::Section §ion)
@ BINARY
Real binary format.
CodeCompressorPlugin * compressor_
The code compressor.
void generateDecompressor(std::ostream &stream, TCEString entityStr)
@ BIN2N
Binary format padded to 2**n.
PluginTools pluginTool_
The plugin tool.
find Finds info of the inner loops in the program
CodeCompressorPlugin & compressor()
OutputFormat
Different output formats of images.
@ COE
COE memory initialization format.
@ ARRAY
ASCII 1's and 0's in array form.
std::map< std::string, TPEF::Binary * > TPEFMap