Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:23:43

0001 /**
0002  * @file
0003  * 
0004  * @ingroup lm32_evr
0005  * 
0006  * @brief System configuration.
0007  */
0008 
0009 #ifndef __SYSTEM_CONFIG_H_
0010 #define __SYSTEM_CONFIG_H_
0011 
0012 
0013 #define FPGA_DEVICE_FAMILY    "ECP2M"
0014 #define PLATFORM_NAME         "platform1"
0015 #define USE_PLL               (0)
0016 #define CPU_FREQUENCY         (75000000)
0017 
0018 
0019 /* FOUND 1 CPU UNIT(S) */
0020 
0021 /*
0022  * CPU Instance LM32 component configuration
0023  */
0024 #define CPU_NAME "LM32"
0025 #define CPU_EBA (0x04000000)
0026 #define CPU_DIVIDE_ENABLED (1)
0027 #define CPU_SIGN_EXTEND_ENABLED (1)
0028 #define CPU_MULTIPLIER_ENABLED (1)
0029 #define CPU_SHIFT_ENABLED (1)
0030 #define CPU_DEBUG_ENABLED (1)
0031 #define CPU_HW_BREAKPOINTS_ENABLED (0)
0032 #define CPU_NUM_HW_BREAKPOINTS (0)
0033 #define CPU_NUM_WATCHPOINTS (0)
0034 #define CPU_ICACHE_ENABLED (1)
0035 #define CPU_ICACHE_SETS (512)
0036 #define CPU_ICACHE_ASSOC (1)
0037 #define CPU_ICACHE_BYTES_PER_LINE (16)
0038 #define CPU_DCACHE_ENABLED (1)
0039 #define CPU_DCACHE_SETS (512)
0040 #define CPU_DCACHE_ASSOC (1)
0041 #define CPU_DCACHE_BYTES_PER_LINE (16)
0042 #define CPU_DEBA (0x0C000000)
0043 #define CPU_CHARIO_IN        (1)
0044 #define CPU_CHARIO_OUT       (1)
0045 #define CPU_CHARIO_TYPE      "JTAG UART"
0046 
0047 /*
0048  * gpio component configuration
0049  */
0050 #define GPIO_NAME  "gpio"
0051 #define GPIO_BASE_ADDRESS  (0x80004000)
0052 #define GPIO_SIZE  (128)
0053 #define GPIO_CHARIO_IN        (0)
0054 #define GPIO_CHARIO_OUT       (0)
0055 #define GPIO_ADDRESS_LOCK  (1)
0056 #define GPIO_DISABLE  (0)
0057 #define GPIO_OUTPUT_PORTS_ONLY  (1)
0058 #define GPIO_INPUT_PORTS_ONLY  (0)
0059 #define GPIO_TRISTATE_PORTS  (0)
0060 #define GPIO_BOTH_INPUT_AND_OUTPUT  (0)
0061 #define GPIO_DATA_WIDTH  (4)
0062 #define GPIO_INPUT_WIDTH  (1)
0063 #define GPIO_OUTPUT_WIDTH  (1)
0064 #define GPIO_IRQ_MODE  (0)
0065 #define GPIO_LEVEL  (0)
0066 #define GPIO_EDGE  (0)
0067 #define GPIO_EITHER_EDGE_IRQ  (0)
0068 #define GPIO_POSE_EDGE_IRQ  (0)
0069 #define GPIO_NEGE_EDGE_IRQ  (0)
0070 
0071 /*
0072  * uart component configuration
0073  */
0074 #define UART_NAME  "uart"
0075 #define UART_BASE_ADDRESS  (0x80006000)
0076 #define UART_SIZE  (128)
0077 #define UART_IRQ (0)
0078 #define UART_CHARIO_IN        (1)
0079 #define UART_CHARIO_OUT       (1)
0080 #define UART_CHARIO_TYPE      "RS-232"
0081 #define UART_ADDRESS_LOCK  (1)
0082 #define UART_DISABLE  (0)
0083 #define UART_MODEM  (0)
0084 #define UART_ADDRWIDTH  (5)
0085 #define UART_DATAWIDTH  (8)
0086 #define UART_BAUD_RATE  (115200)
0087 #define UART_IB_SIZE  (4)
0088 #define UART_OB_SIZE  (4)
0089 #define UART_BLOCK_WRITE  (1)
0090 #define UART_BLOCK_READ  (1)
0091 #define UART_DATA_BITS  (8)
0092 #define UART_STOP_BITS  (1)
0093 #define UART_FIFO  (0)
0094 #define UART_INTERRUPT_DRIVEN  (1)
0095 
0096 /*
0097  * ebr component configuration
0098  */
0099 #define EBR_NAME  "ebr"
0100 #define EBR_BASE_ADDRESS  (0x04000000)
0101 #define EBR_SIZE  (32768)
0102 #define EBR_IS_READABLE   (1)
0103 #define EBR_IS_WRITABLE   (1)
0104 #define EBR_ADDRESS_LOCK  (1)
0105 #define EBR_DISABLE  (0)
0106 #define EBR_EBR_DATA_WIDTH  (32)
0107 #define EBR_INIT_FILE_NAME  "none"
0108 #define EBR_INIT_FILE_FORMAT  "hex"
0109 
0110 /*
0111  * ts_mac_core component configuration
0112  */
0113 #define TS_MAC_CORE_NAME  "ts_mac_core"
0114 #define TS_MAC_CORE_BASE_ADDRESS  (0x80008000)
0115 #define TS_MAC_CORE_SIZE  (8192)
0116 #define TS_MAC_CORE_IRQ (2)
0117 #define TS_MAC_CORE_CHARIO_IN        (0)
0118 #define TS_MAC_CORE_CHARIO_OUT       (0)
0119 #define TS_MAC_CORE_ADDRESS_LOCK  (1)
0120 #define TS_MAC_CORE_DISABLE  (0)
0121 #define TS_MAC_CORE_STAT_REGS  (1)
0122 #define TS_MAC_CORE_TXRX_FIFO_DEPTH  (512)
0123 #define TS_MAC_CORE_MIIM_MODULE  (1)
0124 #define TS_MAC_CORE_NGO  "l:/mrf/lattice/crio-lm32/platform1/components/ts_mac_top_v27/ipexpress/ts_mac_core/ts_mac_core.ngo"
0125 #define TS_MAC_CORE_ISPLEVER_PRJ  "l:/mrf/lattice/crio-lm32/criomico.syn"
0126 
0127 /*
0128  * timer0 component configuration
0129  */
0130 #define TIMER0_NAME  "timer0"
0131 #define TIMER0_BASE_ADDRESS  (0x80002000)
0132 #define TIMER0_SIZE  (128)
0133 #define TIMER0_IRQ (1)
0134 #define TIMER0_CHARIO_IN        (0)
0135 #define TIMER0_CHARIO_OUT       (0)
0136 #define TIMER0_ADDRESS_LOCK  (1)
0137 #define TIMER0_DISABLE  (0)
0138 #define TIMER0_PERIOD_NUM  (20)
0139 #define TIMER0_PERIOD_WIDTH  (32)
0140 #define TIMER0_WRITEABLE_PERIOD  (1)
0141 #define TIMER0_READABLE_SNAPSHOT  (1)
0142 #define TIMER0_START_STOP_CONTROL  (1)
0143 #define TIMER0_WATCHDOG  (0)
0144 
0145 /*
0146  * timer1 component configuration
0147  */
0148 #define TIMER1_NAME  "timer1"
0149 #define TIMER1_BASE_ADDRESS  (0x8000A000)
0150 #define TIMER1_SIZE  (128)
0151 #define TIMER1_IRQ (3)
0152 #define TIMER1_CHARIO_IN        (0)
0153 #define TIMER1_CHARIO_OUT       (0)
0154 #define TIMER1_ADDRESS_LOCK  (1)
0155 #define TIMER1_DISABLE  (0)
0156 #define TIMER1_PERIOD_NUM  (20)
0157 #define TIMER1_PERIOD_WIDTH  (32)
0158 #define TIMER1_WRITEABLE_PERIOD  (1)
0159 #define TIMER1_READABLE_SNAPSHOT  (1)
0160 #define TIMER1_START_STOP_CONTROL  (1)
0161 #define TIMER1_WATCHDOG  (0)
0162 
0163 /*
0164  * ddr2_sdram component configuration
0165  */
0166 #define DDR2_SDRAM_NAME  "ddr2_sdram"
0167 #define DDR2_SDRAM_BASE_ADDRESS  (0x08000000)
0168 #define DDR2_SDRAM_SIZE  (33554432)
0169 #define DDR2_SDRAM_IS_READABLE   (1)
0170 #define DDR2_SDRAM_IS_WRITABLE   (1)
0171 #define DDR2_SDRAM_BST_CNT_READ  (1)
0172 #define DDR2_SDRAM_ADDRESS_LOCK  (1)
0173 #define DDR2_SDRAM_DISABLE  (0)
0174 #define DDR2_SDRAM_NGO  "L:/mrf/lattice/cRIO-LM32/platform1/components/wb_ddr2_ctl_v65/ipexpress/ddr2_sdram/ddr2_sdram.ngo"
0175 #define DDR2_SDRAM_ISPLEVER_PRJ  "l:/mrf/lattice/crio-lm32/criomico.syn"
0176 #define DDR2_SDRAM_PARAM_FILE  "ddr_p_eval/$/src/params/ddr_sdram_mem_params.v"
0177 #define DDR2_SDRAM_MEM_TOP  "ddr_p_eval/$/src/rtl/top/@/ddr_sdram_mem_top.v"
0178 
0179 
0180 #endif /* __SYSTEM_CONFIG_H_ */