A newer version of this document is available. Customers should click here to go to the newest version.
2.1. Installation and Licensing
2.2. Generating CPRI Intel® FPGA IP Core
2.3. CPRI Intel® FPGA IP File Structure
2.4. CPRI Intel® FPGA IP Core Parameters
2.5. Integrating Your Intel® FPGA IP Core in Your Design: Required External Blocks
2.6. Simulating Intel FPGA IP Cores
2.7. Understanding the Testbench
2.8. Running the Testbench
2.9. Compiling the Full Design and Programming the FPGA
2.5.1. Adding the Transceiver TX PLL IP Core
2.5.2. Adding the Reset Controller
2.5.3. Adding the Transceiver Reconfiguration Controller
2.5.4. Adding the Off-Chip Clean-Up PLL
2.5.5. Adding and Connecting the Single-Trip Delay Calibration Blocks
2.5.6. Transceiver PLL Calibration
2.5.7. Reference and System PLL Clock for your IP Design
3.1. Interfaces Overview
3.2. CPRI Intel® FPGA IP Core Clocking Structure
3.3. CPRI Intel® FPGA IP Core Reset Requirements
3.4. Start-Up Sequence Following Reset
3.5. AUX Interface
3.6. Direct IQ Interface
3.7. Ctrl_AxC Interface
3.8. Direct Vendor Specific Access Interface
3.9. Real-Time Vendor Specific Interface
3.10. Direct HDLC Serial Interface
3.11. Direct L1 Control and Status Interface
3.12. L1 Debug Interface
3.13. Media Independent Interface (MII) to External Ethernet Block
3.14. Gigabit Media Independent Interface (GMII) to External Ethernet Block
3.15. CPU Interface to CPRI Intel® FPGA IP Registers
3.16. Auto-Rate Negotiation
3.17. Extended Delay Measurement
3.18. Deterministic Latency and Delay Measurement and Calibration
3.19. CPRI Intel® FPGA IP Transceiver and Transceiver Management Interfaces
3.20. Testing Features
3.19.1. CPRI Link
3.19.2. Main Transceiver Clock and Reset Signals
3.19.3. Arria V, Arria V GZ, Cyclone V, and Stratix V Transceiver Reconfiguration Interface
3.19.4. Intel® Arria® 10, Intel® Stratix® 10, and Intel® Agilex™ Transceiver Reconfiguration Interface
3.19.5. RS-FEC Interface
3.19.6. Interface to the External Reset Controller
3.19.7. Interface to the External PLL
3.19.8. Transceiver Debug Interface
5.1. INTR Register
5.2. L1_STATUS Register
5.3. L1_CONFIG Register
5.4. BIT_RATE_CONFIG Register
5.5. PROT_VER Register
5.6. TX_SCR Register
5.7. RX_SCR Register
5.8. CM_CONFIG Register
5.9. CM_STATUS Register
5.10. START_UP_SEQ Register
5.11. START_UP_TIMER Register
5.12. FLSAR Register
5.13. CTRL_INDEX Register
5.14. TX_CTRL Register
5.15. RX_CTRL Register
5.16. RX_ERR Register
5.17. RX_BFN Register
5.18. LOOPBACK Register
5.19. TX_DELAY Register
5.20. RX_DELAY Register
5.21. TX_EX_DELAY Register
5.22. RX_EX_DELAY Register
5.23. ROUND_TRIP_DELAY Register
5.24. XCVR_BITSLIP Register
5.25. DELAY_CAL_STD_CTRL1 Register
5.26. DELAY_CAL_STD_CTRL2 Register
5.27. DELAY_CAL_STD_CTRL3 Register
5.28. DELAY_CAL_STD_CTRL4 Register
5.29. DELAY_CAL_STD_CTRL5 Register
5.30. DELAY_CAL_STD_STATUS Register
5.31. DELAY_CAL_RTD Register
5.32. XCVR_TX_FIFO_DELAY Register
5.33. XCVR_RX_FIFO_DELAY Register
5.34. IP_INFO Register
5.35. DEBUG_STATUS Register
2.8. Running the Testbench
To run the CPRI Intel® FPGA IP demonstration testbench, follow these steps.
- In the Quartus® Prime software IP Catalog, select the CPRI Intel® FPGA IP and click Add.
- When prompted, you can specify any output file type (HDL). This setting is relevant only for synthesis and does not impact simulation of the demonstration testbench.
- In the CPRI parameter editor, set the following parameter values:
Table 17. CPRI Intel® FPGA IP Core Variation for Demonstration TestbenchThe testbench scripts require that you set these values in the CPRI parameter editor before you click Generate Example Design. The scripts generate the DUT but they require that you provide the parameter values. Parameter Value Line bit rate (Mbit/s) Any value the device family supports. Synchronization mode Master Operation mode Any available mode Transmitter local clock division factor 1 Number of receiver CDR reference clock(s) 1 Receiver CDR reference clock frequency (MHz) 253.44 if the Line bit rate is 8.11008 or 10.1376 or 12.16512 Gbps and the IP targets the Intel® Stratix® 10 device family
368.64 if the Line bit rate is 24.33024 Gbps and the IP targets the Intel® Stratix® 10 device family
253.44 if the Line bit rate is 8.11008 or 10.1376 Gbps and the IP targets the Intel® Arria® 10 device family
253.44 if the Line bit rate is 8.11008 or 10.1376 Gbps and the IP targets a 28-nm device family
253.44 if the Line bit rate is 8.11008 Gbps and the IP targets Arria® V GZ device family
307.2 for all other cases
Core clock source input Internal or External Recovered clock source PMA if the Line bit rate is 10.1376 Gbps and IP core targets the Stratix V device family; PCS otherwise Receiver soft buffer depth (value shown is log2 of actual depth) 6 Enable line bit rate auto-negotiation Turn off Enable line bit rate auto-negotiation down to 614.4 Mbps Not available Management (CSR) interface standard Avalon® -MM Avalon-MM interface addressing type Word Auxiliary and direct interfaces write latency cycle(s) 0 Enable auxiliary interface Turn on or Turn off Enable resyncronization of CPRI radio frame number to desired value Turn on or Turn off Enable all control word access via management interface Turn off Enable direct Z.130.0 alarm bits access interface Turn off Enable direct ctrl_axc access interface Turn on or Turn off Enable direct vendor specific access interface Turn on or Turn off Enable direct real-time vendor specific interface Turn on or Turn off Enable start-up sequence state machine Turn off Enable protocol version and C&M channel setting auto-negotiation Not available Enable direct IQ mapping interface Turn on or Turn off Enable HDLC serial interface Turn on or Turn off Ethernet PCS interface NONE, MII or GMII L2 Ethernet PCS Tx/Rx FIFO depth (value shown is log2 of actual depth) 8 Enable L1 debug interfaces Turn off Enable Native PHY Debug Master Endpoint (NPDME), transceiver capability, control and status registers access Turn off Enable transceiver PMA serial forward loopback path Turn off Enable parallel forward loopback paths Turn off Enable parallel reversed loopback paths Turn off Enable single-trip delay calibration Not available Enable round-trip delay calibration Turn off Round-trip delay calibration FIFO depth Not available Language for top-level simulation file - Verilog
- VHDL
- In the CPRI parameter editor, click the Generate Example Design button and specify the desired location of the testbench.
- Change directory to <your_ip>/setup_scripts/<simulator_vendor> .
- For Intel Agilex F-tile devices, perform these additional steps:
- Navigate to the <your_ip>/ip_components directory and perform these two commands:
quartus_ipgenerate --run_default_mode_op tb_top -c tb_top
Alternately, you may open the tb_top.qpf project in Intel® Quartus® Prime and perform the compilation until support logic generation stage.quartus_tlg tb_top
- Navigate to the <your_ip>/simulation/setup_scripts directory.
- Perform the following command:
ip-setup-simulation -quartus-project=../ip_components/tb_top.qpf --use-quartus-top-names
- Navigate to the <your_ip>/ip_components directory and perform these two commands:
- If you are using a simulator that requires that you open a user interface, open your target simulator.
Note: You must select a simulator that is supported by the Intel® Quartus® Prime software version you are using.
- Execute the simulation script available for your simulation in the directory.
- In the Mentor Graphics ModelSim simulator, type do msim_commands.do
- You can modify testbench parameters from a file params_list.sv, located at <your_ip>/testbench location.