Go to the documentation of this file.
33 #ifndef TTA_TESTBENCH_GENERATOR_HH
34 #define TTA_TESTBENCH_GENERATOR_HH
44 class HWBlockImplementation;
59 std::ostringstream& stream,
60 std::vector<uint32_t>& dataArray,
83 const std::string& fileName, std::string& vhdlTemplate)
const;
std::ostringstream & bindingStream()
std::ostringstream & tbCodeStream()
void writeTestbench(std::ofstream &file, HDB::HWBlockImplementation *impl)
std::ostringstream & opcodeArrayStream()
std::ostringstream & instantiationStream()
void writeTbConstants(int totalCycles, int outputIgnoreCycles)
std::ostringstream componentDeclaration_
std::ostringstream inputArrays_
std::ostringstream & inputArrayStream()
virtual void writeStimulusArray(std::ostringstream &stream, std::vector< uint32_t > &dataArray, std::string portName, int portWidth)
static const std::string TB_TEMPLATE_
std::ostringstream componentBinding_
std::ostringstream & declarationStream()
std::ostringstream loadSignalArrays_
std::ostringstream & signalStream()
std::ostringstream componentInstantiation_
std::ostringstream opcodeArrays_
virtual ~TestbenchGenerator()
std::string findVhdlTemplate() const
std::map< std::string, std::vector< uint32_t > > PortDataArray
std::ostringstream & loadArrayStream()
void loadVhdlTemplate(const std::string &fileName, std::string &vhdlTemplate) const
std::ostringstream signalDeclaration_
virtual void generateTestbench(std::ofstream &file)=0
std::ostringstream & outputArrayStream()
std::ostringstream outputArrays_
std::ostringstream testbenchCode_