Test vector file generator for hardware designs.
More...
#include <TVGenerator.h>
Test vector file generator for hardware designs.
- Author
- Michael Muehlberghuber (mbgh,michmueh)
- Date
- 21 August 2014
- Version
- 0.1
void TVGenerator::Finalize |
( |
| ) |
|
Finalizes the TVGenerator object.
Must be called after using the TVGenerator in order to close open file connections, etc.
Initialize the TVGenerator using a single settings object.
- Parameters
-
_tvFileSettings | The 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).
Initialize the TVGenerator using two separate settings objects.
- Parameters
-
_stimFileSettings | The settings to be used in order to initialize the stimuli file. |
_expRspFileSettings | The 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
-
_line | The 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
-
_line | The arbitrary line to be written to the expected response file. |
_comment | The 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
-
_line | The 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
-
_line | The arbitrary line to be written to the stimuli file. |
_comment | The 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
-
_line | The 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
-
_line | The arbitrary line to be written to the file. |
_comment | The 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
-
_comment | The 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
-
_expRspValues | The values of the expected response signals to be written. |
_comment | The 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
-
_comment | The 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
-
_stimuliValues | The values of the stimuli signals to be written. |
_comment | The 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
-
_signalValues | The values of the signals to be used. |
_comment | The 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
-
_comment | The comment to be written to the test vector file. |
The documentation for this class was generated from the following files: