Features ............................................................................................................................................................... 7
1.2.2. Data Link Layer ...............................................................................................................................................7
1.2.4. Configuration Space Support ..........................................................................................................................8
1.2.5. Top Level IP Support .......................................................................................................................................8
Using the Transmit and Receive Interfaces ....................................................................................................... 28
2.3.1. As a Completer .............................................................................................................................................28
2.3.2. As a Requestor ..............................................................................................................................................29
Configuration Space .......................................................................................................................................... 31
2.5.1. Base Configuration Type0 Registers .............................................................................................................31
2.5.2. Power Management Capability Structure ....................................................................................................31
2.5.4. How to Enable/Disable MSI ..........................................................................................................................31
2.5.5. How to issue MSI ..........................................................................................................................................31
General Tab ....................................................................................................................................................... 42
Flow Control Tab ............................................................................................................................................... 44
3.4.
Configuration Space - 1 Tab .............................................................................................................................. 45
3.5.
Configuration Space - 2 Tab .............................................................................................................................. 47
4. IP Core Generation and Evaluation ............................................................................................................................. 50
4.1.
Licensing the IP Core ......................................................................................................................................... 50
4.1.1. Licensing Requirements for ECP5 and ECP5-5G ...........................................................................................50
4.2.
IPexpress Flow for LatticeECP3 Devices ............................................................................................................ 50
4.2.1. Getting Started .............................................................................................................................................50
4.2.2. IPexpress-Created Files and Top Level Directory Structure .........................................................................52
4.2.3. Instantiating the Core ...................................................................................................................................53
4.2.7. Enabling Hardware Evaluation in Diamond ..................................................................................................55
4.2.8. Updating/Regenerating the IP Core .............................................................................................................55
4.2.9. Regenerating an IP Core in Diamond............................................................................................................55
4.3.
Clarity Designer Flow for ECP5 and ECP5-5G Devices ....................................................................................... 55
4.3.1. Getting Started .............................................................................................................................................55
4.3.2. Configuring and Placing the IP Core .............................................................................................................57
trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice.
2
FPGA-IPUG-02009-1.8
PCI Express x1/x2/x4 Endpoint IP Core
User Guide
4.3.3. Generating the IP Core ................................................................................................................................. 60
4.3.4. Clarity Designer-Created Files and Directory Structure ............................................................................... 60
4.3.5. Instantiating the Core ................................................................................................................................... 62
4.3.9. Updating/Regenerating the IP Core ............................................................................................................. 63
5. Using the IP Core ........................................................................................................................................................ 65
5.1.
Simulation and Verification ............................................................................................................................... 65
5.1.2. Alternative Testbench Approach .................................................................................................................. 65
5.1.3. Third Party Verification IP ............................................................................................................................ 66
5.2.
FPGA Design Implementation for LatticeECP3 Devices..................................................................................... 67
5.2.1. Setting Up the Core ...................................................................................................................................... 67
5.2.2. Setting Up for Native x4 (No Flip) ................................................................................................................. 67
5.2.3. Setting Up for Native x4 (Flipped) ................................................................................................................ 67
5.2.4. Setting Up for Downgraded x1 (No Flip) ...................................................................................................... 67
5.2.5. Setting Up for Downgraded x1 (Flipped) ...................................................................................................... 68
5.2.8. Locating the IP .............................................................................................................................................. 69
5.3.
Board-Level Implementation Information ........................................................................................................ 70
5.5.1. LatticeECP3 and ECP5 IP Simulation ............................................................................................................. 75
ECP5 and ECP5-5G .......................................................................................................................................................... 77
Technical Support Assistance ............................................................................................................................................. 78
Appendix A. Resource Utilization of 2.5G IP Core .............................................................................................................. 79
Appendix B. Resource Utilization of PCI Express 5G IP Core .............................................................................................. 81
Revision History .................................................................................................................................................................. 82
trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice.
FPGA-IPUG-02009_1.8
3
PCI Express x1/x2/x4 Endpoint IP Core
User Guide
Figures
Figure 2.1. PCI Express IP Core Technology and Functions ...................................................................................................9
Figure 2.2. PCI Express Core Implementation in LatticeECP3, ECP5 and EPC5-5G .............................................................10
Figure 3.1. PCI Express IP Core General Options .................................................................................................................42
Figure 3.2. PCI Express IP Core PCS Pipe Options.................................................................................................................43
Figure 3.4. PCI Express IP Core Configuration Space - 1 Options ........................................................................................45
Figure 3.5. PCI Express IP Core Configuration Space - 2 Options ........................................................................................47
Figure 4.12. Generating the IP Core ...................................................................................................................................60
Figure 5.6. LatticeECP3 Device Arrays with PCS/SERDES ....................................................................................................70
Figure 5.7. ECP5 Device Arrays with PCS/SERDES ...............................................................................................................70
Figure 5.8. Best Case Timing Diagram, Lattice Device with Respect to PERST# .................................................................71
Figure 5.9. Worst Case Timing Diagram, Lattice Device with Respect to PERST#...............................................................71
Figure 5.10. Example of Board Layout Concern with x4 Link ..............................................................................................72
Figure 5.11. Implementation of x4 IP Core to Edge Fingers ...............................................................................................73
Figure 5.12. Implementation of x1 IP Core to Edge Fingers ...............................................................................................74
Figure 5.13. PCI Express Endpoint Add In Card ...................................................................................................................74
Table 2.1. PCI Express IP Core Port List............................................................................................................................... 11
Table 2.2. Unsupported TLPs Which Can be Received by the IP ........................................................................................ 30
Table 2.3. Unsupported TLPs Which Can Be Received by the IP ........................................................................................ 32
Table 2.5. Physical Layer Error List ..................................................................................................................................... 34
Table 2.6. Data Link Layer Error List ................................................................................................................................... 34
Table 2.7. Transaction Layer Error List ............................................................................................................................... 35
Table 3.1. IP Core Parameters ............................................................................................................................................ 40
Table 3.2. General Tab Parameters .................................................................................................................................... 43
Table 3.4. Flow Control Tab Parameters ............................................................................................................................ 44
Table 3.5. Configuration Space - 1 Tab Parameters............................................................................................................ 46
Table 3.6. Configuration Space - 2 Tab Parameters............................................................................................................ 47
Table 3.7. Total EBR Count Based on Max Payload Size (2.5G IP Core) .............................................................................. 49
Table 4.1. File List ............................................................................................................................................................... 52
Table 4.2. File List ............................................................................................................................................................... 61
Table 5.1. LatticeECP3 Power Up Timing Specifications ..................................................................................................... 72
Table 5.2. ECP5 Power Up Timing Specifications ................................................................................................................ 72
High frequency transformer, low frequency transformer, pulse transformer1. What is the difference between a pulse transformer with two windings and a high-frequency transformer with three windings and...
Before a function calls a called function, the system needs to do the following: 1: First, push the actual parameters into the stack in reverse order, and then push the return address into the stack (...
There are many wireless communication technologies for the Internet of Things, which can be divided into two categories: one is short-distance communication technologies such as Zigbee, WiFi, Bluetoot...
[p=30, 2, left][font=Arial, Tahoma, Simsun][color=#000000]Transient voltage suppressor TVS has the characteristics of fast response speed, large transient power, low leakage current, and low breakdown...
This program is written to simulate the serial port hardware mechanism. When used, a timed interrupt can be set with a time interval of 1/4 baud rate. The receiving function is called once for ea...[Details]
1. Introduction
RFID (radio frequency identification) is a non-contact automatic identification technology that emerged in the 1990s. It uses the characteristics of radio frequency signal prop...[Details]
DSP (digital signal processor) is used more and more frequently in today's engineering applications. There are three main reasons for this: first, it has powerful computing power and is capable of ...[Details]
Electronic systems are located at different points on the automotive power bus and therefore often need to operate under very stringent power requirements. These include load dump, cold crank, very lo...[Details]
Product series: PB-B-RS232/485 interface (hereinafter sometimes referred to as "interface") is a product in the PROFIBUS bus bridge series.
The main purpose of the bridge series ...[Details]
1 Introduction
Building Automation System (BAS) is a distributed monitoring system (DCS) designed according to distributed information and control theory. It is the result of the mutual de...[Details]
1 Introduction
With the development of control, computer, communication, network technology, etc., a new control technology, namely fieldbus, has emerged in the field of industrial control...[Details]
1. Introduction
Testing the temperature of steel billets before rolling is an important measure to ensure the quality of steel. Traditional manual testing is difficult to ensure product qu...[Details]
VP2188 is a color STN LCD module produced by Jingdian Pengyuan. This module is a dot matrix transmissive color STN display screen with a color scale of 65 k colors and white LED backlight. Its core...[Details]
Printed circuit boards ( PCBs
)
are used in most electrical products
. If a PCB has low
insulation resistance
(IR), the performance of the circuits on the PCB will be greatly reduced...[Details]
OC faults may be the most frequent and the most frequent of all faults in the inverter. They alarm during the startup process, during the shutdown process, during operation, and even when powered o...[Details]
Preface
In recent years, white light LEDs have gradually replaced incandescent bulbs and fluorescent lamps because they have unparalleled advantages over traditional light sources in terms...[Details]
With the rapid development of cities and the improvement of citizens' living standards, the number of various vehicles in cities is growing, and the demand for parking spaces in major commercial an...[Details]
0 Introduction
With the rapid development of social economy and science and technology, electric locomotives, subways and electric vehicles will be widely used. The power conversion and cont...[Details]
Electric bicycles have long been a means of transportation for lower-income groups due to their affordability. The largest concentrated expense in the use of electric vehicles is the cost of replac...[Details]