Go to the documentation of this file.
33 #ifndef _PARAMETERS_H_
34 #define _PARAMETERS_H_
39 #include "app_config.h"
40 #ifdef ALTERA_PLATFORM
43 #include "xparameters.h"
49 #ifdef ALTERA_PLATFORM
52 #define ADRV_RESETB GPIO_OFFSET + 52
53 #define ADRV_SYSREF_REQ GPIO_OFFSET + 58
54 #define CLK_RESETB GPIO_OFFSET + 59
56 #define RX_A10_FPLL_BASEADDR ADRV9009_RX_JESD204_LINK_PLL_RECONFIG_BASE
57 #define TX_A10_FPLL_BASEADDR ADRV9009_TX_JESD204_LINK_PLL_RECONFIG_BASE
58 #define RX_OS_A10_FPLL_BASEADDR ADRV9009_RX_OS_JESD204_LINK_PLL_RECONFIG_BASE
60 #define RX_JESD_BASEADDR ADRV9009_RX_JESD204_LINK_RECONFIG_BASE
61 #define TX_JESD_BASEADDR ADRV9009_TX_JESD204_LINK_RECONFIG_BASE
62 #define RX_OS_JESD_BASEADDR ADRV9009_RX_OS_JESD204_LINK_RECONFIG_BASE
64 #define RX_XCVR_BASEADDR ADRV9009_RX_JESD204_LINK_MANAGEMENT_BASE
65 #define TX_XCVR_BASEADDR ADRV9009_TX_JESD204_LINK_MANAGEMENT_BASE
66 #define RX_OS_XCVR_BASEADDR ADRV9009_RX_OS_JESD204_LINK_MANAGEMENT_BASE
68 #define RX_ADXCFG_0_BASEADDR AVL_ADXCFG_0_RCFG_S1_BASE
69 #define RX_ADXCFG_1_BASEADDR AVL_ADXCFG_1_RCFG_S1_BASE
70 #define TX_ADXCFG_0_BASEADDR AVL_ADXCFG_0_RCFG_S0_BASE
71 #define TX_ADXCFG_1_BASEADDR AVL_ADXCFG_1_RCFG_S0_BASE
72 #define TX_ADXCFG_2_BASEADDR AVL_ADXCFG_2_RCFG_S0_BASE
73 #define TX_ADXCFG_3_BASEADDR AVL_ADXCFG_3_RCFG_S0_BASE
74 #define RX_OS_ADXCFG_0_BASEADDR AVL_ADXCFG_2_RCFG_S1_BASE
75 #define RX_OS_ADXCFG_1_BASEADDR AVL_ADXCFG_3_RCFG_S1_BASE
77 #define TX_PLL_BASEADDR ADRV9009_TX_JESD204_LANE_PLL_RECONFIG_BASE
79 #define RX_CORE_BASEADDR AXI_ADRV9009_BASE
80 #define TX_CORE_BASEADDR AXI_ADRV9009_BASE + 0x4000
81 #define RX_OS_CORE_BASEADDR AXI_ADRV9009_BASE + 0x8000
83 #define RX_DMA_BASEADDR AXI_ADRV9009_RX_DMA_BASE
84 #define TX_DMA_BASEADDR AXI_ADRV9009_TX_DMA_BASE
86 #define DDR_MEM_BASEADDR SYS_DDR3_CNTRL_ARCH_BASE
87 #define ADC_DDR_BASEADDR SYS_DDR3_CNTRL_ARCH_BASE + 0x800000
88 #define DAC_DDR_BASEADDR SYS_DDR3_CNTRL_ARCH_BASE + 0xA000000
90 #define GPIO_BASEADDR SYS_GPIO_OUT_BASE
92 #define SPI_BASEADDR SYS_SPI_BASE
94 #ifdef PLATFORM_ZYNQMP
95 #define GPIO_DEVICE_ID XPAR_PSU_GPIO_0_DEVICE_ID
97 #define GPIO_DEVICE_ID XPAR_PS7_GPIO_0_DEVICE_ID
100 #if defined(ZU11EG) // ZU11EG
101 #define ADRV_CS 0 // Talise A
102 #define ADRV_B_CS 1 // Talise B
103 #define CLK_CS 2 // Clock chip placed on the som
104 #define CAR_CLK_CS 3 // Clock chip placed on the carrier
107 #define TRX_A_RESETB_GPIO 130
108 #define TRX_A_TEST_GPIO 131
109 #define TRX_A_RX1_ENABLE_GPIO 132
110 #define TRX_A_RX2_ENABLE_GPIO 133
111 #define TRX_A_TX1_ENABLE_GPIO 134
112 #define TRX_A_TX2_ENABLE_GPIO 135
115 #define TRX_B_RESETB_GPIO 156
116 #define TRX_B_TEST_GPIO 157
117 #define TRX_B_RX1_ENABLE_GPIO 158
118 #define TRX_B_RX2_ENABLE_GPIO 159
119 #define TRX_B_TX1_ENABLE_GPIO 160
120 #define TRX_B_TX2_ENABLE_GPIO 161
122 #define SYSREF_REQ_GPIO 167
123 #define CLK_RESETB_GPIO 162
124 #define DAC_FIFO_BYPASS_GPIO 168
125 #define CAR_CLK_RESETB_GPIO 101
127 #elif defined(FMCOMMS8_ZCU102)
129 #define ADRV_CS 0 // Talise A
130 #define ADRV_B_CS 1 // Talise B
131 #define CLK_CS 2 // Clock chip placed on the som
132 #define CAR_CLK_CS 3 // Clock chip placed on the carrier
135 #define TRX_A_RESETB_GPIO 120
136 #define TRX_A_TEST_GPIO 131
137 #define TRX_A_RX1_ENABLE_GPIO 121
138 #define TRX_A_RX2_ENABLE_GPIO 122
139 #define TRX_A_TX1_ENABLE_GPIO 123
140 #define TRX_A_TX2_ENABLE_GPIO 124
143 #define TRX_B_RESETB_GPIO 135
144 #define TRX_B_TEST_GPIO 157
145 #define TRX_B_RX1_ENABLE_GPIO 136
146 #define TRX_B_RX2_ENABLE_GPIO 137
147 #define TRX_B_TX1_ENABLE_GPIO 138
148 #define TRX_B_TX2_ENABLE_GPIO 139
150 #define SYSREF_REQ_GPIO 167
151 #define CLK_RESETB_GPIO 162
152 #define DAC_FIFO_BYPASS_GPIO 168
153 #define CAR_CLK_RESETB_GPIO 101
160 #ifdef XPS_BOARD_ZCU102 // ZCU102
161 #define TRX_A_RESETB_GPIO 130
162 #define SYSREF_REQ_GPIO 136
163 #define CLK_RESETB_GPIO 137
164 #define DAC_FIFO_BYPASS_GPIO 138
166 #define TRX_A_RESETB_GPIO 106
167 #define SYSREF_REQ_GPIO 112
168 #define CLK_RESETB_GPIO 113
169 #define DAC_FIFO_BYPASS_GPIO 114
175 #elif defined(FMCOMMS8_ZCU102)
178 #define RX_CLKGEN_BASEADDR XPAR_AXI_ADRV9009_RX_CLKGEN_BASEADDR
179 #define TX_CLKGEN_BASEADDR XPAR_AXI_ADRV9009_TX_CLKGEN_BASEADDR
180 #define RX_OS_CLKGEN_BASEADDR XPAR_AXI_ADRV9009_RX_OS_CLKGEN_BASEADDR
184 #define RX_JESD_BASEADDR XPAR_AXI_ADRV9009_SOM_RX_JESD_RX_AXI_BASEADDR
185 #define TX_JESD_BASEADDR XPAR_AXI_ADRV9009_SOM_TX_JESD_TX_AXI_BASEADDR
186 #define RX_OS_JESD_BASEADDR XPAR_AXI_ADRV9009_SOM_OBS_JESD_RX_AXI_BASEADDR
187 #elif defined(FMCOMMS8_ZCU102)
188 #define RX_JESD_BASEADDR XPAR_AXI_ADRV9009_FMC_RX_JESD_RX_AXI_BASEADDR
189 #define TX_JESD_BASEADDR XPAR_AXI_ADRV9009_FMC_TX_JESD_TX_AXI_BASEADDR
190 #define RX_OS_JESD_BASEADDR XPAR_AXI_ADRV9009_FMC_OBS_JESD_RX_AXI_BASEADDR
192 #define RX_JESD_BASEADDR XPAR_AXI_ADRV9009_RX_JESD_RX_AXI_BASEADDR
193 #define TX_JESD_BASEADDR XPAR_AXI_ADRV9009_TX_JESD_TX_AXI_BASEADDR
194 #define RX_OS_JESD_BASEADDR XPAR_AXI_ADRV9009_RX_OS_JESD_RX_AXI_BASEADDR
198 #define RX_XCVR_BASEADDR XPAR_AXI_ADRV9009_SOM_RX_XCVR_BASEADDR
199 #define TX_XCVR_BASEADDR XPAR_AXI_ADRV9009_SOM_TX_XCVR_BASEADDR
200 #define RX_OS_XCVR_BASEADDR XPAR_AXI_ADRV9009_SOM_OBS_XCVR_BASEADDR
201 #elif defined(FMCOMMS8_ZCU102)
202 #define RX_XCVR_BASEADDR XPAR_AXI_ADRV9009_FMC_RX_XCVR_BASEADDR
203 #define TX_XCVR_BASEADDR XPAR_AXI_ADRV9009_FMC_TX_XCVR_BASEADDR
204 #define RX_OS_XCVR_BASEADDR XPAR_AXI_ADRV9009_FMC_OBS_XCVR_BASEADDR
206 #define RX_XCVR_BASEADDR XPAR_AXI_ADRV9009_RX_XCVR_BASEADDR
207 #define TX_XCVR_BASEADDR XPAR_AXI_ADRV9009_TX_XCVR_BASEADDR
208 #define RX_OS_XCVR_BASEADDR XPAR_AXI_ADRV9009_RX_OS_XCVR_BASEADDR
211 #ifdef XPAR_AXI_ADRV9009_CORE_BASEADDR
212 #define RX_CORE_BASEADDR XPAR_AXI_ADRV9009_CORE_BASEADDR
213 #define TX_CORE_BASEADDR XPAR_AXI_ADRV9009_CORE_BASEADDR + 0x4000
214 #define RX_OS_CORE_BASEADDR XPAR_AXI_ADRV9009_CORE_BASEADDR + 0x8000
217 #define RX_CORE_BASEADDR XPAR_RX_ADRV9009_SOM_TPL_CORE_ADC_TPL_CORE_BASEADDR
218 #define TX_CORE_BASEADDR XPAR_TX_ADRV9009_SOM_TPL_CORE_DAC_TPL_CORE_BASEADDR
219 #define RX_OS_CORE_BASEADDR XPAR_OBS_ADRV9009_SOM_TPL_CORE_ADC_TPL_CORE_BASEADDR
220 #elif defined(FMCOMMS8_ZCU102)
221 #define RX_CORE_BASEADDR XPAR_RX_ADRV9009_FMC_TPL_CORE_ADC_TPL_CORE_BASEADDR
222 #define TX_CORE_BASEADDR XPAR_TX_ADRV9009_FMC_TPL_CORE_DAC_TPL_CORE_BASEADDR
223 #define RX_OS_CORE_BASEADDR XPAR_OBS_ADRV9009_FMC_TPL_CORE_ADC_TPL_CORE_BASEADDR
225 #define RX_CORE_BASEADDR XPAR_RX_ADRV9009_TPL_CORE_ADC_TPL_CORE_BASEADDR
226 #define TX_CORE_BASEADDR XPAR_TX_ADRV9009_TPL_CORE_DAC_TPL_CORE_BASEADDR
227 #define RX_OS_CORE_BASEADDR XPAR_RX_OS_ADRV9009_TPL_CORE_ADC_TPL_CORE_BASEADDR
228 #endif // #if defined(ZU11EG)
229 #endif // #ifdef XPAR_AXI_ADRV9009_CORE_BASEADDR
232 #define RX_DMA_BASEADDR XPAR_AXI_ADRV9009_SOM_RX_DMA_BASEADDR
233 #define TX_DMA_BASEADDR XPAR_AXI_ADRV9009_SOM_TX_DMA_BASEADDR
234 #define RX_OS_DMA_BASEADDR XPAR_AXI_ADRV9009_SOM_OBS_DMA_BASEADDR
235 #elif defined(FMCOMMS8_ZCU102)
236 #define RX_DMA_BASEADDR XPAR_AXI_ADRV9009_FMC_RX_DMA_BASEADDR
237 #define TX_DMA_BASEADDR XPAR_AXI_ADRV9009_FMC_TX_DMA_BASEADDR
239 #define RX_DMA_BASEADDR XPAR_AXI_ADRV9009_RX_DMA_BASEADDR
240 #define TX_DMA_BASEADDR XPAR_AXI_ADRV9009_TX_DMA_BASEADDR
241 #define RX_OS_DMA_BASEADDR XPAR_AXI_ADRV9009_RX_OS_DMA_BASEADDR
244 #define DDR_MEM_BASEADDR XPAR_DDR_MEM_BASEADDR
245 #define ADC_DDR_BASEADDR XPAR_DDR_MEM_BASEADDR + 0x800000
246 #define DAC_DDR_BASEADDR XPAR_DDR_MEM_BASEADDR + 0xA000000
248 #define UART_DEVICE_ID XPAR_XUARTPS_0_DEVICE_ID
249 #define UART_BAUDRATE 921600
250 #ifdef XPS_BOARD_ZCU102
251 #define UART_IRQ_ID XPAR_XUARTPS_0_INTR
253 #define UART_IRQ_ID XPAR_XUARTPS_1_INTR
255 #define INTC_DEVICE_ID XPAR_SCUGIC_SINGLE_DEVICE_ID