![]() |
NEORV32 - Software Framework Documentation
|
Example program showing how to use the CFU's custom instructions. Take a look at the "hardware-counterpart" of this CFU example in 'rtl/core/neorv32_cpu_cp_cfu.vhd'. More...
#include <neorv32.h>
Macros | |
#define | madd_lo(a, b, c) neorv32_cfu_r4_instr(0b000, a, b, c) |
#define | madd_hi(a, b, c) neorv32_cfu_r4_instr(0b001, a, b, c) |
User configuration | |
#define | BAUD_RATE 19200 |
#define | TESTCASES 4 |
Functions | |
uint32_t | xorshift32 (void) |
int | main () |
Example program showing how to use the CFU's custom instructions. Take a look at the "hardware-counterpart" of this CFU example in 'rtl/core/neorv32_cpu_cp_cfu.vhd'.
#define BAUD_RATE 19200 |
UART BAUD rate
#define TESTCASES 4 |
Number of test cases per CFU instruction
int main | ( | void | ) |
Main function
uint32_t xorshift32 | ( | void | ) |
Pseudo-random number generator (to generate deterministic test data).