Go to the documentation of this file.
34 #ifndef TTA_FU_TESTBENCH_GENERATOR_HH
35 #define TTA_FU_TESTBENCH_GENERATOR_HH
77 const std::string& operation,
78 const std::string& portName, uint32_t stimulus);
85 std::vector<uint32_t>& loadStimulus,
86 std::vector<std::string>& operations,
PortDataArray& outputStimulus);
void createMachineState()
uint32_t truncateStimulus(uint32_t operand, int nBits) const
HDB::FUArchitecture * fuArch_
void writeInputPortStimulus(PortDataArray &inputs, const std::string &operation, const std::string &portName, uint32_t stimulus)
TTAMachine::Machine * machine_
FUTestbenchGenerator(HDB::FUEntry *fu)
bool isShiftOrRotOp(const std::string &operation) const
std::vector< std::string > inputPorts_
std::vector< std::string > outputPorts_
MemorySystem * memSystem_
virtual void generateTestbench(std::ofstream &file)
void createStimulusArrays(PortDataArray &inputStimulus, std::vector< uint32_t > &loadStimulus, std::vector< std::string > &operations, PortDataArray &outputStimulus)
virtual ~FUTestbenchGenerator()
std::map< std::string, std::vector< uint32_t > > PortDataArray
void createTbInstantiation()
void readValuesFromOutPorts(PortDataArray &outputs)
HDB::FUImplementation * fuImpl_