TVGenerator  0.1
 All Classes Files Functions Pages
TVGenerator Class Reference

Test vector file generator for hardware designs. More...

#include <TVGenerator.h>

Public Member Functions

 TVGenerator ()
 The default constructor creates a new TVGenerator per default using a single file for both stimuli and expected responses.
 
virtual ~TVGenerator ()
 Destructor.
 
int GetTVCount () const
 
int GetStimuliCount () const
 
int GetExpRspCount () const
 
void Initialize (TVFileSettings _tvFileSettings)
 Initialize the TVGenerator using a single settings object. More...
 
void Initialize (TVFileSettings _stimFileSettings, TVFileSettings _expRespFileSettings)
 Initialize the TVGenerator using two separate settings objects. More...
 
void Finalize ()
 Finalizes the TVGenerator object. More...
 
int WriteTestVectorLine (vector< StdLogicVector > _signalValues, string _comment)
 Write a single test vector line to the test vector file. More...
 
int WriteStimuliLine (vector< StdLogicVector > &_stimuliValues, string _comment)
 Write a single stimuli to the stimuli file. More...
 
int WriteExpRspLine (vector< StdLogicVector > &_expRspValues, string _comment)
 Write an expected response to the expected responses file. More...
 
void WriteArbitraryTVLine (string _line)
 Write an arbitrary line to the common test vector file. More...
 
void WriteArbitraryTVLine (string _line, string _comment)
 Write an arbitrary line to the common test vector file. More...
 
void WriteArbitraryStimuliLine (string _line)
 Write an arbitrary line to the stimuli file. More...
 
void WriteArbitraryStimuliLine (string _line, string _comment)
 Write an arbitrary line to the stimuli file. More...
 
void WriteArbitraryExpRspLine (string _line)
 Write an arbitrary line to the expected response file. More...
 
void WriteArbitraryExpRspLine (string _line, string _comment)
 Write an arbitrary line to the expected response file. More...
 
void WriteTVCommentLine (string _comment)
 Write a comment line to the common test vector file. More...
 
void WriteStimuliCommentLine (string _comment)
 Write a comment line to the stimuli test vector file. More...
 
void WriteExpRspCommentLine (string _comment)
 Write a comment line to the expected response file. More...
 

Detailed Description

Test vector file generator for hardware designs.

Author
Michael Muehlberghuber (mbgh,michmueh)
Date
21 August 2014
Version
0.1

Member Function Documentation

void TVGenerator::Finalize ( )

Finalizes the TVGenerator object.

Must be called after using the TVGenerator in order to close open file connections, etc.

void TVGenerator::Initialize ( TVFileSettings  _tvFileSettings)

Initialize the TVGenerator using a single settings object.

Parameters
_tvFileSettingsThe settings to be used in order to initialize the TVGenerator.

Per default the TVGenerator is initialized using a single test vector file (i.e., a file containing both stimuli and the expected responses).

void TVGenerator::Initialize ( TVFileSettings  _stimFileSettings,
TVFileSettings  _expRspFileSettings 
)

Initialize the TVGenerator using two separate settings objects.

Parameters
_stimFileSettingsThe settings to be used in order to initialize the stimuli file.
_expRspFileSettingsThe settings to be used in order to initialize the expected responses file.

Using this initialization functions allows you to create stimuli and expected responses in two different files.

void TVGenerator::WriteArbitraryExpRspLine ( string  _line)

Write an arbitrary line to the expected response file.

Parameters
_lineThe arbitrary line to be written to the expected response file.
void TVGenerator::WriteArbitraryExpRspLine ( string  _line,
string  _comment 
)

Write an arbitrary line to the expected response file.

Parameters
_lineThe arbitrary line to be written to the expected response file.
_commentThe comment to be attached to the arbitrary line of the expected stimuli file.
void TVGenerator::WriteArbitraryStimuliLine ( string  _line)

Write an arbitrary line to the stimuli file.

Parameters
_lineThe arbitrary line to be written to the stimuli file.
void TVGenerator::WriteArbitraryStimuliLine ( string  _line,
string  _comment 
)

Write an arbitrary line to the stimuli file.

Parameters
_lineThe arbitrary line to be written to the stimuli file.
_commentThe comment to be attached to the arbitrary line of the stimuli file.
void TVGenerator::WriteArbitraryTVLine ( string  _line)

Write an arbitrary line to the common test vector file.

Parameters
_lineThe arbitrary line to be written to the file.
void TVGenerator::WriteArbitraryTVLine ( string  _line,
string  _comment 
)

Write an arbitrary line to the common test vector file.

Parameters
_lineThe arbitrary line to be written to the file.
_commentThe comment to be attached to the arbitrary test vector line.
void TVGenerator::WriteExpRspCommentLine ( string  _comment)

Write a comment line to the expected response file.

Parameters
_commentThe comment to be written to the expected response file.
int TVGenerator::WriteExpRspLine ( vector< StdLogicVector > &  _expRspValues,
string  _comment 
)

Write an expected response to the expected responses file.

Parameters
_expRspValuesThe values of the expected response signals to be written.
_commentThe comment to be attached to the end of the expected response file.
Returns
0 when successfully. Throws an exception otherwise.
void TVGenerator::WriteStimuliCommentLine ( string  _comment)

Write a comment line to the stimuli test vector file.

Parameters
_commentThe comment to be written to the stimuli file.
int TVGenerator::WriteStimuliLine ( vector< StdLogicVector > &  _stimuliValues,
string  _comment 
)

Write a single stimuli to the stimuli file.

Parameters
_stimuliValuesThe values of the stimuli signals to be written.
_commentThe comment to be attached at the end of the stimuli line.
Returns
0 when successfully. Throws an exception otherwise.
int TVGenerator::WriteTestVectorLine ( vector< StdLogicVector >  _signalValues,
string  _comment 
)

Write a single test vector line to the test vector file.

Parameters
_signalValuesThe values of the signals to be used.
_commentThe comment which will be added to the end of the test vector line in case it has been enabled in the test vector file settings.
Returns
0 when successfully. Throws an exception otherwise.
void TVGenerator::WriteTVCommentLine ( string  _comment)

Write a comment line to the common test vector file.

Parameters
_commentThe comment to be written to the test vector file.

The documentation for this class was generated from the following files: