no-OS
parameters.h
Go to the documentation of this file.
1 /***************************************************************************/
34 #ifndef _PARAMETERS_H_
35 #define _PARAMETERS_H_
36 
37 #include "app_config.h"
38 #ifdef ALTERA_PLATFORM
39 #include "system.h"
40 #else
41 #include "xparameters.h"
42 #endif
43 
44 #define UART_BAUDRATE 115200
45 #ifndef ALTERA_PLATFORM
46 #ifdef PLATFORM_MB
47 #define SPI_DEVICE_ID XPAR_SPI_0_DEVICE_ID
48 #define GPIO_DEVICE_ID XPAR_GPIO_0_DEVICE_ID
49 #define UART_DEVICE_ID XPAR_AXI_UART_DEVICE_ID
50 
51 #define GPIO_OFFSET 0
52 
53 #define ADC_DDR_BASEADDR (XPAR_AXI_DDR_CNTRL_BASEADDR + 0x800000)
54 #define DAC_DDR_BASEADDR (XPAR_AXI_DDR_CNTRL_BASEADDR + 0x900000)
55 #else
56 #define SPI_DEVICE_ID XPAR_XSPIPS_0_DEVICE_ID
57 #define GPIO_DEVICE_ID XPAR_XGPIOPS_0_DEVICE_ID
58 #define UART_DEVICE_ID XPAR_XUARTPS_0_DEVICE_ID
59 #ifdef XPS_BOARD_ZCU102
60 #define UART_IRQ_ID XPAR_XUARTPS_0_INTR
61 #else
62 #define UART_IRQ_ID XPAR_XUARTPS_1_INTR
63 #endif
64 
65 #define INTC_DEVICE_ID XPAR_SCUGIC_SINGLE_DEVICE_ID
66 
67 #ifdef PLATFORM_ZYNQMP
68 #define GPIO_OFFSET 78
69 #else
70 #define GPIO_OFFSET 54
71 #endif
72 
73 #define ADC_DDR_BASEADDR (XPAR_DDR_MEM_BASEADDR + 0x800000)
74 #define DAC_DDR_BASEADDR (XPAR_DDR_MEM_BASEADDR + 0x900000)
75 #endif
76 
77 #define RX_CORE_BASEADDR XPAR_AXI_AD9680_TPL_CORE_ADC_TPL_CORE_BASEADDR
78 #define TX_CORE_BASEADDR XPAR_AXI_AD9152_TPL_CORE_DAC_TPL_CORE_BASEADDR
79 
80 #define RX_DMA_BASEADDR XPAR_AXI_AD9680_DMA_BASEADDR
81 #define TX_DMA_BASEADDR XPAR_AXI_AD9152_DMA_BASEADDR
82 
83 #define RX_JESD_BASEADDR XPAR_AXI_AD9680_JESD_RX_AXI_BASEADDR
84 #define TX_JESD_BASEADDR XPAR_AXI_AD9152_JESD_TX_AXI_BASEADDR
85 
86 #define RX_XCVR_BASEADDR XPAR_AXI_AD9680_XCVR_BASEADDR
87 #define TX_XCVR_BASEADDR XPAR_AXI_AD9152_XCVR_BASEADDR
88 #else
89 #define SPI_DEVICE_ID 0
90 #define GPIO_DEVICE_ID 0
91 
92 #define GPIO_OFFSET 0
93 
94 #define SPI_BASEADDR SYS_SPI_BASE
95 #define GPIO_BASEADDR SYS_GPIO_OUT_BASE
96 
97 #define ADC_DDR_BASEADDR (SYS_DDR3_CNTRL_ARCH_BASE + 0x800000)
98 #define DAC_DDR_BASEADDR (SYS_DDR3_CNTRL_ARCH_BASE + 0x900000)
99 
100 #define RX_CORE_BASEADDR AXI_AD9680_CORE_BASE
101 #define TX_CORE_BASEADDR AXI_AD9152_CORE_BASE
102 
103 #define RX_DMA_BASEADDR AXI_AD9680_DMA_BASE
104 #define TX_DMA_BASEADDR AXI_AD9152_DMA_BASE
105 
106 #define RX_JESD_BASEADDR AD9680_JESD204_LINK_RECONFIG_BASE
107 #define TX_JESD_BASEADDR AD9152_JESD204_LINK_RECONFIG_BASE
108 
109 #define RX_XCVR_BASEADDR AD9680_JESD204_LINK_MANAGEMENT_BASE
110 #define TX_XCVR_BASEADDR AD9152_JESD204_LINK_MANAGEMENT_BASE
111 
112 #define RX_A10_FPLL_BASEADDR AD9680_JESD204_LINK_PLL_RECONFIG_BASE
113 #define TX_A10_FPLL_BASEADDR AD9152_JESD204_LINK_PLL_RECONFIG_BASE
114 
115 #define TX_PLL_BASEADDR AD9152_JESD204_LANE_PLL_RECONFIG_BASE
116 #define RX_PLL_BASEADDR AD9680_JESD204_LINK_PLL_RECONFIG_BASE
117 
118 #define RX_ADXCFG_0_BASEADDR AVL_ADXCFG_0_RCFG_S1_BASE
119 #define RX_ADXCFG_1_BASEADDR AVL_ADXCFG_1_RCFG_S1_BASE
120 #define RX_ADXCFG_2_BASEADDR AVL_ADXCFG_2_RCFG_S1_BASE
121 #define RX_ADXCFG_3_BASEADDR AVL_ADXCFG_3_RCFG_S1_BASE
122 #define TX_ADXCFG_0_BASEADDR AVL_ADXCFG_0_RCFG_S0_BASE
123 #define TX_ADXCFG_1_BASEADDR AVL_ADXCFG_1_RCFG_S0_BASE
124 #define TX_ADXCFG_2_BASEADDR AVL_ADXCFG_2_RCFG_S0_BASE
125 #define TX_ADXCFG_3_BASEADDR AVL_ADXCFG_3_RCFG_S0_BASE
126 #endif
127 
128 #define GPIO_CLKD_STATUS_0 (GPIO_OFFSET + 32)
129 #define GPIO_CLKD_STATUS_1 (GPIO_OFFSET + 33)
130 #define GPIO_DAC_IRQ (GPIO_OFFSET + 34)
131 #define GPIO_ADC_FDA (GPIO_OFFSET + 35)
132 #define GPIO_ADC_FDB (GPIO_OFFSET + 36)
133 #define GPIO_DAC_TXEN (GPIO_OFFSET + 37)
134 #define GPIO_ADC_PD (GPIO_OFFSET + 38)
135 #define GPIO_TRIG (GPIO_OFFSET + 39)
136 
146 };
147 
148 #endif /* _PARAMETERS_H_ */
ad9523_channels
ad9523_channels
Definition: parameters.h:145
ADC_DEVICE_CLK
@ ADC_DEVICE_CLK
Definition: parameters.h:150
DAC_DEVICE_SYSREF
@ DAC_DEVICE_SYSREF
Definition: parameters.h:147
ADC_FPGA_CLK
@ ADC_FPGA_CLK
Definition: parameters.h:152
DAC_FPGA_SYSREF
@ DAC_FPGA_SYSREF
Definition: parameters.h:149
DAC_DEVICE_CLK
@ DAC_DEVICE_CLK
Definition: parameters.h:146
ADC_FPGA_SYSREF
@ ADC_FPGA_SYSREF
Definition: parameters.h:153
DAC_FPGA_CLK
@ DAC_FPGA_CLK
Definition: parameters.h:148
ADC_DEVICE_SYSREF
@ ADC_DEVICE_SYSREF
Definition: parameters.h:151