|
|
|
//--------------------------------------------------------------------------------
|
|
|
|
// Auto-generated by LiteX (6932fc51) on 2022-08-04 07:49:47
|
|
|
|
//--------------------------------------------------------------------------------
|
|
|
|
#ifndef __GENERATED_SOC_H
|
|
|
|
#define __GENERATED_SOC_H
|
|
|
|
#define CONFIG_CLOCK_FREQUENCY 100000000
|
|
|
|
#define CONFIG_CPU_HAS_INTERRUPT
|
|
|
|
#define CONFIG_CPU_RESET_ADDR 0
|
|
|
|
#define CONFIG_CPU_TYPE_A2O
|
|
|
|
#define CONFIG_CPU_VARIANT_STANDARD
|
|
|
|
#define CONFIG_CPU_HUMAN_NAME "a2owb"
|
|
|
|
#define CONFIG_CPU_NOP "nop"
|
|
|
|
#define CONFIG_ROM_INIT 1
|
|
|
|
#define CONFIG_CSR_DATA_WIDTH 32
|
|
|
|
#define CONFIG_CSR_ALIGNMENT 32
|
|
|
|
#define CONFIG_BUS_STANDARD "WISHBONE"
|
|
|
|
#define CONFIG_BUS_DATA_WIDTH 32
|
|
|
|
#define CONFIG_BUS_ADDRESS_WIDTH 32
|
|
|
|
#define CONFIG_BUS_BURSTING 0
|
|
|
|
#define TIMER0_INTERRUPT 1
|
|
|
|
#define UART_INTERRUPT 0
|
|
|
|
|
|
|
|
#ifndef __ASSEMBLER__
|
|
|
|
static inline int config_clock_frequency_read(void) {
|
|
|
|
return 100000000;
|
|
|
|
}
|
|
|
|
static inline int config_cpu_reset_addr_read(void) {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
static inline const char * config_cpu_human_name_read(void) {
|
|
|
|
return "a2owb";
|
|
|
|
}
|
|
|
|
static inline const char * config_cpu_nop_read(void) {
|
|
|
|
return "nop";
|
|
|
|
}
|
|
|
|
static inline int config_rom_init_read(void) {
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
static inline int config_csr_data_width_read(void) {
|
|
|
|
return 32;
|
|
|
|
}
|
|
|
|
static inline int config_csr_alignment_read(void) {
|
|
|
|
return 32;
|
|
|
|
}
|
|
|
|
static inline const char * config_bus_standard_read(void) {
|
|
|
|
return "WISHBONE";
|
|
|
|
}
|
|
|
|
static inline int config_bus_data_width_read(void) {
|
|
|
|
return 32;
|
|
|
|
}
|
|
|
|
static inline int config_bus_address_width_read(void) {
|
|
|
|
return 32;
|
|
|
|
}
|
|
|
|
static inline int config_bus_bursting_read(void) {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
static inline int timer0_interrupt_read(void) {
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
static inline int uart_interrupt_read(void) {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif // !__ASSEMBLER__
|
|
|
|
|
|
|
|
#endif
|