![]() |
NEORV32 Software Framework Documentation
The NEORV32 RISC-V Processor
|
True random number generator demo program. More...
#include <neorv32.h>
Macros | |
#define | BAUD_RATE 19200 |
Functions | |
void | irq_test (void) |
void | print_random_data (void) |
void | print_hex (void) |
void | aux_print_hex_byte (uint8_t byte) |
void | repetition_count_test (void) |
void | adaptive_proportion_test (void) |
void | generate_histogram (void) |
void | compute_rate (void) |
void | delay_ms (uint32_t time_ms) |
void | trng_firq_handler (void) |
int | main (void) |
Variables | |
volatile int | irq_ack = 0 |
True random number generator demo program.
void adaptive_proportion_test | ( | void | ) |
Run adaptive proportion test (NIST SP 800-90B)
void aux_print_hex_byte | ( | uint8_t | byte | ) |
Print HEX byte.
[in] | byte | Byte to be printed as 2-char hex value. |
void compute_rate | ( | void | ) |
Compute average random generation rate
void delay_ms | ( | uint32_t | time_ms | ) |
Simple bus-wait helper.
[in] | time_ms | Time in ms to wait (unsigned 32-bit). |
void generate_histogram | ( | void | ) |
Generate and print histogram. Samples random data until a key is pressed.
void irq_test | ( | void | ) |
Test TRNG interrupt.
int main | ( | void | ) |
Simple true random number test/demo program.
void print_hex | ( | void | ) |
Print random numbers as HEX dump.
void print_random_data | ( | void | ) |
Print random numbers until a key is pressed.
void repetition_count_test | ( | void | ) |
Run repetition count test (NIST SP 800-90B)
void trng_firq_handler | ( | void | ) |
TRNG interrupt handler.