Altera Arria V GZ Avalon-ST Uživatelský manuál

Procházejte online nebo si stáhněte Uživatelský manuál pro Měřící nástroje Altera Arria V GZ Avalon-ST. Altera Arria V GZ Avalon-ST User Manual Uživatelská příručka

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 286
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků

Shrnutí obsahu

Strany 1 - User Guide

Arria V GZ Avalon-ST Interface for PCIe SolutionsUser GuideLast updated for Altera Complete Design Suite: 14.1SubscribeSend FeedbackUG-01127_avst2014.

Strany 2 - Datasheet

Figure 1-4: Example Design Preset ParametersIn this example design, the following parameters must be set to match the values set in the DUT:• Targeted

Strany 3 - Features

tl_cfg_sts Configuration Space Register Description[46:31] Link Status Register[15:0] Records the following link status informa‐tion:• Bit 15: link au

Strany 4 - Interface

Configuration Space Register Access TimingFigure 5-38: tl_cfg_ctl TimingThe following figure shows typical traffic on the tl_cfg_ctl bus. The tl_cfg_a

Strany 5

Figure 5-39: Multiplexed Configuration Register Information Available on tl_cfg_ctlFields in blue are available only for Root Ports.01cfg_dev_ctrl[15:

Strany 6

Register Width Direction Descriptioncfg_link_ctrl16 Output cfg_link_ctrl[15:0]is the primary Link Controlof the PCI Express capability structure.For G

Strany 7 - Device Family Support

Register Width Direction Descriptioncfg_msi_addr64 Output cfg_msi_add[63:32] is the message signaledinterrupt (MSI) upper message address. cfg_msi_add

Strany 8

Register Width Direction Descriptioncfg_tcvcmap24 Output Configuration traffic class (TC)/virtual channel(VC) mapping. The Application Layer uses this

Strany 9

Bit(s) Field Description[6:4] multiple messageenableThis field indicates permitted values for MSI signals. For example,if “100” is written to this fie

Strany 10 - 2014.12.15

Table 5-18: Hard IP Reconfiguration SignalsSignal Direction Descriptionhip_reconfig_clkInput Reconfiguration clock. The frequency range for this clock

Strany 11 - IP Core Verification

Figure 5-41: Hard IP Reconfiguration Bus Timing of Read-Only Registersavmm_clkhip_reconfig_rst_nuser_modeser_shift_loadinterface_selavmm_wravmm_wrdata

Strany 12 - Recommended Speed Grades

Signal Direction Descriptionpme_to_srOutput Power management turn off status register.Root Port—This signal is asserted for 1 clock cycle when the Roo

Strany 13

Debug FeaturesDebug features allow observation and control of the Hard IP for faster debugging of system-levelproblems.Related InformationDebugging on

Strany 14 - • All Development Kits

Figure 5-42: Layout of Power Management Capabilities Registerdata_selectdata_scale PM_statePME_ENPME_status reserved15 011623 8 2791213142431reservedd

Strany 15 - PCI Express

Figure 5-43: pme_to_sr and pme_to_cr in an Endpoint IP coreThe following figure illustrates the behavior of pme_to_sr and pme_to_cr in an Endpoint. Fi

Strany 16 - Qsys Design Flow

Variant Logical InterfacesGen1 and Gen2 ×2 3Gen1 and Gen2 ×4 5Gen1 and Gen2 ×8 10Gen3 ×1 3Gen3 ×2 4Gen3 ×4 6Gen3 ×8 11For more information about the T

Strany 17

Physical Layout of Hard IP in Arria V GZ DevicesArria V GZ devices include one Hard IP for PCI Express IP core. The following figures illustrate thepl

Strany 18 - Simulating the Example Design

Channel Placement in Arria V GZ and Stratix V GX/GT/GS DevicesFigure 5-45: Arria V GZ and Stratix V GX/GT/GS Gen1 and Gen2 Channel Placement Using the

Strany 19 - TLP Header

Figure 5-46: Arria V GZ and Stratix V GX/GT/GS Gen3 Channel Placement Using the CMU and ATX PLLsGen3 requires two PLLs to facilitate rate switching be

Strany 20

Figure 5-47: Arria V GZ and Stratix V GX/GT/GS Gen1 and Gen2 Channel Placement Using the ATX PLLSelecting the ATX PLL has the following advantages ove

Strany 21

Table 5-24: PIPE Interface SignalsSignal Direction Descriptiontxdata0[7:0]Output Transmit data <n>. This bus transmits data on lane <n>.tx

Strany 22

Signal Direction Descriptionpowerdown0[1:0] Output Power down <n>. This signal requests the PHY to change itspower state to the specified state

Strany 23 - Modifying the Example Design

Signal Direction Descriptionsim_pipe_rate[1:0]Output The 2-bit encodings have the following meanings:• 2’b00: Gen1 rate (2.5 Gbps)• 2’b01: Gen2 rate (

Strany 24 - Separate Component

Recommended Speed GradesTable 1-5: Arria V GZ Recommended Speed Grades for All Link Widths and Application Layer ClockFrequenciesAltera recommends set

Strany 25

Signal Direction Description• 5’b11010: Speed.Recovery• 5’b11011: Recovery.Equalization, Phase 0• 5’b11100: Recovery.Equalization, Phase 1• 5’b11101:

Strany 26

Test SignalsTable 5-25: Test Interface SignalsThe test_in bus provides run-time control and monitoring of the internal state of the IP core.Signal Dir

Strany 27 - Generating the Qsys System

Registers62014.08.18UG-01127_avstSubscribeSend FeedbackCorrespondence between Configuration Space Registers and the PCIeSpecificationTable 6-1: Corres

Strany 28 - Parameter Value

Byte Address Hard IP Configuration Space Register Corresponding Section in PCIe Specification0x170:0x17C Reserved N/A0x180:0x1FC Virtual channel arbit

Strany 29

Byte Address Hard IP Configuration Space Register Corresponding Section in PCIe Specification0x018 Base Address 2Secondary Latency Timer, Subordinate

Strany 30

Byte Address Hard IP Configuration Space Register Corresponding Section in PCIe Specification0x058 Message Upper Address MSI and MSI-X Capability Stru

Strany 31

Type 0 Configuration Space RegistersFigure 6-1: Type 0 Configuration Space Registers - Byte Address Offsets and LayoutEndpoints store configuration da

Strany 32

Type 1 Configuration Space RegistersFigure 6-2: Type 1 Configuration Space Registers (Root Ports)0x00000x004Device ID31242316158700x0080x00C0x0100x014

Strany 33

Figure 6-4: MSI-X Capability Structure0x0680x06C0x070Message Control Next Cap PtrMSI-X Table OffsetMSI-X Pending Bit Array (PBA) Offset31 24 23 16 15

Strany 34

Figure 6-7: PCI Express Capability Structure - Byte Address Offsets and LayoutIn the following table showing the PCI Express Capability Structure, reg

Strany 35

Link Rate Link Width InterfaceWidthApplication ClockFrequency (MHz)Recommended Speed GradesGen3x1 64 bits 125 –1, –2, –3, –4x2 64 bits 250 –1, –2, –3,

Strany 36

Altera-Defined VSEC RegistersFigure 6-8: VSEC RegistersThis extended capability structure supports Configuration via Protocol (CvP) programming and de

Strany 37

Table 6-3: Altera‑Defined Vendor Specific HeaderYou can specify these values when you instantiate the Hard IP. These registers are read-only at run-ti

Strany 38 - Parameter Settings

Table 6-7: CvP StatusThe CvP Status register allows software to monitor the CvP status signals.Bits Register Description Reset Value Access[31:26] Res

Strany 39 - Parameter Value Description

Bits Register Description Reset Value Access[1] HIP_CLK_SEL. Selects between PMA and fabric clock when USER_MODE = 1 and PLD_CORE_READY = 1. The follo

Strany 40

Bits Register Description Reset Value Access[1] START_XFER. Sets the CvP output to the FPGA control blockindicating the start of a transfer.1’b0 RW[0]

Strany 41

Bits Register Description Reset Value Access[0] Mask for the RX buffer uncorrectable ECC error. 1b’1 RWSUncorrectable Internal Error Status RegisterTa

Strany 42

Bits Register DescriptionResetValueAccess[1] When set, indicates a retry buffer uncorrectable ECC error.0RW1CS[0] When set, indicates a RX buffer unco

Strany 43

Bits Register Description Reset Value Access[5] When set, indicates a configuration error has been detected inCvP mode which is reported as correctabl

Strany 44

Reset and Clocks72014.12.15UG-01127_avstSubscribeSend FeedbackArria V GZ Hard IP for PCI Express IP Core includes both a soft reset controller and a h

Strany 45 - Device Capabilities

Figure 7-1: Reset Controller Block DiagramExample Designaltpcie_dev_hip_<if>_hwtcl.valtpcied_<dev>_hwtcl.svTransceiver HardReset Logic/Sof

Strany 46

Related Information• Parameter Settings on page 4-1• Getting Started with the Arria V GZ Hard IP for PCI Express on page 2-1• All Development KitsUG-0

Strany 47 - Error Reporting

Reset Sequence for Hard IP for PCI Express IP Core and Application LayerFigure 7-2: Hard IP for PCI Express and Application Logic Reset SequenceYour A

Strany 48 - Link Capabilities

Figure 7-3: RX Transceiver Reset Sequencebusy_xcvr_reconfigrx_pll_lockedrx_analogresetltssmstate[4:0]txdetectrx_loopbackpipe_phystatuspipe_rxstatus[2:

Strany 49 - MSI and MSI-X Capabilities

For descriptions of the available reset signals, refer to Reset Signals, Status, and Link Training Signals.Related InformationReset, Status, and Link

Strany 50 - Slot Capabilities

As this figure indicates, the IP core includes the following clock domains:pclkThe transceiver derives pclk from the 100 MHz refclk signal that you mu

Strany 51 - Power Management

Link Width Maximum Link Rate Avalon Interface Width coreclkout_hip×8 Gen1 64 250 MHz×8 Gen1128125 MHz×1Gen2 64125 MHz×2Gen2 64125 MHz×4 Gen2 64 250 MH

Strany 52 - PHY Characteristics

Clock SummaryTable 7-4: Clock SummaryName Frequency Clock Domaincoreclkout_hip62.5, 125 or 250 MHz Avalon-ST interface between the Transaction andAppl

Strany 53

Interrupts82014.08.18UG-01127_avstSubscribeSend FeedbackInterrupts for EndpointsThe Arria V GZ Hard IP for PCI Express provides support for PCI Expres

Strany 54 - Avalon‑ST RX Interface

Figure 8-1: MSI Handler BlockMSI HandlerBlockapp_msi_reqapp_msi_ackapp_msi_tc[2:0]app_msi_num[4:0]pex_msi_numapp_int_stscfg_msicsr[15:0]The following

Strany 55

Figure 8-3: MSI Request ExampleEndpoint8 Requested2 AllocatedRoot ComplexCPUInterrupt RegisterRootPortInterruptBlockThe following table describes thre

Strany 56

Figure 8-4: MSI Interrupt Signals Timingclkapp_msi_reqapp_msi_tc[2:0]app_msi_num[4:0]app_msi_ack1 2 3 5 647validvalidRelated InformationCorrespondence

Strany 57

Getting Started with the Arria V GZ Hard IP forPCI Express22014.12.15UG-01127_avstSubscribeSend FeedbackThis section provides instructions to help you

Strany 58

Figure 8-5: MSI-X Interrupt ComponentsHostRXTXRXTXMSI-XPCIe with Avalon-ST I/FMSI-X TableIRQProcessorMSI-X PBAIRQ SourceApplication LayerHost SW Prog

Strany 59 - Packet TLP

Figure 8-7: MSI-X PBA TablePending Bits 0 through 63Pending Bits 64 through 127Pending Bits ((N - 1) div 64) × 64 through N - 1QWORD 0QWORD 1QWORD ((

Strany 60

Figure 8-9: Legacy Interrupt Deassertionclkapp_int_stsapp_int_ackRelated InformationCorrespondence between Configuration Space Registers and the PCIe

Strany 61

Error Handling92014.12.15UG-01127_avstSubscribeSend FeedbackEach PCI Express compliant device must implement a basic level of error management and can

Strany 62

Physical Layer ErrorsTable 9-2: Errors Detected by the Physical LayerThe following table describes errors detected by the Physical Layer. Physical Lay

Strany 63

Transaction Layer ErrorsTable 9-4: Errors Detected by the Transaction LayerError Type DescriptionPoisoned TLP received Uncorrectable(non-fatal)This er

Strany 64 - Aligned Addresses

Error Type DescriptionIn all cases the TLP is deleted in the Hard IP block andnot presented to the Application Layer. If the TLP is anon-posted reques

Strany 65

Error Type DescriptionUnexpected completion Uncorrectable(non-fatal)This error is caused by an unexpected completiontransaction. The Hard IP block han

Strany 66

Error Type DescriptionMalformed TLP Uncorrectable(fatal)This error is caused by any of the following conditions:• The data payload of a received TLP e

Strany 67 - Single Packet Per Cycle

Poisoned TLPs can also set the parity error bits in the PCI Configuration Space Status register.Table 9-5: Parity Error ConditionsStatus Bit Condition

Strany 68

scripts to compile and simulate the Arria V GZ Hard IP for PCI Express IP Core. This example designprovides a simple method to perform basic testing o

Strany 69

Figure 9-2: Correctable Error Status RegisterThe default value of all the bits of this register is 0. An error status bit that is set indicates that t

Strany 70 - Avalon-ST TX Interface

IP Core Architecture102014.08.18UG-01127_avstSubscribeSend FeedbackThe Arria V GZ Hard IP for PCI Express implements the complete PCI Express protocol

Strany 71

Figure 10-1: Arria V GZ Hard IP for PCI Express Using the Avalon-ST InterfaceClockDomainCrossing(CDC)Data LinkLayer(DLL)Transaction Layer (TL)PHYMAC H

Strany 72

The following interfaces provide access to the Application Layer’s Configuration Space Registers:• The LMI interface• The Avalon-MM PCIe reconfigurati

Strany 73

• Avalon Interface SpecificationsClocks and ResetThe PCI Express Base Specification requires an input reference clock, which is called refclk in this

Strany 74

InterruptsThe Hard IP for PCI Express offers the following interrupt mechanisms:• Message Signaled Interrupts (MSI)— MSI uses the Transaction Layer&ap

Strany 75

Tracing a transaction through the TX datapath involves the following steps:1. The Transaction Layer informs the Application Layer that sufficient flow

Strany 76

Configuration SpaceThe Configuration Space implements the following configuration registers and associated functions:• Header Type 0 Configuration Spa

Strany 77

Figure 10-3: Configuration Space Bypass ModeCustomConfiguration SpaceRX Buffer &Flow ControlConfigurationSpace(Disabled)Avalon-ST RXTransaction La

Strany 78

Note: Altera does not support the use of the LMI interface to read and write the other registers infunction0 of the Hard IP for PCI Express Configurat

Strany 79

Figure 2-2: Complete Gen1 ×8 Endpoint (DUT) Connected to Example Design (APPS)The example design includes the following components:• DUT—This is Gen1

Strany 80

The following list summarizes the behavior of the Transaction Layer error handling in ConfigurationSpace Bypass Mode:• The Translation Layer discards

Strany 81

• Real-time error signals are routed to the Application Layer using the error status output signals listedin the “Configuration Space Bypass Mode Outp

Strany 82

Protocol Extensions SupportedThe Transaction Layer supports the following protocol extensions:• TLP Processing Hints (TPH)—Supports both a Requester a

Strany 83 - Data 0 Header 2

Figure 10-5: Data Link LayerTo Transaction LayerTx Transaction LayerPacket Description & DataTransaction LayerPacket GeneratorRetry BufferTo Physi

Strany 84

• ACK/NAK Packets—The ACK/NAK block handles ACK/NAK DLLPs and generates the sequencenumber of transmitted packets.• Transaction Layer Packet Checker—T

Strany 85 - Clock Signals

Figure 10-6: Physical Layer ArchitectureScrambler8B10BEncoderLane nTX+ / TX-Scrambler8B10BEncoderLane 0TX+ / TX-Descrambler8B10BDecoderLane nRX+ / RX-

Strany 86

The PHYMAC block comprises four main sub-blocks:• MAC Lane—Both the RX and the TX path use this block.• On the RX side, the block decodes the Physical

Strany 87

Transaction Layer Protocol (TLP) Details112014.08.18UG-01127_avstSubscribeSend FeedbackSupported Message TypesINTX MessagesThe following table describ

Strany 88

MessageRootPortEndpointGenerated byCommentsAppLayerCore Core(withAppLayerinput)Deassert_INTBReceive Transmit No No NoDeassert_INTCReceive Transmit No

Strany 89

Error Signaling MessagesTable 11-3: Error Signaling MessagesMessageRootPortEndpointGenerated byCommentsAppLayerCore Core (withApp Layerinput)ERR_CORRX

Strany 90 - Error Signals

Generating the Testbench1. On the Generate menu, select Generate Testbench System. Specify the parameters listed in thefollowing table.Table 2-1: Para

Strany 91 - Interrupts for Endpoints

Locked Transaction MessageTable 11-4: Locked Transaction MessageMessage Root Port EndpointGenerated byCommentsAppLayerCore Core (withApp Layerinput)Un

Strany 92 - Completion Side Band Signals

Message Root Port EndpointGenerated byCommentsAppLayerCore Core (withApp Layerinput)VendorDefinedType 1TransmitReceiveTransmitReceiveYes No NoHot Plug

Strany 93 - Description

Message Root Port EndpointGenerated byCommentsAppLayerCore Core (withApp Layerinput)AttentionButton_Pressed(Endpoint only)Receive Transmit No No YesN/

Strany 94

• The Type 0 Configuration TLPs are only routed to the Configuration Space of the Hard IP and are notsent downstream on the PCI Express link.• The Typ

Strany 95 - Parity Signals

• A Memory Write or Message Request with the Relaxed Ordering Attribute bit clear (b’0) must not passany other Memory Write or Message Request.• A Mem

Strany 96 - LMI Signals

Can the Row Passthe Column?Posted Req Non Posted ReqCompletionMemory Write orMessage ReqRead Request I/O or Cfg Write ReqCmplCmpl NoY/NNoNoYes Yes Yes

Strany 97

Figure 11-1: Design Including Legacy PCI Buses Requiring Strong OrderingProducerPCI-toPCI BridgePCI BusFlagPostedWrite BufferConsumerPCI BusMemoryRead

Strany 98

Figure 11-2: PCI Express Design Using Relaxed OrderingRootComplexPCIeEndpointSwitchWrite BufferFullCPUMemoryPCIe Bridge to PCI or PCI-XLegacyEndpointP

Strany 99

Throughput Optimization122014.12.15UG-01127_avstSubscribeSend FeedbackThe PCI Express Base Specification defines a flow control mechanism to ensure ef

Strany 100 - Send Feedback

Figure 12-1: Flow Control Update LoopCreditsConsumedCounterCreditLimitData PacketFlowControlGatingLogic(CreditCheck)AllowIncrRxBufferData PacketCredit

Strany 101

Generating Quartus II Synthesis Files1. On the Generate menu, select Generate HDL.2. For Create HDL design files for synthesis, select Verilog.You can

Strany 102

counter. Essentially, this means the data sink knows the data source has less than a fullMAX_PAYLOAD worth of credits, and therefore is starving.b. Wh

Strany 103

Nevertheless, maintaining maximum throughput of completion data packets is important. Endpointsmust offer an infinite number of completion credits. En

Strany 104

Design Implementation132014.12.15UG-01127_avstSubscribeSend FeedbackCompleting your design includes additional steps to specify analog properties, pin

Strany 105 - 0134678951

a. Double-click in the Assignment Name column and scroll to the bottom of the availableassignments.b. Select VCCA_GXB Voltage.c. In the Value column,

Strany 106 - Related Information

Related InformationReset Sequence for Hard IP for PCI Express IP Core and Application Layer on page 7-3SDC Timing ConstraintsYou must include componen

Strany 107 - Signal Direction Description

set_false_path -from [get_clocks {reconfig_xcvr_clk}] -to [get_clocks {*|altpcie_hip_256_pipen1b|stratixv_hssi_gen3_pcie_hip|coreclkout}]set_false_pa

Strany 108 - Power Management Signals

Optional Features142014.12.15UG-01127_avstSubscribeSend FeedbackConfiguration via Protocol (CvP)The Hard IP for PCI Express architecture has an option

Strany 109

CvP has the following advantages:• Provides a simpler software model for configuration. A smart host can use the PCIe protocol and theapplication topo

Strany 110 - 15 011623 8 2791213142431

Table 14-2: ECRC Operation on RX PathECRC Forwarding ECRC Check Enable(5)ECRC Status Error TLP Forward to Application LayerNoNonone No Forwardedgood N

Strany 111 - Transceiver Reconfiguration

Table 14-3: ECRC Generation and Forwarding on TX PathAll unspecified cases are unsupported and the behavior of the Hard IP is unknown.ECRC Forwarding

Strany 112 - Serial Data Signals

Datasheet12014.12.15UG-01127_avstSubscribeSend FeedbackArria V GZ Avalon-ST Interface for PCIe DatasheetAltera® Arria V GZ® V FPGAs include a configur

Strany 113

Time TLP Type Payload(Bytes)TLP Header18085 RX MRd 0000 00000000_00000000_0108000CUnderstanding Physical Placement of the PCIe IP CoreFor more informa

Strany 114

Hard IP Reconfiguration152014.08.18UG-01127_avstSubscribeSend FeedbackThe Arria V GZ Hard IP for PCI Express reconfiguration block allows you to dynam

Strany 115

Transceiver PHY IP Reconfiguration162014.12.15UG-01127_avstSubscribeSend FeedbackAs silicon progresses towards smaller process nodes, circuit performa

Strany 116 - PIPE Interface Signals

As this figure illustrates, the reconfig_to_xcvr[ <n> 70-1:0] and reconfig_from_xcvr[ <n> 46-1:0]buses connect the two components. You mus

Strany 117

Figure 16-3: Specifying the Number of Transceiver Interfaces for Arria V GZ and Stratix V DevicesThe Transceiver Reconfiguration Controller includes a

Strany 118

Transceiver Reconfiguration Controller Connectivity for Designs UsingCvPIf your design meets the following criteria:• It enables CvP• It includes an a

Strany 119

Testbench and Design Example172014.12.15UG-01127_avstSubscribeSend FeedbackThis chapter introduces the Root Port or Endpoint design example including

Strany 120

Your Application Layer design may need to handle at least the following scenarios that are not possible tocreate with the Altera testbench and the Roo

Strany 121 - Test Signals

The top-level of the testbench instantiates four main modules:• <qsys_systemname>— This is the example Endpoint design. For more information abo

Strany 122 - Registers

Root Port TestbenchThis testbench simulates up to an ×8 PCI Express link using either the PIPE interfaces of the Root Portand Endpoints or the serial

Strany 123

The end point or Root Port variant is generated in the language (Verilog HDL or VHDL) that you selectedfor the variation file. The testbench files are

Strany 124

a. In the Family list, select Arria V GZ .b. In the Devices list, select Arria V GZ All.c. In the Available Devices list, select 5AGZME5K2F40C3 .9. Cl

Strany 125

Figure 17-2: Top-Level Chaining DMA Example for SimulationRoot Complex CPURoot Port MemoryWriteDescriptorTableDataChaining DMAEndpoint MemoryAvalon-M

Strany 126

The following modules are included in the design example and located in the subdirectory<qsys_systemname>/testbench/<qsys_system_name>_tb/

Strany 127

The following modules are provided in both Verilog HDL:• altpcierd_example_app_chaining—This top level module contains the logic related to the Avalon

Strany 128

• altpcierd_read_dma_requester, altpcierd_read_dma_requester_128—For each descriptor located inthe altpcierd_descriptor FIFO, this module transfers da

Strany 129

Memory BAR MappingExpansion ROM BAR Not implemented by design example; behavior is unpredictable.I/O Space BAR (any) Not implemented by design example

Strany 130 - Altera-Defined VSEC Registers

Table 17-3: Bit Definitions for the Control Field in the DMA Write Control Register and DMA Read ControlRegisterBit Field Description16 Reserved —17MS

Strany 131 - CvP Registers

Addr Register NameBits[31:24] Bits[23:16] Bits[15:0]0x24DMA Wr Status LoTarget Mem AddressWidthWrite DMA Performance Counter. (Clockcycles from time D

Strany 132 - 2014.08.18

Bit Field Description[15:0]Write DMA EPLASIndicates the number of the last descriptor completed by the writeDMA. For simultaneous DMA read and write t

Strany 133

Each subsequent descriptor consists of a minimum of four dwords of data and corresponds to one DMAtransfer. (A dword equals 32 bits.)Note: The chainin

Strany 134

The following table shows the layout of the descriptor fields following the descriptor header.Table 17-8: Chaining DMA Descriptor Format MapBits[31:22

Strany 135 - Bits Register Description

Files Generated for Altera IP CoresFigure 2-3: IP Core Generated FilesNotes:1. If supported and enabled for your IP variation2. If functional simulati

Strany 136

Descriptor Field EndpointAccessRC Access DescriptionEPLAST_ENAR R/W This bit is OR’d with the EPLAST_ENA bit of the controlregister. When EPLAST_ENA i

Strany 137

• The chaining DMA writes the EPLast bit of the Chaining DMA Descriptor Tableaftercompleting the data transfer for the first and last descriptors.• Th

Strany 138 - Reset and Clocks

Table 17-12: Write Descriptor 1Offset in BFMShared MemoryValue DescriptionDW0 0x820 1,024 Transfer length in dwords and control bits as described inBi

Strany 139 - Hard IP for PCI Express

Table 17-14: DMA Control Register Setup for DMA WriteOffset in DMAControl Register(BAR2)Value DescriptionDW0 0x0 3 Number of descriptors and control b

Strany 140

Table 17-16: Read Descriptor 1Offset in BFMShared MemoryValue DescriptionDW0 0x920 1,024 Transfer length in dwords and control bits as described in on

Strany 141

Offset in DMA ControlRegisters (BAR2)Value DescriptionDW1 0x14 0 BFM shared memoryupper address valueDW2 0x18 0x900 BFM shared memorylower address val

Strany 142 - Clock Domains

Figure 17-3: Root Port Design Example Root Port Variation(variation_name.v)Avalon-ST Interface(altpcietb_bfm_vc_intf)Test Driver(altpcietb_bfm_driver_

Strany 143 - Data Rate Frequency

The top-level of the testbench instantiates the following key files:• altlpcietb_bfm_top_ep.v— this is the Endpoint BFM. This file also instantiates t

Strany 144

Figure 17-4: Root Port BFMBFM Shared Memory(altpcietb_bfm_shmem _common)BFM Log Interface(altpcietb_bfm_log_common)Root Port RTL Model (altpcietb_bfm_

Strany 145 - Clock Summary

• BFM Read/Write Request Functions(altpcietb_bfm_driver_rp.v)—These functions provide the basicBFM calls for PCI Express read and write requests. For

Strany 146 - Interrupts

Modifying the Example DesignTo use this example design as the basis of your own design, replace the Chaining DMA Example shown inthe following figure

Strany 147 - MSI Interrupts

The ebfm_cfg_rp_ep executes the following steps to initialize the Configuration Space:1. Sets the Root Port Configuration Space to enable the Root Por

Strany 148 - Allocated

configuration is unlikely to be useful in real systems. If the procedure is unable to assign the BARs,it displays an error message and stops the simul

Strany 149 - Implementing MSI-X Interrupts

Offset (Bytes) Description+60 ReservedThe configuration routine does not configure any advanced PCI Express capabilities such as the AERcapability.Bes

Strany 150

Figure 17-6: Memory Space Layout—No Limit Root Complex Shared MemoryUnusedUnusedConfiguration ScratchSpace Used byRoutines - NotWriteable by UserCal

Strany 151 - Legacy Interrupts

Figure 17-7: I/O Address Space Root Complex Shared MemoryUnusedConfiguration ScratchSpace Used by BFMRoutines - NotWriteable by UserCalls or EndpointB

Strany 152 - Interrupts for Root Ports

Verilog HDL include file altpcietb_bfm_driver_rp.v. The complete list of available procedures andfunctions is as follows:• ebfm_barwr—writes data from

Strany 153 - Error Handling

Location altpcietb_bfm_rdwr.vArgumentsbar_tableAddress of the Endpoint bar_table structure in BFM sharedmemory. The bar_table structure stores the add

Strany 154 - Data Link Layer Errors

Location altpcietb_bfm_driver_rp.vArgumentsbar_tableAddress of the Endpoint bar_table structure in BFM sharedmemory. The bar_table structure stores th

Strany 155 - Transaction Layer Errors

Argumentsbar_tableAddress of the Endpoint bar_table structure in BFM sharedmemory. The bar_table structure stores the address assigned toeach BAR so t

Strany 156 - Error Type Description

ebfm_cfgwr_imm_wait ProcedureThe ebfm_cfgwr_imm_wait procedure writes up to four bytes of data to the specified configurationregister. This procedure

Strany 157

Using the IP Catalog To Generate Your Arria V GZ Hard IP for PCI Express as aSeparate ComponentYou can also instantiate the Arria V GZ Hard IP for PCI

Strany 158

Location altpcietb_bfm_driver_rp.vSyntax ebfm_cfgwr_imm_nowt(bus_num, dev_num, fnc_num, imm_regb_adr, regb_len, imm_data)Argumentsbus_numPCI Express b

Strany 159 - Status Bit Conditions

Location altpcietb_bfm_driver_rp.vArgumentsbus_numPCI Express bus number of the target device.dev_numPCI Express device number of the target device.fn

Strany 160

Location altpcietb_bfm_driver_rp.vArgumentsbus_numPCI Express bus number of the target device.dev_numPCI Express device number of the target device.fn

Strany 161 - IP Core Architecture

Location altpcietb_bfm_driver_rp.vArgumentsbar_tableAddress of the Endpoint bar_table structure in BFM sharedmemory. This routine populates the bar_ta

Strany 162 - Hard IP for PCI Express

Location altpcietb_bfm_driver_rp.vArgumentsbar_tableAddress of the Endpoint bar_table structure in BFM sharedmemory.bar_numBAR number to analyze.log2_

Strany 163 - Avalon-ST Interface

Constant DescriptionSHMEM_FILL_QWORD_INCSpecifies a data pattern of incrementing 64-bit qwords(0x0000000000000000, 0x0000000000000001,0x00000000000000

Strany 164 - Hard IP Reconfiguration

shmem_display Verilog HDL FunctionThe shmem_display Verilog HDL function displays a block of data from the BFM shared memory.Location altpcietb_bfm_dr

Strany 165 - Transaction Layer

Related InformationShared Memory Constants on page 17-40shmem_chk_ok FunctionThe shmem_chk_ok function checks a block of BFM shared memory against a s

Strany 166

Table 17-21: Log MessagesConstant(MessageType)Description Mask BitNoDisplayby DefaultSimulationStops byDefaultMessagePrefixEBFM_MSG_DEBUGSpecifies deb

Strany 167 - Configuration Space

Constant(MessageType)Description Mask BitNoDisplayby DefaultSimulationStops byDefaultMessagePrefixEBFM_MSG_ERROR_FATAL_TB_ERRUsed for BFM test driver

Strany 168 - Altera FPGA

Getting Started with the Configuration SpaceBypass Mode Qsys Example Design32014.08.18UG-01127_avstSubscribeSend FeedbackThis Qsys design example demo

Strany 169

ebfm_log_stop_sim Verilog HDL FunctionThe ebfm_log_stop_sim procedure stops the simulation.Location altpcietb_bfm_driver_rp.vSyntax Verilog VHDL: retu

Strany 170

Related InformationBFM Log and Message Procedures on page 17-43ebfm_log_open Verilog HDL FunctionThe ebfm_log_open procedure opens a log file of the s

Strany 171

Location altpcietb_bfm_driver_rp.vSyntax string:= himage(vec)ArgumentrangevecInput data type reg with a range of 7:0.ReturnrangestringReturns a 2-digi

Strany 172 - Data Link Layer

Locationaltpcietb_bfm_driver_rp.vSyntax string:= himage(vec)ArgumentrangevecInput data type reg with a range of 63:0.ReturnrangestringReturns a 16-dig

Strany 173

dimage3This function creates a three-digit decimal string representation of the input argument that can beconcatenated into a larger message string an

Strany 174 - Physical Layer

Locationaltpcietb_bfm_driver_rp.vReturnrangestringReturns a 5-digit decimal representation of the input argumentthat is padded with leading 0s if nece

Strany 175 - TX Packets

chained_dma_test ProcedureThe chained_dma_test procedure is the top-level procedure that runs the chaining DMA read and thechaining DMA writeLocation

Strany 176

Location altpcietb_bfm_driver_rp.vSyntaxdma_wr_test (bar_table, bar_num, use_msi, use_eplast)Argumentsbar_tableAddress of the Endpoint bar_table struc

Strany 177 - INTX Messages

Location altpcietb_bfm_driver_rp.vSyntaxdma_set_header (bar_table, bar_num, Descriptor_size, direction, Use_msi,Use_eplast, Bdt_msb, Bdt_lab, Msi_numb

Strany 178 - Power Management Messages

Location altpcietb_bfm_driver_rp.vArgumentsrc_addrAddress of the BFM shared memory that is being polled.rc_dataExpected data value of the that is bein

Strany 179 - Error Signaling Messages

Figure 3-1: Configuration Bypass Mode Qsys Example Design pcie_reconfig_driver_0to PCIe Root Portand Host SystemConfigurationBypass Top(cfbp_top)A

Strany 180 - Vendor-Defined Messages

Location altpcietb_bfm_driver_rp.vArgumentsbar_tableAddress of the Endpoint bar_table structure in BFM sharedmemory.bar_numBAR number to analyze.Bus_n

Strany 181 - Hot Plug Messages

Location altpcietb_bfm_driver_rp.vArgumentsbar_tableAddress of the Endpoint bar_table structure in BFM sharedmemoryallowed_barsOne hot 6 bits BAR sele

Strany 182

Related InformationBFM Log and Message Procedures on page 17-43Debugging SimulationsYou can modify the following default testbench parameter settings

Strany 183 - Receive Buffer Reordering

Debugging182014.12.15UG-01127_avstSubscribeSend FeedbackAs you bring up your PCI Express system, you may face a number of issues related to FPGA confi

Strany 184

packets can be transmitted. If you encounter link training issues, viewing the actual data in hardwareshould help you determine the root cause. You ca

Strany 185 - Using Relaxed Ordering

Possible Causes Symptoms and Root Causes Workarounds and SolutionsLink fails withLTSSM stuck inDetect.Active state(1)This behavior may be caused bya P

Strany 186

Possible Causes Symptoms and Root Causes Workarounds and SolutionsLink fails due tounstable rx_signaldetectConfirm that rx_signaldetectbus of the acti

Strany 187

Table 18-2: Link Hangs in L0Possible Causes Symptoms and Root Causes Workarounds and SolutionsAvalon-ST signalingviolates Avalon-STprotocolAvalon-ST p

Strany 188 - Throughput Optimization

Possible Causes Symptoms and Root Causes Workarounds and SolutionsMalformed TLP istransmittedRefer to the error log file to findthe last good packet t

Strany 189

• Avalon Interface Specifications• PCI Express Base Specification 2.1 or 3.0• Design Debugging Using the SignalTap II Embedded Logic AnalyzerSetting U

Strany 190 - Throughput of Posted Writes

Figure 3-2: Configuration Bypass Qsys System1. Note the following parameter settings for the Configuration Space Bypass Example Design:• For the DUT,

Strany 191

Disable the Scrambler for Gen1 and Gen2 SimulationsThe encoding scheme implemented by the scrambler applies a binary polynomial to the data stream toe

Strany 192 - Design Implementation

Transaction Layer Packet (TLP) Header FormatsA2014.12.15UG-01127_avstSubscribeSend FeedbackThe following figures show the header format for TLPs witho

Strany 193 - Root Port Reset

Figure A-3: Memory Read Request, 64-Bit AddressingMemory Read Request, 64-Bit Addressing3+2+1+0+7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5

Strany 194 - SDC Timing Constraints

Figure A-6: I/O Read RequestI/O Read Request3+2+1+0+7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0Byte 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0

Strany 195

Figure A-9: Completion Locked without DataCompletion Locked without Data3+2+1+0+7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0Byte 0

Strany 196 - Optional Features

Figure A-11: Memory Write Request, 64-Bit AddressingMemory Write Request, 64-Bit Addressing3+2+1+0+7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6

Strany 197 - ECRC on the RX Path

Figure A-14: Completion with DataCompletion with Data3+2+1+0+7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0Byte 0 0 1 0 0 1 0 1 0 0TC

Strany 198 - ECRC on the TX Path

Lane Initialization and ReversalB2014.12.15UG-01127_avstSubscribeSend FeedbackConnected components that include IP blocks for PCI Express need not sup

Strany 199

Figure B-1: Using Lane Reversal to Solve PCB Routing ProblemsThe following figure illustrates a PCI Express card with ×4 IP Root Port and a ×4 Endpoin

Strany 200

Additional InformationC2014.12.15UG-01127_avstSubscribeSend FeedbackRevision History for the Avalon-St InterfaceDate Version Changes Made2014.12.15 14

Strany 201 - Subscribe

Table 3-1: Parameters to Specify on the Generation Tab in QsysParameter ValueCreate testbench Qsys system Standard, BFMs for standard Avalon interface

Strany 202

Date Version Changes Made2014.06.30 14.0Added the following new features to the Arria V GZ Hard IP for PCIExpress:• Added parameters to enable 256 com

Strany 203

Date Version Changes Made• Added link to a Knowledge Base Solution that shows how toobserve the test_in bus for debugging.• Removed optional 125 MHz r

Strany 204

Date Version Changes Made2013.12.20 13.1 Made the following changes:• Divided user guide into 3 separate documents by interface type.• Added Design Im

Strany 205 - Testbench and Design Example

Date Version Changes Made2013.05.06 13.0 • Added support for Configuration Space Bypass Mode, allowingyou to design a custom Configuration Space and s

Strany 206

Contact (1)Contact Method AddressTechnical support Website www.altera.com/supportTechnical trainingWebsite www.altera.com/trainingEmail custrain@alte

Strany 207

Visual Cue Meaningitalic type Indicates variables. For example, n + 1.Variable names are enclosed in angle brackets (< >).For example, <file

Strany 208 - Chaining DMA Design Examples

Visual Cue Meaningm The multimedia icon directs you to a relatedmultimedia presentation.c A caution calls attention to a condition or possiblesituatio

Strany 209

Understanding Simulation Log File GenerationStarting with the Quartus II 14.0 software release, simulation automatically creates a log file, altpcie_m

Strany 210 - Hard IP for

Link Width×1 ×2 ×4 ×8PCI Express Gen3(8.0 Gbps)7.87 15.75 31.51 63Refer to the AN 690: PCI Express DMA Reference Design for Stratix V Devices for more

Strany 211

1. To observe the simulation, on the ModelSim View menu, select wave. Then add some key interfaces tothe wave window. The following four interfaces un

Strany 212

Figure 3-4: Configuration Read to Function 0RxStMask_oRxStSop_iRxStEop_iRxStValid_iRxStReady_oRxStData_i[255:0]cfg_addr_o[31:0]cfg_rden_ocfg_wren_ocfg

Strany 213 - BAR/Address Map

The preceding timing diagram illustrates the following sequence of events:1. The Application Layer indicates it is ready to receive requests by assert

Strany 214 - Memory BAR Mapping

Figure 3-5: Configuration Write to Function 0RxStMask_oRxStSop_iRxStEop_iRxStValid_iRxStReady_oRxStData_i[255:0cfg_addr_o[31:0]cfg_rden_ocfg_wren_cfg_

Strany 215 - Addr Register Name

Figure 3-6: Timing for Memory Write and Read of Function 1RxStMask_oRxStSop_iRxStEop_iRxStValid_iRxStReady_oTxStReady_iTxStSop_oTxStEop_oTxStValid_ or

Strany 216

The timing diagram illustrates the following sequence of events:1. The Application Layer indicates it is ready to receive requests by asserting RxSTRe

Strany 217

# INFO: 48089 ns RP LTSSM State: L0 # INFO: 48133 ns EP LTSSM State: L0 # INFO: 48226 ns Configuring Bus 000, Device 000, Function 00 # INFO: 48226 ns

Strany 218 - Descriptor Type Description

# INFO: 73354 ns TASK:my_test Memory write burst at addr=0x08# with wdata=0x10203040 # INFO: 73362 ns TASK:my_test => 2.21 Memory Read burst# INF

Strany 219 - RC Access Description

Parameter Settings42014.08.18UG-01127_avstSubscribeSend FeedbackSystem SettingsTable 4-1: System Settings for PCI ExpressParameter Value DescriptionNu

Strany 220 - Test Driver Module

Parameter Value DescriptionRX Buffer creditallocation -performance forreceived requestsMinimumLowBalancedHighMaximumDetermines the allocation of poste

Strany 221 - DMA Write Cycles

Table 1-2: Feature Comparison for all Hard IP for PCI Express IP CoresThe table compares the features of the four Hard IP for PCI Express IP Cores.Fea

Strany 222 - Shared Memory

Parameter Value Description• Minimum—configures the minimum PCIe specificationallowed for non-posted and posted request credits, leavingmost of the RX

Strany 223 - DMA Read Cycles

Parameter Value DescriptionReference clockfrequency100 MHz125 MHzThe PCI Express Base Specification 3.0 requires a100 MHz ±300 ppm reference clock. Th

Strany 224 - Registers (BAR2)

Parameter Value DescriptionEnable configu‐ration via PCIExpress (CvP)On/Off When On, the Quartus II software places the Endpoint in thelocation requir

Strany 225 - Root Port Design Example

Table 4-2: BAR RegistersParameter Value DescriptionType Disabled64-bit prefetchable memory32-bit non-prefetchable memory32-bit prefetchable memoryI/O

Strany 226 - (variation_name.v)

Base and Limit Registers for Root PortsTable 4-3: Base and Limit RegistersThe following table describes the Base and Limit registers which are availab

Strany 227 - Root Port BFM

Register Name Range Default Value DescriptionClass code 24 bits 0x00000000 Sets the read-only value of the Class Code register.Address offset: 0x008.S

Strany 228 - BFM Request Interface

Parameter Possible Values Default Value DescriptionNumber ofTagssupported326432 Indicates the number of tags supported for non-postedrequests transmit

Strany 229 - BFM Memory Map

Parameter Possible Values Default Value Description• 0111 Ranges A, B, and C• 1110 Ranges B, C and D• 1111 Ranges A, B, C, and DAll other values are r

Strany 230

Parameter Value Default Value DescriptionTrack RXcompletionbufferoverflow onthe Avalon-ST interfaceOn/Off Off When On, the core includes the rxfx_cplb

Strany 231 - Offset (Bytes) Description

MSI and MSI-X CapabilitiesTable 4-8: MSI and MSI-X Capabilities Parameter Value DescriptionMSI messagesrequested1, 2, 4, 8, 16, 32 Specifies the numbe

Strany 232

Feature Avalon‑ST Interface Avalon‑MMInterfaceAvalon‑MM DMA Avalon‑ST Interface with SR-IOVTransactionLayer Packettype (TLP) • Memory ReadRequest• Mem

Strany 233

Slot CapabilitiesTable 4-9: Slot Capabilities Parameter Value DescriptionUse Slot register On/Off The slot capability is required for Root Ports if a

Strany 234

Power ManagementTable 4-10: Power Management ParametersParameter Value DescriptionEndpoint L0sacceptablelatencyMaximum of 64 nsMaximum of 128 nsMaximu

Strany 235 - BFM Procedures and Functions

Vendor Specific Extended Capability (VSEC)Table 4-11: VSECParameter Value DescriptionUser ID registerfrom the VendorSepcific ExtendedCapabilityCustom

Strany 236 - Location altpcietb_bfm_rdwr.v

Interfaces and Signal Descriptions52014.12.15UG-01127_avstSubscribeSend FeedbackFigure 5-1: Avalon-ST Hard IP for PCI Express Top-Level Signalsrx_st_d

Strany 237 - Express address

Avalon‑ST RX InterfaceThe following table describes the signals that comprise the Avalon-ST RX Datapath. The RX data signalcan be 64, 128, or 256 bits

Strany 238

Signal Direction DescriptionFor 128-bit data, only bit 0 applies; this bit indicates whether theupper qword contains data. For 256-bit data single pac

Strany 239

Signal Direction Descriptionrx_st_valid Output Clocks rx_st_data into the Application Layer. Deasserts within2 clocks of rx_st_ready deassertion and

Strany 240

Signal Direction Descriptionrx_st_bar[7:0] Output The decoded BAR bits for the TLP. Valid for MRd, MWr, IOWR, andIORD TLPs. Ignored for the completion

Strany 241

Signal Direction Descriptionrx_st_be[<n>-1:0] Output Byte enables corresponding to the rx_st_data. The byte enablesignals only apply to PCI Expr

Strany 242

Data Alignment and Timing for the 64‑Bit Avalon‑ST RX InterfaceTo facilitate the interface to 64-bit memories, the Arria V GZ Hard IP for PCI Express

Strany 243

Feature Avalon‑ST Interface Avalon‑MMInterfaceAvalon‑MM DMA Avalon‑ST Interface with SR-IOVOut-of-ordercompletions(transparent tothe ApplicationLayer)

Strany 244 - Shared Memory Constants

Packet TLPData1 pcie_data_byte7, pcie_data_byte6, pcie_data_byte5, pcie_data_byte4Data2 pcie_data_byte11, pcie_data_byte10, pcie_data_byte9, pcie_data

Strany 245 - Constant Description

Figure 5-4: 64-Bit Avalon-ST rx_st_data<n> Cycle Definition for 3-Dword Header TLPs with QwordAligned AddressIn the following figure, rx_st_be[7

Strany 246

Figure 5-6: 64-Bit Avalon-ST rx_st_data<n> Cycle Definitions for 4-Dword Header TLPs with Non-Qword AddressesThe following figure shows the mapp

Strany 247

Figure 5-8: 4-Bit Avalon-ST Interface Back-to-Back TransmissionThe following figure illustrates back-to-back transmission on the 64-bit Avalon-ST RX i

Strany 248

Data Alignment and Timing for the 128‑Bit Avalon‑ST RX InterfaceFigure 5-9: 128-Bit Avalon-ST rx_st_data<n> Cycle Definition for 3-Dword Header

Strany 249

Figure 5-10: 128-Bit Avalon-ST rx_st_data<n> Cycle Definition for 3-Dword Header TLPs with non-Qword Aligned AddressesThe following figure shows

Strany 250 - Location

Figure 5-12: 128-Bit Avalon-ST rx_st_data Cycle Definition for 4-Dword Header TLPs with QwordAligned AddressesThe following figure shows the mapping o

Strany 251

Figure 5-14: 128-Bit Avalon-ST Interface Back-to-Back TransmissionThe following figure illustrates back-to-back transmission on the 128-bit Avalon-ST

Strany 252

Single packer per cycle mode requires simpler Application Layer packet decode logic on the TX and RXpaths because packets always start in the lower 12

Strany 253

Tradeoffs to Consider when Enabling Multiple Packets per CycleIf you enable Multiple Packets Per Cycle under the Systems Settings heading, a TLP can s

Strany 254

Release InformationTable 1-3: Hard IP for PCI Express Release InformationItem DescriptionVersion 14.1Release Date December 2014Ordering Codes No order

Strany 255

rx_st_sop[0]rx_st_eop[0]rx_st_sop[1]rx_st_eop[1]rx_st_data[255:0]rx_st_be[31:0]rx_st_bardec1[7:0]rx_st_bardec2[7:0]rx_st_empty[1:0]rx_st_errrx_st_mask

Strany 256

Table 5-4: 64-, 128-, or 256‑Bit Avalon-ST TX DatapathSignal Direction Descriptiontx_st_data[<n>-1:0]Input Data for transmission. Transmit data

Strany 257

Signal Direction Descriptiontx_st_ready Output Indicates that the Transaction Layer is ready to accept data fortransmission. The core deasserts this s

Strany 258

Signal Direction Descriptionwords that contain data, resulting in the following encodings forthe 128-and 256-bit interfaces:128-Bit interface:tx_st_em

Strany 259

Signal Direction Descriptiontx_st_errInput Indicates an error on transmitted TLP. This signal is used tonullify a packet. It should only be applied to

Strany 260

Signal Direction Descriptiontx_cred_fchipcons[5:0]Output Asserted for 1 cycle each time the Hard IP consumes a credit.These credits are from messages

Strany 261

Signal Direction Descriptionko_cpl_spc_header[7:0]Output The Application Layer can use this signal to build circuitry toprevent RX buffer overflow for

Strany 262 - Debugging Simulations

Data Alignment and Timing for the 64‑Bit Avalon‑ST TX InterfaceFigure 5-19:The following figure illustrates the mapping between Avalon-ST TX packets a

Strany 263 - Debugging

Data0 = {pcie_data_byte3, pcie_data_byte2, pcie_data_byte1, pcie_data_byte0}Data1 = {pcie_data_byte7, pcie_data_byte6, pcie_data_byte5, pcie_data_byte

Strany 264

Figure 5-24: 64-Bit Back-to-Back Transmission on the TX InterfaceThe following figure illustrates back-to-back transmission of 64-bit packets with no

Strany 265

ConfigurationsThe Arria V GZ Hard IP for PCI Express includes a full hard IP implementation of the PCI Express stackincluding the following layers:• P

Strany 266

Figure 5-26: 128-Bit Avalon-ST tx_st_data Cycle Definition for 3-Dword Header TLP with non-QwordAligned AddressThe following figure shows the mapping

Strany 267

Header 3 Data 2Header 2 Data 1Data nHeader 1 Data 0Data n-1Header 0Data n-2pld_clktx_st_validtx_st_data[127:96]tx_st_data[95:64]tx_st_data[63:32]tx_st

Strany 268

pld_clktx_st_data[127:0]tx_st_soptx_st_eoptx_st_emptytx_st_readytx_st_validtx_st_err000 CC... CC... CC... CC... CC... CC... CC... CC... CC... CC... CC

Strany 269 - Setting Up Simulation

Figure 5-31: 256-Bit Avalon-ST tx_st_data Cycle Definition for 3-Dword Header TLP with QwordAddressesThe following figure illustrates the layout of he

Strany 270 - BIOS Enumeration Issues

Figure 5-32: 256-Bit Avalon-ST tx_st_data Cycle Definition for 3-Dword Header TLP with QwordAddresses01 10clktx_st_data[63:0]Aligned Data Unaligned Da

Strany 271 - Address[31:2]

Related InformationTradeoffs to Consider when Enabling Multiple Packets per Cycle on page 5-17Root Port Mode Configuration RequestsIf your Application

Strany 272

Related InformationClocks on page 7-5Reset, Status, and Link Training SignalsRefer to Reset and Clocks for more information about the reset sequence a

Strany 273 - Figure A-6: I/O Read Request

Signal Direction DescriptionFor example, if you are using the Hard IP instance in the bottomleft corner of the device, you must connect pin_perst toNP

Strany 274

Signal Direction Descriptionpld_core_readyInput When asserted, indicates that the Application Layer is ready foroperation and is providing a stable cl

Strany 275

Signal Direction Descriptioncurrentspeed[1:0]Output Indicates the current speed of the PCIe link. The followingencodings are defined:• 2b’00: Undefine

Strany 276

PCIe LinkPCIe Hard IPRPSwitchPCIeHard IPRPUser ApplicationLogicPCIe Hard IPEPPCIe LinkPCIe LinkUser ApplicationLogicAltera FPGA Hard IP for PCI Expres

Strany 277 - Core Config 8 4 1

ECRC ForwardingOn the Avalon-ST interface, the ECRC field follows the same alignment rules as payload data. For packetswith payload, the ECRC is appen

Strany 278

Signal I/O DescriptionNotes:1. Debug signals are not rigorously verified and should only be used to observe behavior. Debug signalsshould not be used

Strany 279 - Additional Information

Interrupts for Root PortsTable 5-10: Interrupt Signals for Root PortsSignal Direction Descriptionint_status[3:0]Output These signals drive legacy inte

Strany 280 - Date Version Changes Made

Table 5-11: Completion Signals for the Avalon-ST InterfaceSignal DirectionDescriptioncpl_err[6:0]Input Completion error. This signal reports completio

Strany 281

Signal DirectionDescription• cpl_err[4]: Unsupported Request (UR) error for posted TLP.The Application Layer asserts this signal to treat a posted req

Strany 282

Parity SignalsYou enable parity checking by selecting Enable byte parity ports on the Avalon-ST interface under theSystem Settings heading of the para

Strany 283 - How to Contact Altera

Signal Name Direction Descriptioncfg_par_errOutput When asserted for a single cycle, indicates that a parity error wasdetected in a TLP that was route

Strany 284 - Typographic Conventions

Note: You can also use the Configuration Space signals to read Configuration Space registers. For moreinformation, refer to Transaction Layer Configur

Strany 285 - Visual Cue Meaning

Figure 5-37: LMI WriteOnly writeable configuration bits are overwritten by this operation. Read-only bits are not affected. LMIwrite operations are no

Strany 286

Signal Direction DescriptionInput • [0]: Attention button pressed. This signal should be assertedwhen the attention button is pressed. If no attention

Komentáře k této Příručce

Žádné komentáře