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