Cpri Ip Core: FPGA-IPUG-02029 Version 2.8
Cpri Ip Core: FPGA-IPUG-02029 Version 2.8
User Guide
July 2017
CPRI IP Core
User Guide
Contents
1. Introduction .................................................................................................................................................................. 4
1.1. Quick Facts .......................................................................................................................................................... 5
1.2. Features ............................................................................................................................................................... 6
2. Functional Description .................................................................................................................................................. 8
2.1. Block Diagram...................................................................................................................................................... 8
2.2. General Description............................................................................................................................................. 9
2.3. Functional Overview.......................................................................................................................................... 12
2.4. Signal Descriptions ............................................................................................................................................ 13
2.5. Timing Specifications ......................................................................................................................................... 16
2.6. CPRI Overview ................................................................................................................................................... 16
2.7. Interfaces........................................................................................................................................................... 19
2.7.1. User Plane IQ Data Interface ........................................................................................................................19
2.7.2. Ethernet Interface ........................................................................................................................................21
2.7.3. HDLC Interface ..............................................................................................................................................23
2.7.4. L1 Inband Protocol Interface ........................................................................................................................24
2.7.5. Vendor Specific Information .........................................................................................................................24
2.7.6. Start-up Sequence ........................................................................................................................................25
3. Parameter Settings ..................................................................................................................................................... 26
3.1. CPRI Configuration Dialog Box .......................................................................................................................... 26
3.1.1. Generation Options ......................................................................................................................................28
3.1.2. Eval Configuration ........................................................................................................................................28
3.2. Programmable Parameters ............................................................................................................................... 28
4. IP Core Generation ..................................................................................................................................................... 29
4.1. Licensing the IP Core ......................................................................................................................................... 29
4.2. Getting Started .................................................................................................................................................. 29
4.3. IPexpress-Created Files and Top Level Directory Structure .............................................................................. 32
4.4. Instantiating the Core........................................................................................................................................ 35
4.5. Running Functional Simulation ......................................................................................................................... 36
4.5.1. Using Aldec Active-HDL ................................................................................................................................36
4.5.2. Using Mentor Graphics ModelSim ...............................................................................................................36
4.6. Synthesizing and Implementing the Core in a Top-Level Design ...................................................................... 37
4.7. Hardware Evaluation ......................................................................................................................................... 37
4.7.1. Enabling Hardware Evaluation in Diamond ..................................................................................................37
4.8. Updating/Regenerating the IP Core .................................................................................................................. 38
4.8.1. Regenerating an IP Core in IPexpress Tool ...................................................................................................38
4.8.2. Regenerating an IP Core in Clarity Designer Tool .........................................................................................38
5. Application Support .................................................................................................................................................... 40
5.1. CPRI IP Top-Level Reference Design .................................................................................................................. 40
5.1.1. Test Bench ....................................................................................................................................................40
5.1.2. Register Descriptions ....................................................................................................................................41
References .......................................................................................................................................................................... 46
Technical Support Assistance ............................................................................................................................................. 46
Appendix A. Resource Utilization ....................................................................................................................................... 47
LatticeECP3-FPGAs ........................................................................................................................................................ 47
ECP5 FPGAs (for 3G Version) .......................................................................................................................................... 47
ECP5 FPGAs (for 5G Version) .......................................................................................................................................... 47
Revision History .................................................................................................................................................................. 48
© 2006-2017 Lattice Semiconductor Corp. All Lattice trademarks, registered trademarks, patents, and disclaimers are as listed at www.latticesemi.com/legal. All other brand or product names are
trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice.
2 FPGA-IPUG-02029-2.8
CPRI IP Core
User Guide
Figures
Figure 2.1. CPRI IP Logic Core Block Diagram ....................................................................................................................... 8
Figure 2.2. CPRI IP Core System Block Diagram in LatticeECP3 ............................................................................................ 9
Figure 2.3. CPRI IP Core System Block Diagram in ECP5 LFE5UM ....................................................................................... 10
Figure 2.4. Top-Level Template Included with CPRI IP Core ............................................................................................... 11
Figure 2.5. CPRI Protocol Overview .................................................................................................................................... 17
Figure 2.6. CPRI Frame (Shown for 614.4 Mbps, 1228.8 Mbps, 2457.6 Mbps, and 3072 Mbps Line Rates) ...................... 17
Figure 2.7. CPRI Frame (Shown for 614.4 Mbps, 1228.8 Mbps, 2457.6 Mbps, and 3072 Mbps Line Rates) ...................... 18
Figure 2.8. Tx User IQ Interface Sync Pulse Alignment ....................................................................................................... 19
Figure 2.9. Rx IQ Interface Data and Frame Number Alignment ........................................................................................ 20
Figure 2.10. Ethernet C&M Interface ................................................................................................................................. 21
Figure 2.11. Matched Rate MII CPRI Ethernet Interface .................................................................................................... 22
Figure 2.12. 100 Mbps Fixed Rate MII CPRI Ethernet Interface ......................................................................................... 23
Figure 2.13. HDLC C&M Interface ....................................................................................................................................... 23
Figure 2.14. Timing for Vendor-Specific Information Interface .......................................................................................... 25
Figure 3.1. CPRI Configuration Dialog Box .......................................................................................................................... 26
Figure 3.2. CPRI PCS Configuration Dialog Box ................................................................................................................... 26
Figure 3.3. CPRI PCS Advanced Configuration Dialog Box .................................................................................................. 27
Figure 4.1. IPexpress Dialog Box ......................................................................................................................................... 29
Figure 4.2. Clarity Designer Dialog Box ............................................................................................................................... 30
Figure 4.3. Configuration GUI ............................................................................................................................................. 30
Figure 4.4. PCS User Interface ............................................................................................................................................ 31
Figure 4.5. LatticeECP3 CPRI IP Core Directory Structure ................................................................................................... 32
Figure 4.6. LFE5UM CPRIIP Core Directory Structure ......................................................................................................... 32
Figure 4.7. Clarity Designer Builder Window ...................................................................................................................... 38
Figure 4.8. Clarity Designer Catalog Window ..................................................................................................................... 39
Figure 5.1. Pattern Generators and Checkers Included with Delivered IP Core Testbench (One Direction Shown) .......... 41
Tables
Table 1.1. CPRI IP Core Quick Facts (3G Version) ................................................................................................................. 5
Table 1.2. CPRI IP Core Quick Facts (5G Version) ................................................................................................................. 5
Table 2.1. CPRI I/O Signal Descriptions ............................................................................................................................... 13
Table 2.2. CPRI Line Rates ................................................................................................................................................... 18
Table 2.3. HDLC Frequencies Supported ............................................................................................................................ 24
Table 3.1. IP Core Parameters ............................................................................................................................................ 26
Table 3.2. CPRI Parameters Controlled via Input Signals to the IP Core ............................................................................. 28
Table 4.1. File List ............................................................................................................................................................... 33
Table 5.1. Supported Devices for Reference Design ........................................................................................................... 40
Table 5.2. CPRI Testbench Register Map ............................................................................................................................ 41
Table A.1. Resource Utilization ........................................................................................................................................... 47
Table A.2. Resource Utilization ........................................................................................................................................... 47
Table A.3. Resource Utilization ........................................................................................................................................... 47
© 2006-2017 Lattice Semiconductor Corp. All Lattice trademarks, registered trademarks, patents, and disclaimers are as listed at www.latticesemi.com/legal. All other brand or product names are
trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice.
FPGA-IPUG-02029-2.8 3
CPRI IP Core
User Guide
1. Introduction
This document provides technical information about the Lattice Semiconductor Common Public Radio Interface (CPRI)
IP core. This IP core together with SERDES and Physical Coding Sublayer (PCS) functionality integrated in the
LatticeECP3™ and ECP5™ LFE5UM FPGAs implements the physical layer of the CPRI specification and interleaves IQ
data with synchronization, control and management information. It can be used to connect Radio Equipment Control
(REC) and Radio Equipment (RE) modules.
The CPRI IP core implements all of the capabilities required to support the physical layer of the CPRI specification (basic
function), and also implements specific requirements related to link delay accuracy (low latency character). One CPRI
core configuration for 5G version (4.9152 Gbps) is also supported. This core configuration for 5G version is similar to
the "low latency" one for 3G version except the data rate. This document focuses on the detailed specifications
associated with implementing and using the basic function. The LatticeECP3 and ECP5 LFE5UM FPGAs optimize
PCS/SERDES architecture for low latency control. Complete details on the implementation and use of the low latency
configuration are included in CPRI IP Core Low Latency Variation Design Considerations User’s Guide (IPUG74).
The CPRI soft-core comes with the following documentation and files:
Data sheet
Protected netlist/database
Behavioral RTL simulation model
Source files for instantiating and evaluating the core
The CPRI IP core supports Lattice’s IP hardware evaluation capability, which makes it possible to create versions of the
IP core that operate in hardware for a limited period of time (approximately four hours) without requiring the purchase
of an IP license. It may also be used to evaluate the core in hardware in user-defined designs. The Hardware Evaluation
section of this document details the hardware evaluation capability.
In this document, transmit refers to data flow from the user application logic to the CPRI link. Receive refers to data
flow from the CPRI link to the user application logic. Downlink refers to the direction of data flow from REC to RE, and
uplink refers to the direction of data flow from RE to REC.
The Lattice CPRI core is compliant with the version 5.0 CPRI specification. However, the core does not directly support
requirement R-31 (line-rate autonegotiation). For the 3G version, Lattice supports dynamic switching between full and
half rate line settings (i.e., 614M/1.2G or 1.2/2.4G). However, switching dynamically between all line rates is not
supported since some PCS/SERDES bit settings need to be re-programmed through the SCI to support reliable data
transfer. It is anticipated that in most network applications, line rate negotiation will be established/managed at the
system level and there is nothing in the IP core that precludes supporting such capability.
© 2006-2017 Lattice Semiconductor Corp. All Lattice trademarks, registered trademarks, patents, and disclaimers are as listed at www.latticesemi.com/legal. All other brand or product names are
trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice.
4 FPGA-IPUG-02029-2.8
CPRI IP Core
User Guide
Table 1.2 provides quick facts about the CPRI IP core 5G version.
Table 1.2. CPRI IP Core Quick Facts (5G Version)
CPRI IP Core (5G Version)
LUTs 1100-1600
Registers 1000-1300
© 2006-2017 Lattice Semiconductor Corp. All Lattice trademarks, registered trademarks, patents, and disclaimers are as listed at www.latticesemi.com/legal. All other brand or product names are
trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice.
FPGA-IPUG-02029-2.8 5
CPRI IP Core
User Guide
1.2. Features
The following features apply to the basic CPRI core configuration for 3G version:
Supports the physical link layer (Layer 1) of the CPRI specification
Supports four standard bit rates of the CPRI specification
614.4 Mbps
1228.8 Mbps
2457.6 Mbps
3072 Mbps
Supports 8b/10b encoding/decoding performed in the PCS/SERDES
Supports code-violation detection performed in the PCS/SERDES
Performs CPRI Hyperframe Framing
Performs interleaving of IQ data, sync, C&M data, and vendor specific information
Provides an 8-, 16-, 32- or 40-bit parallel interface for IQ data
Performs subchannel mapping:
Supports a slow C&M channel based on a serial HDLC interface at standard bit rates (240 Kbps, 480 Kbps, 960
Kbps, and 1920 Kbps). The HDLC framer, if needed, must be implemented in the user logic.
Supports a fast C&M channel based on a serial Ethernet interface (84.48 Mbps max.) to the user logic, a non-
standard rate MII Ethernet interface to a MAC, or a 100 Mbps MII interface to a PHY device. Accepts a user-
selected pointer to the CPRI subchannel where the Ethernet link starts. The Ethernet MAC function is provided
as a separate IP core.
Performs synchronization and timing as defined in section 4.2.8 of CPRI Specification v5.0
Supports the L1 Inband Protocol
Provides a parallel interface for merging vendor specific data into the CPRI frame
Provides a start-up sequence state machine in hardware for both REC and RE nodes which performs:
Synchronization and Rate Negotiation
C&M Plane setup
Performs Link Maintenance as defined in section 4.2.10 of CPRI Specification v5.0:
LOS detection
LOF detection
RAI indication
Optional top-level template that implements user registers for control and status management
Optional 8-bit register interface through SCI bus
The low latency CPRI core configuration for 3G version supports all of the features specified for the basic core
configuration with the following key exceptions/modifications:
Supported for LatticeECP3 and ECP5 FPGA families only
Supports 1228.8 Mbps, 2457.6 Mbps, and 3072 Mbps line bit rates only.
FPGA bridge FIFOs in the SERDES/PCS (DCU in ECP5) block are bypassed in both the receive and transmit directions
Logic blocks supporting receive direction 10b word alignment, 10b/8b decoding and core-violation detection in the
SERDES/PCS (DCU in ECP5) block are bypassed and the corresponding functions are implemented in FPGA gates.
The low latency CPRI core configuration for 5G version is similar to the low latency core configuration for 3G version
with the following key exceptions/modifications:
Supported for ECP5 FPGA family only.
Supports 4915.2 Mbps only.
Provides 64-bit parallel interface for IQ data only.
Supports a slow C&M channel based on a serial HDLC interface at standard bit rates (240 Kbps, 480 Kbps, 960 Kbps,
1920 Kbps, 2400Kbps, and 3840Kbps).
No 8-bit register interface through the JTAG port
The low latency CPRI core implementation is different between LatticeECP3 and ECP5 for 3G version:
FPGA bridge FIFOs in the SERDES/PCS block are bypassed in both the receive and transmit directions for
LatticeECP3 FPGA, but enabled with synchronous WR/RD clocks for ECP5 LFE5UM FPGA
© 2006-2017 Lattice Semiconductor Corp. All Lattice trademarks, registered trademarks, patents, and disclaimers are as listed at www.latticesemi.com/legal. All other brand or product names are
trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice.
6 FPGA-IPUG-02029-2.8
CPRI IP Core
User Guide
The latency variability from 10-bit word alignment is the key for low latency control. For LatticeECP3, CPRI
implements a PLL to eliminate the latency variation associated with the SERDES de-serializer 10-bit word alignment
function by reading word align offset status registers. (The value can be read at channel register 0x22 with the
base address.) For the LFE5UM device, the SERDES includes a new function that allows the de-serializer to slip the
location of the bits in the parallel output by one bit at a time. This is done one bit at a time under control of a
signal from the PCS and can be done multiple times as needed in order to align the data word as needed. This can
be used by the word aligner in the PCS to ensure that the parallel word is aligned on a comma character boundary
and is important to do in applications for CPRI that require that the latency variation through the SERDES block be
as small as possible.
© 2006-2017 Lattice Semiconductor Corp. All Lattice trademarks, registered trademarks, patents, and disclaimers are as listed at www.latticesemi.com/legal. All other brand or product names are
trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice.
FPGA-IPUG-02029-2.8 7
CPRI IP Core
User Guide
2. Functional Description
This section provides a functional description of the CPRI IP core.
cpri_core tx_clk
rx_clk
sys_reset
test_md,rec_md
CPRITX hdlc_(192 0,960,480,240)_en
tx_hyp_rst_en, tx_bfn_rst_en
Etherne t Transmit
C&M Etherne t tx_eth_pointer[5:0] Us er I/O
Transmit Data lbr[1:0], pcs_serd es_rate[1:0], force_sm_standby
Information tx_fifo
rate_mode[1:0], chg_serd es_cfg
tx_hdlc_mode[2:0]
tx_dis, cpri_stup_state[2:0]
Transmit
IQ D ata ver_num_err
tx_cpri_da[15:0]
rx_lof
Transmit
tx_cpri_ctl[1:0] rectx_fe rectx L1 Inband rx_los CP RI Link Status
Protocol
tx_iq_data[31:0]
Transmit tx_sync
HDLC Data
rx_hyp_num[7:0]
rx_bfn_num[11:0]
Us er P lane
rx_frm_addr[7:0] IQ D ata
rx_iq_s1t_addr[3:0]
rx_iq_da_wr
rx_iq_da[31:0]
tx_l1_rst_rqstack
tx_l1_rai, tx_l1_sdi
CPRIRX
rx_l1_ver_num[7:0]
rx_l1_hdlc_mode[2:0]
Re ceive L1 Inband
rx_cpri_da[15:0] IQ D ata rx_l1_rst_rqstack Protocol
rx_cpri_ctl[1:0] rx_l1_rai, rx_l1_sdi
Re ceive
rx_cpri_cv[1:0] recrx_fe recrx L1 Inband rx_l1_los, rx_l1_lof
Protocol rx_l1_eth_pointer[5:0]
rfe_clk
Re ceive tx_vendor_da[31:0]
HDLC Data
tx_vendor_da_req
Vendor
rx_vendor_da_val Specific
Etherne t
rx_vendor_da[31:0] Data
C&M
Re ceive rx_fifo
tx_eth_clk, rx_eth_clk
Information Re ceive
Etherne t tx_eth_da[3:0], tx_eth_en, tx_eth_er
Data rx_eth_da[3:0], rx_eth_en, rx_eth_er
C&M
tx_eth_full, tx_eth_empty Etherne t
Interface
rx_eth_full, rx_eth_empty
tx_hdlc_da
tx_hdlc_clk,rx_hdlc_clk C&M
HDLC
rx_hdlc_wr, rx_hd lc_da Interface
© 2006-2017 Lattice Semiconductor Corp. All Lattice trademarks, registered trademarks, patents, and disclaimers are as listed at www.latticesemi.com/legal. All other brand or product names are
trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice.
8 FPGA-IPUG-02029-2.8
CPRI IP Core
User Guide
LatticeECP3
PCS QUAD FPGA Fabric
QUAD0
CPRI
(soft IP core)
CPRI CH0
TX CPRI TX IQ
P, N Data&Ctrl CPRI C&M
TX TXFE User Logic
TX Others
(CPRI
P Transport
CPRI CPRI SERDES C Layer
RX S Function)
P, N CPRI RX IQ
RX Data&Ctrl
CPRI C&M
RXFE
RX
RE or REC Others
Module
CH1
CH2
CH3
© 2006-2017 Lattice Semiconductor Corp. All Lattice trademarks, registered trademarks, patents, and disclaimers are as listed at www.latticesemi.com/legal. All other brand or product names are
trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice.
FPGA-IPUG-02029-2.8 9
CPRI IP Core
User Guide
DCU0
CPRI
CPRI PHY
CORE
CPRI CH0
TX CPRI TX IQ
P, N Data&Ctrl CPRI C&M
TX TXFE User Logic
TX Others
(CPRI
P Transport
CPRI CPRI SERDES C Layer
RX S Function)
P, N CPRI RX IQ
RX Data&Ctrl
CPRI C&M
RXFE
RX
RE or REC Others
Module
CH1
Included in the CPRI IP core evaluation package is a reference module that provides an example of how the IP core is
instantiated at the top level, as shown in Figure 2.4. This top-level template is provided in RTL format and provides a
good starting point from which the user can begin to add custom logic to a design. Figure 2.4 includes example
connections for using the IP core in REC and RE modes.
© 2006-2017 Lattice Semiconductor Corp. All Lattice trademarks, registered trademarks, patents, and disclaimers are as listed at www.latticesemi.com/legal. All other brand or product names are
trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice.
10 FPGA-IPUG-02029-2.8
CPRI IP Core
User Guide
The CPRI IP logic core is provided in NGO format. For LatticeECP3 CPRI IP core, the RXFE and TXFE blocks are RTL
templates. For LFE5UM, PCS/SERDES, the rxfe and txfe blocks are packaged as CPRI PHY. Also included in the reference
top file is a user side driver/monitor module and register implementation module for optional use. These modules are
used in the evaluation simulation capability. The driver/monitor module is used to provide data in the transmit
direction and verify data in the receive direction. The register implementation module is used to control the IP core.
The overall top-level design can be used without modification in the debugging phase on physical hardware needing
only a CPRI source/sink capability to verify IP core operation.
© 2006-2017 Lattice Semiconductor Corp. All Lattice trademarks, registered trademarks, patents, and disclaimers are as listed at www.latticesemi.com/legal. All other brand or product names are
trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice.
FPGA-IPUG-02029-2.8 11
CPRI IP Core
User Guide
© 2006-2017 Lattice Semiconductor Corp. All Lattice trademarks, registered trademarks, patents, and disclaimers are as listed at www.latticesemi.com/legal. All other brand or product names are
trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice.
12 FPGA-IPUG-02029-2.8
CPRI IP Core
User Guide
User Interface
auto_cnt I 1 For master CPRI TX only, update Z64, Z128, Z192 with hyp_cnt_init
and bfn_cnt_init when low. When it is high, control words are
updated by internal counter.
hyn_cnt_init I 8 For master CPRI TX only, used for two purposes: Auto_cnt = 0:
update Z64
Auto_cnt = 1: update internal hfn counter when tx_sync = 1 and
tx_hyp_rst_en = 1
bfn_cnt_init I 12 For master CPRI TX only, used for two purposes: Auto_cnt = 0:
update Z128, Z192
Auto_cnt = 1: update internal bfn counter when tx_sync = 1 and
tx_bfn_rst_en = 1
tx_hyp_rst_en I 1 Transmit side hype frame counter reset enable during tx_sync
active
tx_bfn_rst_en I 1 Transmit side bfn counter reset enable during tx_sync active
lbr_en I 2 (3 for 5G) Maximum CPRI Line bit rate enabled by user
© 2006-2017 Lattice Semiconductor Corp. All Lattice trademarks, registered trademarks, patents, and disclaimers are as listed at www.latticesemi.com/legal. All other brand or product names are
trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice.
FPGA-IPUG-02029-2.8 13
CPRI IP Core
User Guide
rate_mode O 2 (3 for 5G) Final negotiated CPRI Line bit rate after start-up sequence
completes
© 2006-2017 Lattice Semiconductor Corp. All Lattice trademarks, registered trademarks, patents, and disclaimers are as listed at www.latticesemi.com/legal. All other brand or product names are
trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice.
14 FPGA-IPUG-02029-2.8
CPRI IP Core
User Guide
(5 for 3G and 8
for 5G, applies to
tx_cpri_ctl,
rx_cpri_ctl and
rx_cpri_cv)
© 2006-2017 Lattice Semiconductor Corp. All Lattice trademarks, registered trademarks, patents, and disclaimers are as listed at www.latticesemi.com/legal. All other brand or product names are
trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice.
FPGA-IPUG-02029-2.8 15
CPRI IP Core
User Guide
tx_eth_almost_full O 1 Transmit Ethernet FIFO almost full. This is for user flow control.
rx_eth_fifo_err O 2 Receive Ethernet FIFO error flag (only for Fixed mode)
© 2006-2017 Lattice Semiconductor Corp. All Lattice trademarks, registered trademarks, patents, and disclaimers are as listed at www.latticesemi.com/legal. All other brand or product names are
trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice.
16 FPGA-IPUG-02029-2.8
CPRI IP Core
User Guide
Figure 2.6. CPRI Frame (Shown for 614.4 Mbps, 1228.8 Mbps, 2457.6 Mbps, and 3072 Mbps Line Rates)
© 2006-2017 Lattice Semiconductor Corp. All Lattice trademarks, registered trademarks, patents, and disclaimers are as listed at www.latticesemi.com/legal. All other brand or product names are
trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice.
FPGA-IPUG-02029-2.8 17
CPRI IP Core
User Guide
Xs=0 1 2
Ns=0 0 64 Comma Byte, Synchronization and Timing
1 1 65 Slow C&M Link
2 2 66 p L1 Inband Protocol
3 3 67 Reserved
4 4 Reserved
5 Reserved
6 Reserved
7 Reserved
8 Reserved
9 Reserved
10 Reserved
11 Reserved
12 Reserved
13 Reserved
14 14 Reserved
15 15 79 143 207 Reserved
16 16 80 144 208 Ve ndor-specific
17 17 Ve ndor-specific
18 Ve ndor-specific
.
.
.
Ve ndor-specific
Pointer p -> Fa st C&M Link
.
.
.
61 61
62 62 126 190 254
63 63 127 191 255
Figure 2.7. CPRI Frame (Shown for 614.4 Mbps, 1228.8 Mbps, 2457.6 Mbps, and 3072 Mbps Line Rates)
Four possible line rates for the CPRI frame are supported, as shown in Table 2.2. The maximum line bit rate that the
core must support is selected by setting the lbr_en input signals. Once the maximum line bit rate has been selected, all
lower line bit rates are automatically enabled. The bit rate between the REC and RE is then negotiated between the
transmitting and receiving ends by the start-up sequence state machine within the CPRI IP core.
Table 2.2. CPRI Line Rates
CPRI Line Bit Rate Rate (Mbps) lbr_en[1:0] (lbr_en[2:0] for 5G)
Option 1 614.4 00
Option 2 1228.8 01
© 2006-2017 Lattice Semiconductor Corp. All Lattice trademarks, registered trademarks, patents, and disclaimers are as listed at www.latticesemi.com/legal. All other brand or product names are
trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice.
18 FPGA-IPUG-02029-2.8
CPRI IP Core
User Guide
2.7. Interfaces
The following sections discuss the interfaces of the IQ data, HDLC, Ethernet, and vendor information interfaces of the
CPRI IP core.
Clk
Sync (tx_sync)
Word15
Unused
Word1
© 2006-2017 Lattice Semiconductor Corp. All Lattice trademarks, registered trademarks, patents, and disclaimers are as listed at www.latticesemi.com/legal. All other brand or product names are
trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice.
FPGA-IPUG-02029-2.8 19
CPRI IP Core
User Guide
In the receive direction, the CPRI IP Core provides IQ data to the user interface along with a word number (W), frame
number (X), hyperframe number (Z), and a BFN number, as shown in Figure 2.9.
Clk
Word15
Unused
Word1
Word2
Data (rx_iq_da)
W (rxwrdnum) 15 0 1 2
X (rx_frm_addr) 63 64
© 2006-2017 Lattice Semiconductor Corp. All Lattice trademarks, registered trademarks, patents, and disclaimers are as listed at www.latticesemi.com/legal. All other brand or product names are
trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice.
20 FPGA-IPUG-02029-2.8
CPRI IP Core
User Guide
© 2006-2017 Lattice Semiconductor Corp. All Lattice trademarks, registered trademarks, patents, and disclaimers are as listed at www.latticesemi.com/legal. All other brand or product names are
trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice.
FPGA-IPUG-02029-2.8 21
CPRI IP Core
User Guide
The core provides the 4B/5B code conversion required by the CPRI specification. The logic that interfaces the MII to
CPRI byte mux/demux is shown in Figure 2.11.
TX 4b/5b TXD[3:0 ]
5-Bit to FIFO 1 nib
CPRI 85 8-Bit Encoder 18 TX_EN
to
BYTE Width (Invoked 3 (512x18 3 nib TX_ER
MUX Translator times per 3 Nibbles
FIFO Read) per Word) TX_CLK
Client Side
Ethernet Interface
MAC
MII Core
(Lattice IP
or user-
specified)
Notes:
1. TX_CLK and RX_CLK are gapped clocks with transition rates matching the effective data rate of the
Fast C&M Channel specified by the pointer value in control byte #Z.194.0 and the CPRI line rate.
2. Both FIFOs are read and written as needed to source and sink data/control from/to the MII and CPRI
mux/demux.
© 2006-2017 Lattice Semiconductor Corp. All Lattice trademarks, registered trademarks, patents, and disclaimers are as listed at www.latticesemi.com/legal. All other brand or product names are
trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice.
22 FPGA-IPUG-02029-2.8
CPRI IP Core
User Guide
MII
Notes:
1. TX_CLK and RX_CLK are supplied by the external PHY device and assumed to be 25MHz.
2. The transmit FIFO is read as needed to supply data/control to the CPRI mux.
3. The transmit FIFO is written as needed to sink packets from the MII and supply idle.
4. The receive FIFO is read and written as needed to source and sink packets from/to the MII and CPRI
demux. Idle is supplied separately.
Figure 2.12. 100 Mbps Fixed Rate MII CPRI Ethernet Interface
© 2006-2017 Lattice Semiconductor Corp. All Lattice trademarks, registered trademarks, patents, and disclaimers are as listed at www.latticesemi.com/legal. All other brand or product names are
trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice.
FPGA-IPUG-02029-2.8 23
CPRI IP Core
User Guide
1 hdlc_240_en = 1 240
2 hdlc_480_en = 1 480
3 hdlc_960_en = 1 960
4 hdlc_1920_en = 1 1920
5 hdlc_2400_en = 1 2400
© 2006-2017 Lattice Semiconductor Corp. All Lattice trademarks, registered trademarks, patents, and disclaimers are as listed at www.latticesemi.com/legal. All other brand or product names are
trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice.
24 FPGA-IPUG-02029-2.8
CPRI IP Core
User Guide
Clk
Vendor-specific data
request from IP core
(tx_vendor_data_req)
User data
Data from user logic
(tx_vendor_data)
© 2006-2017 Lattice Semiconductor Corp. All Lattice trademarks, registered trademarks, patents, and disclaimers are as listed at www.latticesemi.com/legal. All other brand or product names are
trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice.
FPGA-IPUG-02029-2.8 25
CPRI IP Core
User Guide
3. Parameter Settings
The IPexpress ™ and the Clarity Designer tools are used to create IP and architectural modules in the Diamond
software. IPexpress is for LatticeECP3 CPRI IP Core and Clarity Designer is for LFE5UM CPRI IP Core. Refer to the IP Core
Generation section for a description on how to generate the IP.
Table 3.1 provides the list of user configurable parameters for the CPRI IP core for 3G version. The parameter settings
are specified using the CPRI IP core Configuration GUI in IPexpress.
Table 3.1. IP Core Parameters
Parameter Range/Options Default
General Options
Design Entry Design Entry Design Entry
Ethernet Mode Ethernet Mode Ethernet Mode
Eval Configuration
Synthesis Tool Synthesis Tool Synthesis Tool
Figure 3.2 shows the CPRI PCS Configuration dialog box, it is for LFE5UM CPRI IP Core only. The page ‘PCS’ is for
ECP5UM PCS/SERDES settings. If the PCS in debug mode option is selected, the LFE5UM DCU interface is displayed in
<username>_phy_bb.v for debug. For further PCS configuration, click the Advanced button.
© 2006-2017 Lattice Semiconductor Corp. All Lattice trademarks, registered trademarks, patents, and disclaimers are as listed at www.latticesemi.com/legal. All other brand or product names are
trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice.
26 FPGA-IPUG-02029-2.8
CPRI IP Core
User Guide
Clicking the Advanced button opens the CPRI PCS Advanced Configuration Dialog Box shown in Figure 3.3.
If only one PCS is used in the project, it is recommended to select the Reset Sequence Select option in Control Setup
tab.
If you want to revise the SERDES electric character, change the parameters on the SerDes Setup tab. Refer to ECP5
SERDES/PCS Usage Guide (TN1261).
© 2006-2017 Lattice Semiconductor Corp. All Lattice trademarks, registered trademarks, patents, and disclaimers are as listed at www.latticesemi.com/legal. All other brand or product names are
trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice.
FPGA-IPUG-02029-2.8 27
CPRI IP Core
User Guide
© 2006-2017 Lattice Semiconductor Corp. All Lattice trademarks, registered trademarks, patents, and disclaimers are as listed at www.latticesemi.com/legal. All other brand or product names are
trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice.
28 FPGA-IPUG-02029-2.8
CPRI IP Core
User Guide
4. IP Core Generation
This section provides information on how to generate the CPRI IP core using the Diamond or ispLEVER software
IPexpress tool, and how to include the core in a top-level design.
© 2006-2017 Lattice Semiconductor Corp. All Lattice trademarks, registered trademarks, patents, and disclaimers are as listed at www.latticesemi.com/legal. All other brand or product names are
trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice.
FPGA-IPUG-02029-2.8 29
CPRI IP Core
User Guide
Note that if the IPexpress for LatticeECP3 or the Clarity Designer for LFE5UM is called from within an existing project,
Project Path, Module Output, Device Family and Part Name default to the specified project parameters. Refer to the
IPexpress tool online help for further information.
© 2006-2017 Lattice Semiconductor Corp. All Lattice trademarks, registered trademarks, patents, and disclaimers are as listed at www.latticesemi.com/legal. All other brand or product names are
trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice.
30 FPGA-IPUG-02029-2.8
CPRI IP Core
User Guide
For LFE5UM CPRI IP core, the core should be generated using Diamond Clarity Designer.
To generate the LFE5UM CPRI IP Core in System Planner:
1. Create a new project with an LFE5UM device.
2. Open Clarity Designer and double-click CPRI IP core to open the CPRI IP GUI.
3. Configure the parameters. Note that there is one more package PCS.
4. Locate the DCU Channel into FPGA in the Clarity Designer Planner.
5. Click the Generate button.
The PCS page is shown in Figure 4.4.
© 2006-2017 Lattice Semiconductor Corp. All Lattice trademarks, registered trademarks, patents, and disclaimers are as listed at www.latticesemi.com/legal. All other brand or product names are
trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice.
FPGA-IPUG-02029-2.8 31
CPRI IP Core
User Guide
The directory structure of LFE5UM CPRI IP core, as shown in Figure 4.6, is different from LatticeECP3.
© 2006-2017 Lattice Semiconductor Corp. All Lattice trademarks, registered trademarks, patents, and disclaimers are as listed at www.latticesemi.com/legal. All other brand or product names are
trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice.
32 FPGA-IPUG-02029-2.8
CPRI IP Core
User Guide
Table 4.1 provides a list of key files created by the IPexpress tool and how they are used. The IPexpress tool creates
several files that are used throughout the design cycle. The names of most of the created files are customized to the
user’s module name specified in the IPexpress tool.
Table 4.1. File List
File Simulation Synthesis Description
IP Configuration Files
<username>.v/<username>.vhd Yes This file provides CPRI core wrapper file for
RTL simulation.
(.v file if Verilog is selected or .vhd file if
VHDL is selected).
cpri_lowlatency_eval\testbench\* Yes All files in the folder are test bench files for
evaluation simulation.
© 2006-2017 Lattice Semiconductor Corp. All Lattice trademarks, registered trademarks, patents, and disclaimers are as listed at www.latticesemi.com/legal. All other brand or product names are
trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice.
FPGA-IPUG-02029-2.8 33
CPRI IP Core
User Guide
<username>.v/<username>.vhd Yes Yes This file provides CPRI core top wrapper file
for RTL simulation and implementation. (.v
file if Verilog is selected or .vhd file if VHDL
is selected.) The module <username>
includes CPRI PHY and CPRI core.
<username>_phy.v Yes This file provides CPRI PHY wrapper file for
RTL simulation.
<username>_core.v Yes This file provides CPRI core wrapper file for
RTL simulation.
© 2006-2017 Lattice Semiconductor Corp. All Lattice trademarks, registered trademarks, patents, and disclaimers are as listed at www.latticesemi.com/legal. All other brand or product names are
trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice.
34 FPGA-IPUG-02029-2.8
CPRI IP Core
User Guide
cpri_lowlatency_eval\testbench\* Yes All files in the folder are test bench files for
evaluation simulation.
These are all of the files necessary to implement and verify the CPRI IP core in your own top-level design. The following
additional files providing IP core generation status information are also generated in the “Project Path” directory:
<username>_generate.log – Diamond or ispLEVER synthesis and map log file.
<username>_gen.log – IPexpress IP generation log file.
The and subtending directories provide files supporting the CPRI IP core evaluation. The
directory contains files/folders with content that is constant for all configurations of the
CPRI IP core. The subfolder contains files/folders with content specific to the username configuration.
The directory is created by IPexpress the first time the core is generated and updated each
time the core is regenerated. A directory is created by IPexpress each time the core is generated and
regenerated each time the core with the same file name is regenerated. A separate directory is
generated for cores with different names, e.g. , etc.
© 2006-2017 Lattice Semiconductor Corp. All Lattice trademarks, registered trademarks, patents, and disclaimers are as listed at www.latticesemi.com/legal. All other brand or product names are
trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice.
FPGA-IPUG-02029-2.8 35
CPRI IP Core
User Guide
© 2006-2017 Lattice Semiconductor Corp. All Lattice trademarks, registered trademarks, patents, and disclaimers are as listed at www.latticesemi.com/legal. All other brand or product names are
trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice.
36 FPGA-IPUG-02029-2.8
CPRI IP Core
User Guide
© 2006-2017 Lattice Semiconductor Corp. All Lattice trademarks, registered trademarks, patents, and disclaimers are as listed at www.latticesemi.com/legal. All other brand or product names are
trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice.
FPGA-IPUG-02029-2.8 37
CPRI IP Core
User Guide
© 2006-2017 Lattice Semiconductor Corp. All Lattice trademarks, registered trademarks, patents, and disclaimers are as listed at www.latticesemi.com/legal. All other brand or product names are
trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice.
38 FPGA-IPUG-02029-2.8
CPRI IP Core
User Guide
3. Specify the instance name in Target Instance. Note that this instance name should not be the same as any of the
existing IP instances in the current Clarity Design project.
4. Click Import. The module's dialog box opens showing the option settings.
5. In the dialog box, choose the desired options.
For more information about the options, click Help. You may also click the About tab in the Clarity Designer window
for links to technical notes and user guides. The IP may come with additional information. As the options change,
the schematic diagram of the module changes to show the I/O and the device resources the module will need.
6. Click Configure.
© 2006-2017 Lattice Semiconductor Corp. All Lattice trademarks, registered trademarks, patents, and disclaimers are as listed at www.latticesemi.com/legal. All other brand or product names are
trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice.
FPGA-IPUG-02029-2.8 39
CPRI IP Core
User Guide
5. Application Support
This section provides application support information for the CPRI IP core.
© 2006-2017 Lattice Semiconductor Corp. All Lattice trademarks, registered trademarks, patents, and disclaimers are as listed at www.latticesemi.com/legal. All other brand or product names are
trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice.
40 FPGA-IPUG-02029-2.8
CPRI IP Core
User Guide
Sample User
Application Logic
Included with
Delivery
Fast C&M
Random
Data Gen
Slow C&M
Random
Data Gen
ch 1 - REC
PCS/SERDES
IQ Data
Tx
Numbered
Word Gen
Rx
Vendor-
Specific
Data Num
Pattern
Checkers
Figure 5.1. Pattern Generators and Checkers Included with Delivered IP Core Testbench (One Direction Shown)
CPRI Control 0 0x800 4:0 lbr[1:0] – Line Bit Rate 00 = 614.4 MHz
Control 01 = 1228.8 MHz
For maximum CPRI line 10 = 2457.6 MHz
rate enabled by user 11 = 2457.6 MHz
CPRI Control 1 0x801 1:0 TX_L1_SDI TX_L1_RAI SAP defect indication and remote action
indication
© 2006-2017 Lattice Semiconductor Corp. All Lattice trademarks, registered trademarks, patents, and disclaimers are as listed at www.latticesemi.com/legal. All other brand or product names are
trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice.
FPGA-IPUG-02029-2.8 41
CPRI IP Core
User Guide
CPRI Control 4 0x804 0 TX_L1_RST_RQSTACK Source for down link reset request or up
link reset acknowledge
CPRI Status Reg 0 0x806 1:0 RATE_MODE Final negotiated line bit rate
VERSION Reg 0x808 7:0 RX_L1_VER_NUM Received L1 inband protocol bits of byte
Z.2.0
CPRI Status Reg 2 0x809 5:0 RX_L1_ETH_POINTER Received L1 inband protocol bits of byte
Z.194.0
CPRI Status Reg 3 0x80a 6:4, 2:0 RX_L1_HDLC_MODE[2:0] Received L1 inband protocol bits of byte
TX_HDLC_MODE[2:0] Z.66.0
Final negotiated HDLC bit rate
Test Loop Data Error Reg 0x80d 3:0 Rx_hdlc_pdo_da_err Test bench check loop back data errors
Vendor_pdo_da_err
Rx_iq_da_err
Rx_eth_pdo_da_err
© 2006-2017 Lattice Semiconductor Corp. All Lattice trademarks, registered trademarks, patents, and disclaimers are as listed at www.latticesemi.com/legal. All other brand or product names are
trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice.
42 FPGA-IPUG-02029-2.8
CPRI IP Core
User Guide
TB_TXHDLC 0x80F 7:0 TB_TXHDLC This byte is used to fill HDLC messages
when TB_CNTRL [7] is set to 1.
TB_TXETHR 0x810 7:0 TB_TXETHR This byte is used to fill ETHR messages
when TB_CNTRL [6] is set to 1.
TB_TXVEND 0x811 7:0 TB_TXVEND This byte is used to fill VEND messages
when TB_CNTRL [5] is set to 1.
TB_TXIQ 0x812 7:0 TB_TXIQ This byte is used to fill IQ messages when
TB_CNTRL [4] is set to 1.
TB_RXHDLC 0x813 7:0 TB_RXHDLC This byte is used to check HDLC messages
when TB_CNTRL [3] is set to 1.
TB_RXETHR 0x814 7:0 TB_RXETHR This byte is used to check ETHR messages
when TB_CNTRL [2] is set to 1.
© 2006-2017 Lattice Semiconductor Corp. All Lattice trademarks, registered trademarks, patents, and disclaimers are as listed at www.latticesemi.com/legal. All other brand or product names are
trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice.
FPGA-IPUG-02029-2.8 43
CPRI IP Core
User Guide
TB_RXVEND 0x815 7:0 TB_RXVEND This byte is used to check VEND messages
when TB_CNTRL [1] is set to 1.
TB_HDLC_CNT_HB 0x900 7:0 TB_HDLC_CNT [15:8] HDLC message bit error counter, high
byte. A read of this register latches both
bytes and clears the internal counter. The
internal counter freezes at maximum
count.
TB_HDLC_CNT_LB 0x901 7:0 TB_HDLC_CNT [7:0] HDLC message bit error counter, low
byte.
TB_ETHR_CNT_HB 0x902 7:0 TB_ETHR_CNT [15:8] ETHR message bit error counter, high
byte. A read of this register latches both
bytes and clears the internal counter. The
internal counter freezes at maximum
count.
TB_ETHR_CNT_LB 0x903 7:0 TB_ETHR_CNT [7:0] ETHR message bit error counter, low byte.
TB_VEND_CNT_HB 0x904 7:0 TB_VEND_CNT [15:8] VEND message bit error counter, high
byte. A read of this register latches both
bytes and clears the internal counter. The
internal counter freezes at maximum
TB_VEND_CNT_LB 0x905 7:0 TB_VEND_CNT [7:0] count.message bit error counter, low
VEND
TB_IQ_CNT_HB 0x906 7:0 TB_IQ_CNT [15:8] byte.
IQ message bit error counter, high byte. A
read of this register latches both bytes
and clears the internal counter. The
internal counter freezes at maximum
TB_IQ_CNT_LB 0x907 7:0 TB_IQ_CNT [7:0] count.
IQ message bit error counter, low byte.
TB_ERRINJ 0x817 0 TB_ERRINJ [0] Inject an IQ message bit error each time
this bit is changed from 0 to 1
1 TB_ERRINJ [1] Inject an VEND message bit error each
time this bit is changed from 0 to 1
2 TB_ERRINJ [2] Inject an ETHR message bit error each
time this bit is changed from 0 to 1
3 TB_ERRINJ [3] Inject an HDLC message bit error each
time this bit is changed from 0 to 1.
7:4 UNUSED UNUSED
SUBCH_SAMPLE 0x818 7:0 SUBCH_SAMPLE The CPRI Design will sample bit 0 of
0x00818 and initiate a memory sample of
all the 64 subchannels when that bit is 1.
When the CPRI Design memory sample is
done, the CPRI Design will clear 0x00818.
© 2006-2017 Lattice Semiconductor Corp. All Lattice trademarks, registered trademarks, patents, and disclaimers are as listed at www.latticesemi.com/legal. All other brand or product names are
trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice.
44 FPGA-IPUG-02029-2.8
CPRI IP Core
User Guide
TB_ETH_IDLE_HB 0x81A 5:0 TB_ETH_IDLE_SIZE_HB Testbench Ethernet Idle size High Byte -
This is the upper 6 bits of a constant used
to set the number of nibbles of idle in the
ethernet message generated by the test-
bench.
TB_ETH_IDLE_LB 0x81B 7:0 TB_ETH_IDLE_SIZE_LB Testbench Ethernet Idle size Low Byte -
This is the lower 8 bits of a constant used
to set the number of nibbles of idle in the
ethernet message generated by the test-
bench.
TB_ETH_DATA_HB 0x81C 5:0 TB_ETH_DATA_SIZE_HB Testbench Ethernet Data size High Byte -
This is the upper 6 bits of a constant used
to set the number of nibbles of data in the
ethernet message generated by the test-
bench.
TB_ETH_DATA_LB 0x81D 7:0 TB_ETH_DATA_SIZE_LB Testbench Ethernet Data size Low Byte -
This is the lower 8 bits of a constant used
to set the number of nibbles of data in the
ethernet message generated by the test-
bench.
© 2006-2017 Lattice Semiconductor Corp. All Lattice trademarks, registered trademarks, patents, and disclaimers are as listed at www.latticesemi.com/legal. All other brand or product names are
trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice.
FPGA-IPUG-02029-2.8 45
CPRI IP Core
User Guide
References
Complete details on the CPRI IP core low latency configuration are provided in IPUG74, CPRI IP Core Low Latency
Variation Design Considerations User's Guide.
For additional information, refer to:
DS1021, LatticeECP3 Family Data Sheet
FPGA-DS-02012 (previously DS1044), ECP5 and ECP5-5G Family Data Sheet
JEDEC Standard, Serial Interface for Data Converters, JESD204B.01, July 2012, www.jedec.org
© 2006-2017 Lattice Semiconductor Corp. All Lattice trademarks, registered trademarks, patents, and disclaimers are as listed at www.latticesemi.com/legal. All other brand or product names are
trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice.
46 FPGA-IPUG-02029-2.8
CPRI IP Core
User Guide
LatticeECP3-FPGAs
Table A.1. Resource Utilization*
Mode Slices LUTs Registers sysMEM EBRs
Serial 1139 1359 1522 4
Matched 1342 1714 1632 2
Fixed 1433 1848 1691 6
*Note: Performance and utilization data are generated targeting an LFE3-95E-7FN1156CES device using Lattice Diamond 3.2 and
Synplify Pro for Lattice I-2013.09L-SP1-1 software. Performance may vary when using a different software version or targeting a
different device density or speed grade within the LatticeECP3 family.
© 2006-2017 Lattice Semiconductor Corp. All Lattice trademarks, registered trademarks, patents, and disclaimers are as listed at www.latticesemi.com/legal. All other brand or product names are
trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice.
FPGA-IPUG-02029-2.8 47
CPRI IP Core
User Guide
Revision History
Document IP Core
Date Change Summary
Version Version
July 2017 2.8 1.0 (for 5G version) Changed document number from IPUG56 to
FPGA-IPUG-02029.
Updated document template.
2.6 Beta (for 5G Added support for 4.9152 Gbps line rate.
version)
General updates in all chapters.
September 2010 02.3 3.3 Added support for Diamond software throughout.
May 2009 02.0 3.0 Updated to include LatticeECP3 and 3G line rate
support.
Updated for enhanced fast C&M packet check for
Fixed Ethernet mode, and support for back-to-
back Ethernet packet in the CPRI link.
August 2008 01.8 2.7 Updated Figure 2.9, Rx IQ Interface Data and
Frame Number Alignment diagram.
© 2006-2017 Lattice Semiconductor Corp. All Lattice trademarks, registered trademarks, patents, and disclaimers are as listed at www.latticesemi.com/legal. All other brand or product names are
trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice.
48 FPGA-IPUG-02029-2.8
CPRI IP Core
User Guide
© 2006-2017 Lattice Semiconductor Corp. All Lattice trademarks, registered trademarks, patents, and disclaimers are as listed at www.latticesemi.com/legal. All other brand or product names are
trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice.
FPGA-IPUG-02029-2.8 49
CPRI IP Core
User Guide
June 2008 01.6 2.7 Included information for Aldec, ModelSim, mixed
mode, and rtl/gate simulation.
Added information for low latency variation IP
configuration.
May 2008 01.5 2.7 Added information for txrst and rxrst to Signal
Descriptions table.
Added information about using this IP core with
the Linux operating system.
September 2007 01.4 2.4 References to tx_eth_pointer[7:0] replaced with
tx_eth_pointer[5:0].
July 2007 01.3 2.3 Updated LatticeSC/M and LatticeECP2M/S
appendices.
Added support for LatticeECP2MS.
April 2007 01.2 2.2 Input lbr_en was expanded from 2 bits to 4 bits.
The additional three bits provide two functions.
Function 1: Adds the ability to force the Startup
state machine to the standby state.
Function 2: Adds the ability to tell the core which
rate the PCS/SERDES supports.
These functions were added to make the rate
selection process work properly.
© 2006-2017 Lattice Semiconductor Corp. All Lattice trademarks, registered trademarks, patents, and disclaimers are as listed at www.latticesemi.com/legal. All other brand or product names are
trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice.
50 FPGA-IPUG-02029-2.8
7th Floor, 111 SW 5th Avenue
Portland, OR 97204, USA
T 503.268.8000
www.latticesemi.com