Building blocks for generating end-to-end or unit test workloads for Agora.
More...
#include <data_generator.h>
Building blocks for generating end-to-end or unit test workloads for Agora.
◆ Profile
Enumerator |
---|
kRandom | |
kProfile123 | |
◆ DataGenerator()
◆ BinForIfft()
An array with OfdmDataNum() elements with the OfdmDataNum() modulated elements binned at the center.
- Parameters
-
modulated_codeword | The modulated codeword with OfdmDataNum() elements |
◆ DoDataGeneration()
void DataGenerator::DoDataGeneration |
( |
const std::string & |
directory | ) |
|
◆ GenCodeblock()
void DataGenerator::GenCodeblock |
( |
Direction |
dir, |
|
|
const int8_t * |
input_ptr, |
|
|
std::vector< int8_t > & |
encoded_codeword |
|
) |
| |
|
inline |
Generate the encoded bit sequence for one code block for the active LDPC configuration from the input bit sequence.
- Parameters
-
input_ptr | The input bit sequence to be encoded |
encoded_codeword | The generated encoded codeword bit sequence |
◆ GenMacData()
Generate random Mac payload bit sequence.
- Parameters
-
information | The generated input bit sequence |
ue_id | ID of the UE that this codeblock belongs to |
◆ GenRawData()
void DataGenerator::GenRawData |
( |
Direction |
dir, |
|
|
std::vector< int8_t > & |
information, |
|
|
size_t |
ue_id |
|
) |
| |
|
inline |
Generate one raw information bit sequence.
- Parameters
-
information | The generated input bit sequence |
ue_id | ID of the UE that this codeblock belongs to |
◆ GetCommonPilotTimeDomain()
std::vector<complex_float> DataGenerator::GetCommonPilotTimeDomain |
( |
| ) |
const |
|
inline |
Return the time-domain pilot symbol with OfdmCaNum complex floats.
◆ GetDLModulation()
std::vector<complex_float> DataGenerator::GetDLModulation |
( |
const std::vector< int8_t > & |
encoded_codeword, |
|
|
complex_float * |
pilot_seq |
|
) |
| |
|
inline |
◆ GetModulation() [1/2]
std::vector<complex_float> DataGenerator::GetModulation |
( |
const int8_t * |
encoded_codeword, |
|
|
size_t |
num_bits |
|
) |
| |
|
inline |
◆ GetModulation() [2/2]
std::vector<complex_float> DataGenerator::GetModulation |
( |
const std::vector< int8_t > & |
encoded_codeword | ) |
|
|
inline |
Return the output of modulating the encoded codeword.
- Parameters
-
encoded_codeword | The encoded LDPC codeword bit sequence |
- Returns
- An array of complex floats with OfdmDataNum() elements
◆ cfg_
◆ fast_rand_
◆ profile_
const Profile DataGenerator::profile_ |
|
private |
The documentation for this class was generated from the following files: