Visible to Intel only — GUID: bhc1423797279593
Ixiasoft
Visible to Intel only — GUID: bhc1423797279593
Ixiasoft
1.10.1.1. Customizing the Data Rate Reconfiguration Parameters
To customize the design to support a different transceiver configuration, follow the steps below:
- Follow the steps in the JESD204B Subsystem section to open the jesd204b_subsystem module and enter your desired serial data rate in the Data Rate box.
- Turn on the Enable Transceiver Dynamic Reconfiguration option. On the File menu, select Save to save the settings.
- Click the Generate HDL button on the bottom right corner of the Qsys window.
In addition to generating the Qsys system HDL, Qsys also generates the transceiver configuration data stored as an array in a C header file.
- After Qsys is done generating the HDL, click the Finish button on the bottom right corner of the Qsys window.
- In your shell, navigate to the Qsys-generated C header file location: <project directory>/jesd204b_nios_ref_design/jesd204b_ed/jesd204b_ed_qsys/altera_xcvr_native_a10_141/synth/reconfig/altera_xcvr_native_a10_reconfig_parameters.h.
- Open the altera_xcvr_native_a10_reconfig_parameters.h file and copy the array 'unsigned int altera_xcvr_native_a10_ram_array[120] = {…}'
- Navigate to the project transceiver reconfiguration parameters header file location: <project directory>/jesd204b_nios_ref_design/jesd204b_ed/software/jesd204_nios_ed/altera_xcvr_native_a10_reconfig_parameters.h.
- Paste the array 'unsigned int altera_xcvr_native_a10_ram_array[120] = {…}' and rename the array to 'unsigned int altera_xcvr_native_a10_ram_array_1[120] = {…}'
- Repeat steps 1-8 above, this time entering the original data rate divided by 2 in the Data Rate option of the JESD204B IP parameter editor window in Qsys. Be aware of the minimum data rate limits of the JESD204B IP core that is targeted to the device family of your choice. Refer to the JESD204B IP Core User Guide for the latest information on the minimum serial data rate specification. Qsys generates the configuration data array representing the new data rate. Copy and paste the data array unsigned int altera_xcvr_native_a10_ram_array[120] = {…} from the <project directory>/jesd204b_nios_ref_design/jesd204b_ed/jesd204b_ed_qsys/altera_xcvr_native_a10_141/synth/reconfig/altera_xcvr_native_a10_reconfig_parameters.h header file to the <project directory>/jesd204b_nios_ref_design/jesd204b_ed/software/jesd204_nios_ed/altera_xcvr_native_a10_reconfig_parameters.h header file as ‘unsigned int altera_xcvr_native_a10_ram_array_2[120] = {…}'
- Repeat steps 1-8 above, this time entering the original data rate divided by 4 in the Data Rate option of the JESD204B IP parameter editor window in Qsys. Be aware of the minimum data rate limits of the JESD204B IP core that is targeted to the device family of your choice. Refer to the JESD204B IP Core User Guide for the latest information on the minimum serial data rate specification. Qsys generates the configuration data array representing the new data rate. Copy and paste the data array unsigned int altera_xcvr_native_a10_ram_array[120] = {…} from the <project directory>/jesd204b_nios_ref_design/jesd204b_ed/jesd204b_ed_qsys/altera_xcvr_native_a10_141/synth/reconfig/altera_xcvr_native_a10_reconfig_parameters.h header file to the <project directory>/jesd204b_nios_ref_design/jesd204b_ed/software/jesd204_nios_ed/altera_xcvr_native_a10_reconfig_parameters.h header file as ‘unsigned int altera_xcvr_native_a10_ram_array_4[120] = {…}'
- Repeat steps 1-10 above for the ATX PLL module (xcvr_atx_pll_a10_0). Make sure to turn on the Generate C header file option under the Dynamic Reconfiguration tab of the ATX PLL parameter editor window in QSYS.
The Qsys-generated C header file is found in location: <project directory>/jesd204b_nios_ref_design/jesd204b_ed/jesd204b_ed_qsys/altera_xcvr_atx_pll_a10_141/synth/reconfig/altera_xcvr_atx_pll_a10_reconfig_parameters.h. The ATX PLL reconfiguration data array is named 'unsigned int altera_xcvr_atx_pll_a10_ram_array[11] = {…}'. The project ATX PLL reconfiguration parameters header file location is: <project directory>/jesd204b_nios_ref_design/jesd204b_ed/software/jesd204_nios_ed/altera_xcvr_atx_pll_a10_reconfig_parameters.h. Rename the data arrays appropriately when copying between the two header file locations.
- Repeat step 11 for the number of ATX PLL modules that are present in your design.
The steps above illustrate how you can customize your code to support the existing data rate reconfiguration function (for example, reconfigure to data rate divided by 2 and by 4) using an initially configured data rate of your choice. Modify the C code to further customize your code to support arbitrary data rate changes and even different transceiver configurations (refer to the Customize the C code section).