Line 275... |
Line 275... |
// Processor - general stuff
|
// Processor - general stuff
|
neorv32_uart_printf("\n=== << General >> ===\n");
|
neorv32_uart_printf("\n=== << General >> ===\n");
|
neorv32_uart_printf("Clock: %u Hz\n", SYSINFO_CLK);
|
neorv32_uart_printf("Clock: %u Hz\n", SYSINFO_CLK);
|
neorv32_uart_printf("User ID: 0x%x\n", SYSINFO_USER_CODE);
|
neorv32_uart_printf("User ID: 0x%x\n", SYSINFO_USER_CODE);
|
neorv32_uart_printf("Full HW reset: "); __neorv32_rte_print_true_false(SYSINFO_FEATURES & (1 << SYSINFO_FEATURES_HW_RESET));
|
neorv32_uart_printf("Full HW reset: "); __neorv32_rte_print_true_false(SYSINFO_FEATURES & (1 << SYSINFO_FEATURES_HW_RESET));
|
|
neorv32_uart_printf("On-chip debug: "); __neorv32_rte_print_true_false(SYSINFO_FEATURES & (1 << SYSINFO_FEATURES_OCD));
|
|
|
|
|
// CPU configuration
|
// CPU configuration
|
neorv32_uart_printf("\n=== << CPU >> ===\n");
|
neorv32_uart_printf("\n=== << CPU >> ===\n");
|
|
|
Line 358... |
Line 359... |
neorv32_uart_printf("Zxnocnt(!) ");
|
neorv32_uart_printf("Zxnocnt(!) ");
|
}
|
}
|
if (tmp & (1<<CSR_MZEXT_ZXSCNT)) {
|
if (tmp & (1<<CSR_MZEXT_ZXSCNT)) {
|
neorv32_uart_printf("Zxscnt(!) ");
|
neorv32_uart_printf("Zxscnt(!) ");
|
}
|
}
|
|
if (tmp & (1<<CSR_MZEXT_DEBUGMODE)) {
|
|
neorv32_uart_printf("Debug-Mode ");
|
|
}
|
|
|
// check physical memory protection
|
// check physical memory protection
|
neorv32_uart_printf("\nPMP: ");
|
neorv32_uart_printf("\nPMP: ");
|
uint32_t pmp_num_regions = neorv32_cpu_pmp_get_num_regions();
|
uint32_t pmp_num_regions = neorv32_cpu_pmp_get_num_regions();
|
if (pmp_num_regions != 0) {
|
if (pmp_num_regions != 0) {
|