NEORV32 Software Framework Documentation
The NEORV32 RISC-V Processor
|
CPU/Processor test/verification program. More...
Macros | |
User configuration | |
#define | BAUD_RATE (19200) |
#define | ADDR_UNALIGNED_1 (0x00000001UL) |
#define | ADDR_UNALIGNED_3 (0x00000003UL) |
#define | ADDR_UNREACHABLE (NEORV32_DM_BASE) |
#define | EXT_MEM_BASE (0xF0000000UL) |
#define | SIM_TRIG_BASE (0xFF000000UL) |
UART print macros | |
#define | PRINT_STANDARD(...) |
#define | PRINT_CRITICAL(...) |
Functions | |
void | sim_irq_trigger (uint32_t sel) |
void | global_trap_handler (void) |
void | rte_service_handler (void) |
void | vectored_irq_table (void) |
void | vectored_global_handler (void) |
void | vectored_mei_handler (void) |
void | hw_breakpoint_handler (void) |
void | trigger_module_dummy (void) |
void | xirq_trap_handler0 (void) |
void | xirq_trap_handler1 (void) |
void | test_ok (void) |
void | test_fail (void) |
int | main () |
CPU/Processor test/verification program.
#define PRINT_CRITICAL | ( | ... | ) |
#define PRINT_STANDARD | ( | ... | ) |
void global_trap_handler | ( | void | ) |
Trap handler for ALL exceptions/interrupts.
void hw_breakpoint_handler | ( | void | ) |
Hardware-breakpoint trap handler
int main | ( | void | ) |
High-level CPU/processor test program.
void rte_service_handler | ( | void | ) |
RTE's ecall "system service handler"; modifies application context to provide "system services"
void sim_irq_trigger | ( | uint32_t | sel | ) |
Simulation-based function to set/clear CPU interrupts (MSI, MEI).
[in] | sel | IRQ select mask (bit positions according to NEORV32_CSR_MIE_enum). |
void test_fail | ( | void | ) |
Test results helper function: Shows "[FAIL]" and increments global cnt_fail
void test_ok | ( | void | ) |
Test results helper function: Shows "[ok]" and increments global cnt_ok
void trigger_module_dummy | ( | void | ) |
Test function for the trigger module
void vectored_global_handler | ( | void | ) |
Vectored trap handler for ALL exceptions/interrupts.
void vectored_irq_table | ( | void | ) |
Vectored mtvec mode jump table.
void vectored_mei_handler | ( | void | ) |
Machine external interrupt handler.
void xirq_trap_handler0 | ( | void | ) |
XIRQ handler channel 0.
void xirq_trap_handler1 | ( | void | ) |
XIRQ handler channel 1.