![]() |
NEORV32 - Software Framework Documentation
|
Test program for the NEORV32 'Zicond' ISA extension using pseudo-random data as input; compares results from hardware against pure-sw reference functions. More...
User configuration | |
#define | BAUD_RATE (19200) |
#define | NUM_TEST_CASES (1000000) |
#define | SILENT_MODE (1) |
uint32_t | xorshift32 (void) |
uint32_t | check_result (uint32_t num, uint32_t opa, uint32_t opb, uint32_t ref, uint32_t res) |
void | print_report (int num_err, int num_tests) |
int | main () |
Test program for the NEORV32 'Zicond' ISA extension using pseudo-random data as input; compares results from hardware against pure-sw reference functions.
#define BAUD_RATE (19200) |
UART BAUD rate
#define NUM_TEST_CASES (1000000) |
UART BAUD rate
#define SILENT_MODE (1) |
UART BAUD rate
uint32_t check_result | ( | uint32_t | num, |
uint32_t | opa, | ||
uint32_t | opb, | ||
uint32_t | ref, | ||
uint32_t | res | ||
) |
Check results (reference (SW) vs actual hardware).
[in] | num | Test case number |
[in] | opa | Operand 1 |
[in] | opb | Operand 2 |
[in] | ref | Software reference |
[in] | res | Actual results |
int main | ( | void | ) |
Main function; test all available operations of the NEORV32 'B' extension using bit manipulation intrinsics and software-only reference functions (emulation).
void print_report | ( | int | num_err, |
int | num_tests | ||
) |
Print test report.
[in] | num_err | Number or errors in this test. |
[in] | num_tests | Total number of conducted tests. |
uint32_t xorshift32 | ( | void | ) |
Pseudo-Random Number Generator (to generate deterministic test vectors).