Altera Arria V Avalon-ST Instrukcja Użytkownika

Przeglądaj online lub pobierz Instrukcja Użytkownika dla Urządzenia pomiarowe Altera Arria V Avalon-ST. Altera Arria V Avalon-ST User Manual Instrukcja obsługi

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 248
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów

Podsumowanie treści

Strona 1 - User Guide

Arria V Avalon-ST Interface for PCIe SolutionsUser GuideLast updated for Altera Complete Design Suite: 14.1 Subscribe

Strona 2 - Datasheet

Figure 1-5: Example Design Preset Parameters• Targeted Device Family• Lanes• Lane Rate• Application Clock Rate• Port type• Application Interface• Tags

Strona 3 - Features

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

Strona 4

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

Strona 5 - Release Information

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

Strona 6 - Device Family Support

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

Strona 7 - Altera FPGA

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

Strona 8 - Arria V or Cyclone V FPGA

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

Strona 9

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

Strona 10 - Debug Features

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

Strona 11 - Recommended Speed Grades

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]

Strona 12

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

Strona 13

Related InformationDebugging on page 17-1IP Core VerificationTo ensure compliance with the PCI Express specification, Altera performs extensive verifi

Strona 14

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

Strona 15 - Qsys Design Flow

Bits Register Description Reset Value Access[4:2] Reserved. 0 RO[1] When set, the retry buffer correctable ECC error status indicatesan error.0 RW1CS[

Strona 16

Reset and Clocks62014.12.15SubscribeSend FeedbackThe pin_perst signal from the input pin of the FPGA resets the Hard IP for PCI Express IP Core.app_rs

Strona 17 - Simulating the Example Design

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

Strona 18 - Directory Description

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

Strona 19

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

Strona 20

For descriptions of the available reset signals, refer to Reset Signals, Status, and Link Training Signals.Related InformationHard IP Status on page 4

Strona 21 - Modifying the Example Design

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

Strona 22

Link Width Maximum Link Rate Avalon Interface Width coreclkout_hip×8 Gen1128125 MHz×1Gen2 64125 MHz×2Gen2 64125 MHz×4 Gen2 128 125 MHzpld_clkcoreclkou

Strona 23

Interrupts72014.12.15SubscribeSend FeedbackInterrupts for EndpointsThe Arria V Hard IP for PCI Express provides support for PCI Express MSI, MSI-X, an

Strona 24 - Parameter Settings

Table 1-5: Arria V Recommended Speed Grades for Link Widths and Application Layer Clock FrequenciesAltera recommends setting the Quartus II Analysis &

Strona 25 - Parameter Value Description

Figure 7-1: MSI Handler BlockMSI HandlerBlockapp_msi_reqapp_msi_ackapp_msi_tc[2:0]app_msi_num[4:0]app_msi_func[2:0]app_int_sts_vec[7:0]cfg_msicsr[15:0

Strona 26

There are 32 possible MSI messages. The number of messages requested by a particular component doesnot necessarily correspond to the number of message

Strona 27 - Link Capabilities

be deasserted before or within the same clock as app_msi_ack is deasserted to avoid inferring a newinterrupt.Figure 7-4: MSI Interrupt Signals Timingc

Strona 28 - Device Capabilities

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

Strona 29

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

Strona 30 - Error Reporting

Related InformationCorrespondence between Configuration Space Registers and the PCIe Specification on page 5-1Enabling MSI or Legacy InterruptsThe PCI

Strona 31 - Slot Capabilities

Error Handling82014.12.15SubscribeSend FeedbackEach PCI Express compliant device must implement a basic level of error management and can optionallyim

Strona 32 - Power Management

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

Strona 33

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

Strona 34 - <n>

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

Strona 35

supports ModelSim®-Altera for all IP. The PCIe cores support the Aldec RivieraPro, Cadence NCsim,Mentor Graphics ModelSim, and Synopsys VCS and VCS-MX

Strona 36

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

Strona 37 - Legacy Interrupt

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

Strona 38

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

Strona 39 - Avalon‑ST RX Interface

Figure 8-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

Strona 40 - Signal Direction Description

IP Core Architecture92014.12.15SubscribeSend FeedbackThe Arria V Hard IP for PCI Express implements the complete PCI Express protocol stack as defined

Strona 41

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

Strona 42

Related InformationPCI Express Base Specification 2.1 or 3.0Top-Level InterfacesAvalon-ST InterfaceAn Avalon-ST interface connects the Application Lay

Strona 43 - Packet TLP

Local Management Interface (LMI Interface)The LMI bus provides access to the PCI Express Configuration Space in the Transaction Layer.Related Informat

Strona 44

Transaction LayerThe Transaction Layer is located between the Application Layer and the Data Link Layer. It generates andreceives Transaction Layer Pa

Strona 45

Figure 9-2: Architecture of the Transaction Layer: Dedicated Receive BufferTransaction Layer TX DatapathTransaction Layer RX DatapathAvalon-STRX Contr

Strona 46

Getting Started with the Arria V Hard IP for PCIExpress22014.12.15SubscribeSend FeedbackThis section provides instructions to help you quickly customi

Strona 47 - Aligned Addresses

The Configuration Space also generates all messages (PME#, INT, error, slot power limit), MSI requests,and completion packets from configuration reque

Strona 48

Figure 9-3: Data Link LayerTo Transaction LayerTx Transaction LayerPacket Description & DataTransaction LayerPacket GeneratorRetry BufferTo Physic

Strona 49

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

Strona 50 - Avalon-ST TX Interface

Figure 9-4: Physical Layer ArchitectureScrambler8B10BEncoderLane nTX+ / TX-Scrambler8B10BEncoderLane 0TX+ / TX-Descrambler8B10BDecoderLane nRX+ / RX-E

Strona 51

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

Strona 52

PCI Express Base Specification 2.1. Examples of settings that require arbitration include the followingfeatures:• Link Control settings• Error detecti

Strona 53

Transaction Layer Protocol (TLP) Details102014.12.15SubscribeSend FeedbackSupported Message TypesINTX MessagesThe following table describes the messag

Strona 54

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

Strona 55

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

Strona 56

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

Strona 57

For a detailed explanation of this example design, refer to the Testbench and Design Example chapter. Ifyou choose the parameters specified in this ch

Strona 58

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

Strona 59

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

Strona 60

• 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

Strona 61 - Reset 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

Strona 62

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

Strona 63 - Hard IP Status

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

Strona 64

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

Strona 65

Throughput Optimization112014.12.15SubscribeSend FeedbackThe PCI Express Base Specification defines a flow control mechanism to ensure efficient trans

Strona 66 - ECRC Forwarding

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

Strona 67 - Interrupts for Endpoints

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

Strona 68 - Completion Side Band Signals

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

Strona 69 - Description

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

Strona 70

Design Implementation122014.12.15SubscribeSend FeedbackCompleting your design includes additional steps to specify analog properties, pin assignments,

Strona 71

You can also enter these commands at the Quartus II Tcl Console. For example, the following commandsets the XCVR_VCCR_VCCT_VOLTAGE to 1.0 V for the pi

Strona 72

Optional Features132014.12.15SubscribeSend FeedbackConfiguration via Protocol (CvP)The Hard IP for PCI Express architecture has an option to configure

Strona 73

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

Strona 74

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

Strona 75

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

Strona 76

Hard IP Reconfiguration142014.12.15SubscribeSend FeedbackThe Arria V Hard IP for PCI Express reconfiguration block allows you to dynamically change th

Strona 77

Transceiver PHY IP Reconfiguration152014.12.15SubscribeSend FeedbackAs silicon progresses towards smaller process nodes, circuit performance is affect

Strona 78 - 0134678951

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

Strona 79 - LMI Signals

Generating the TestbenchFollow these steps to generate the chaining DMA testbench:1. On the Generate menu, select Generate Testbench System. Specify t

Strona 80 - Hard IP for PCIe

number of logical interfaces by merging them. Allowing the Quartus II software to merge reconfi‐guration interfaces gives the Fitter more flexibility

Strona 81

Testbench and Design Example162014.12.15SubscribeSend FeedbackThis chapter introduces the Root Port or Endpoint design example including a testbench,

Strona 82 - Power Management Signals

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

Strona 83 - 15 011623 8 2791213142431

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

Strona 84 - Bits Field Description

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

Strona 85

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

Strona 86 - Serial Interface Signals

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

Strona 87 - 9 Ch 18 Ch

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

Strona 88 - Variant Data CMU Clock

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

Strona 89

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

Strona 90

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

Strona 91 - PIPE Interface Signals

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

Strona 92

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

Strona 93

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

Strona 94

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

Strona 95 - Test Signals

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

Strona 96

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

Strona 97

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

Strona 98

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

Strona 99

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

Strona 100 - Send Feedback

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

Strona 101 - 2014.12.15

Complete the following steps to create your Quartus II project:1. Click the New Project Wizard icon.2. Click Next in the New Project Wizard: Introduct

Strona 102

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

Strona 103

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

Strona 104 - Altera-Defined VSEC Registers

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

Strona 105 - CvP Registers

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

Strona 106

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

Strona 107

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

Strona 108

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

Strona 109 - Bits Register Description

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

Strona 110

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

Strona 111

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

Strona 112 - Reset and Clocks

Datasheet12014.12.15SubscribeSend FeedbackArria V Avalon-ST Interface for PCIe DatasheetAltera® Arria® V FPGAs include a configurable, hardened protoc

Strona 113 - Hard IP for PCI Express

# PHY IP reconfig controller constraints# Set reconfig_xcvr clock# Modify to match the actual clock pin name# used for this clock, and also changed to

Strona 114

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

Strona 115

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

Strona 116 - Clock Domains

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

Strona 117 - Related Information

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

Strona 118 - Clock Summary

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

Strona 119 - Interrupts

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

Strona 120 - Figure 7-1: MSI Handler Block

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

Strona 121 - Allocated

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

Strona 122 - Implementing MSI-X Interrupts

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

Strona 123

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

Strona 124 - Legacy Interrupts

Files Generated for Altera IP CoresFigure 2-3: IP Core Generated FilesThe Quartus II software generates the following output for your IP core.Notes:1.

Strona 125 - Interrupts for Root Ports

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

Strona 126 - Error Handling

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

Strona 127 - Data Link Layer Errors

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

Strona 128 - Transaction Layer Errors

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

Strona 129 - Error Type Description

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

Strona 130

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

Strona 131

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

Strona 132 - Status Bit Conditions

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

Strona 133

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

Strona 134 - IP Core Architecture

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

Strona 135 - Hard IP for PCI Express

Figure 2-4: Testbench for PCI ExpressPCB Avalon-MM slaveResetHard IP for PCI ExpressAltera FPGAPCB Transaction Layer Data Link LayerPHY MAC Layerx4 P

Strona 136 - Clocks and Reset

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

Strona 137 - Transceiver Reconfiguration

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

Strona 138 - Transaction Layer

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

Strona 139 - Configuration Space

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

Strona 140 - Data Link Layer

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

Strona 141

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

Strona 142 - Physical Layer

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

Strona 143 - TX Packets

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

Strona 144 - Multi-Function Support

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

Strona 145

Debugging172014.12.15SubscribeSend FeedbackAs you bring up your PCI Express system, you may face a number of issues related to FPGA configura‐tion, li

Strona 146 - INTX Messages

Note: Your design must include the Transceiver Reconfiguration Controller IP Core and the Altera PCIeReconfig Driver. Refer to the figure in the Qsys

Strona 147 - Power Management Messages

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

Strona 148 - Error Signaling Messages

Possible Causes Symptoms and Root Causes Workarounds and SolutionsFlow control creditoverflowsDetermine if the credit fieldassociated with the current

Strona 149 - Vendor-Defined Messages

Possible Causes Symptoms and Root Causes Workarounds and SolutionsInsufficient Postedcredits released byRoot PortIf a Memory Write TLP istransmitted w

Strona 150 - Hot Plug Messages

altpcie_<dev>_hip_ast_hwtcl #( .enable_pipe32_sim_hwtcl ( 1 ),Using the PIPE Interface for Gen1 and Gen2 VariantsRunning the simulation in PIPE

Strona 151

Use Third-Party PCIe AnalyzerA third-party logic analyzer for PCI Express records the traffic on the physical link and decodes traffic,saving you the

Strona 152 - Receive Buffer Reordering

Transaction Layer Packet (TLP) Header FormatsA2014.12.15SubscribeSend FeedbackThe following figures show the header format for TLPs without a data pay

Strona 153

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

Strona 154 - Using Relaxed Ordering

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

Strona 155

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

Strona 156

Figure A-12: Configuration Write Request Root Port (Type 1)Configuration Write Request Root Port (Type 1)3+2+1+0+7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5

Strona 157 - Throughput Optimization

Parameter Settings32014.12.15SubscribeSend FeedbackAvalon-ST System SettingsTable 3-1: System Settings for PCI ExpressParameter Value DescriptionNumbe

Strona 158

Figure A-15: Completion Locked with DataCompletion Locked 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

Strona 159 - Throughput of Posted Writes

Lane Initialization and ReversalB2014.12.15SubscribeSend FeedbackConnected components that include IP blocks for PCI Express need not support the same

Strona 160

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

Strona 161 - Design Implementation

Additional InformationC2014.12.15SubscribeSend FeedbackRevision History for the Avalon-St InterfaceDate Version Changes Made2014.12.15 14.1 Made the f

Strona 162 - Making Pin Assignments

Date Version Changes MadeMade the following changes to the user guide:• Created separate user guides for variants using the Avalon-MM,Avalon-ST, and A

Strona 163 - Optional Features

Date Version Changes Made• Removed references to the ATX PLL. This PLL is not available forArria V• Removed soft reset controller .sdc constraints fro

Strona 164 - ECRC on the RX Path

Date Version Changes Made• Timing models are now final.• Added instructions for running the Single Dword variant.• Corrected definition of test_in[4:1

Strona 165 - ECRC on the TX Path

Typographic ConventionsThe following table shows the typographic conventions this document uses.Table C-1: Visual CueMeaningVisual Cue MeaningBold Typ

Strona 166

Visual Cue Meaningr An angled arrow instructs you to press the Enterkey.1., 2., 3., anda., b., c., and so on Numbered steps indicate a list of items w

Strona 167

Parameter Value DescriptionApplicationInterfaceAvalon-ST 64-bitAvalon-ST 128-bitSpecifies the width of the Avalon-ST interface between theApplication

Strona 168 - Subscribe

Parameter Value Description• Minimum RX Buffer credit allocation -performance forreceived requests–This setting configures the minimumPCIe specificati

Strona 169

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

Strona 170

Parameter Value DescriptionSlot clockconfigurationOn/Off When On, indicates that the Endpoint or Root Port uses thesame physical reference clock that

Strona 171 - Testbench and Design Example

Parameter Possible Values Default Value DescriptionABBANoneRoot Ports and Endpoints that issue requests on theirown behalf. Completion timeouts are sp

Strona 172

Related Information• PCI Express Base Specification 2.1 or 3.0• PCI Express High Performance Reference Design• Creating a System with QsysFeaturesNew

Strona 173

Error ReportingTable 3-4: Error ReportingParameter Value Default Value DescriptionAdvancederrorreporting(AER) On/Off Off When On, enables the Advanced

Strona 174 - Chaining DMA Design Examples

Parameter Value DescriptionSlot clockconfigurationOn/Off When On, indicates that the Endpoint or Root Port uses thesame physical reference clock that

Strona 175

Parameter Value DescriptionSlot number0-8191Specifies the slot number.Related InformationPCI Express Base Specification Revision 2.1 or 3.0Power Manag

Strona 176 - PCI Express

Port Function Parameters Defined Separately for All Port FunctionsBase Address Register (BAR) and Expansion ROM SettingsThe type and size of BARs avai

Strona 177

Base and Limit Registers for Root PortsTable 3-9: Base and Limit Registers for Function 0The following table describes the Base and Limit registers wh

Strona 178

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

Strona 179 - BAR/Address Map

Parameter Value DescriptionBit RangeTable size [10:0] System software reads this field to determine the MSI-X Tablesize <n>, which is encoded as

Strona 180 - Memory BAR Mapping

Func <n> Legacy InterruptTable 3-13: Func <n> Legacy InterruptParameter Value DescriptionLegacy Interrupt(INTx)INTAINTBINTCINTDNoneWhen se

Strona 181 - Addr Register Name

Interfaces and Signal Descriptions42014.12.15SubscribeSend FeedbackFigure 4-1: Avalon-ST Hard IP for PCI Express Top-Level Signalsrx_st_data[63:0], [1

Strona 182

Related Information• Features on page 1-2• Qsys Design Flow on page 2-2Arria V Hard IP for PCI Express with Avalon-ST Interface to theApplication Laye

Strona 183

Feature Avalon‑ST Interface Avalon‑MM Interface Avalon‑MM DMAGen1 ×1, ×2, ×4, ×8 ×1, ×2, ×4, ×8 x8Gen2 ×1, ×2, ×4 ×1, ×2, ×4 ×464-bit ApplicationLayer

Strona 184 - Descriptor Type Description

Signal Direction Descriptionrx_st_ready Input Indicates that the Application Layer is ready to accept data. TheApplication Layer deasserts this signa

Strona 185 - RC Access Description

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

Strona 186 - Test Driver Module

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

Strona 187 - DMA Write Cycles

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

Strona 188 - Shared Memory

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

Strona 189 - DMA Read Cycles

Figure 4-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

Strona 190 - Registers (BAR2)

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

Strona 191 - Root Port Design Example

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

Strona 192 - (variation_name.v)

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

Strona 193 - Root Port BFM

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

Strona 194 - BFM Request Interface

Feature Avalon‑ST Interface Avalon‑MM Interface Avalon‑MM DMARequests that cross 4KByte addressboundary (transparentto the ApplicationLayer)Not suppor

Strona 195 - BFM Memory Map

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

Strona 196

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

Strona 197 - Offset (Bytes) Description

Signal Direction Descriptiontx_st_valid Input Clocks tx_st_data to the core when tx_st_ready is alsoasserted. Between tx_st_sop and tx_st_eop, tx_st_v

Strona 198

Signal Direction Descriptiontx_cred_datafcp[11:0]Output Data credit limit for the FC posted writes. Each credit is 16 bytes.tx_cred_fchipcons[5:0]Outp

Strona 199

Signal Direction Descriptiontx_cred_hdrfcp[7:0]O Header credit limit for the FC posted writes. Each credit is 20bytes.ko_cpl_spc_header[7:0]Output The

Strona 200

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

Strona 201 - BFM Procedures and Functions

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

Strona 202 - Location altpcietb_bfm_rdwr.v

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

Strona 203 - Express address

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

Strona 204

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

Strona 205

Item DescriptionOrdering Codes No ordering code is requiredProduct IDs There are no encrypted files for the Arria V Hard IPfor PCI Express. The Produc

Strona 206

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

Strona 207

Clock SignalsTable 4-5: Clock SignalsSignal Direction DescriptionrefclkInput Reference clock for the IP core. It must have the frequencyspecified unde

Strona 208

Table 4-6: Reset SignalsSignal Direction DescriptionnporInput Active low reset signal. In the Altera hardware example designs,npor is the OR of pin_pe

Strona 209

Signal Direction Descriptioneven if the VVCCPGM of the bank is not 3.3V if the following 2conditions are met:• The input signal meets the VIH and VIL

Strona 210 - Shared Memory Constants

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

Strona 211 - Constant Description

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

Strona 212

Error SignalsThe following table describes the ECC error signals. These signals are all valid for one clock cycle. Theyare synchronous to coreclkout_h

Strona 213

Interrupts for EndpointsRefer to Interrupts for detailed information about all interrupt mechanisms.Table 4-9: Interrupt Signals for EndpointsSignal D

Strona 214

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

Strona 215

appropriate completion status value for non-posted requests. Refer to Error Handling for information onerrors that are automatically detected and hand

Strona 216 - Location

ConfigurationsThe Arria V Hard IP for PCI Express includes a full hard IP implementation of the PCI Express stackcomprising the following layers:• Phy

Strona 217

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

Strona 218

Related InformationTransaction Layer Errors on page 8-3Transaction Layer Configuration Space SignalsTable 4-12: Configuration Space SignalsThese signa

Strona 219

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

Strona 220

tl_cfg_sts Configuration Space Register Description[58:54] Func1[68:64] Func2[78:74] Func3[88:84] Func4[98:94] Func5[108:104] Func6[118:114] Func7Link

Strona 221

tl_cfg_sts Configuration Space Register Description[30] Link Status 2 Reg[0] Current de-emphasis level.[29:25] Status Reg[15:11] Records the following

Strona 222

Configuration Space Register AccessThe tl_cfg_ctl signal is a multiplexed bus that contains the contents of Configuration Space registers asshown in t

Strona 223

Register Width Direction Descriptioncfg_slot_ctrl16 Output cfg_slot_ctrl[15:0] is the Slot Status of the PCIExpress capability structure. This registe

Strona 224

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

Strona 225

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

Strona 226

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

Strona 227

Figure 1-3: PCI Express Application with an Endpoint Using the Multi-Function CapabilityThe following figure shows a PCI Express link between two Alte

Strona 228 - Debugging Simulations

Figure 4-30: Local Management InterfaceConfiguration Space128 32-bit registers(4 KBytes)LMI32lmi_doutlmi_ack15lmi_addr32lmi_dinlmi_rdenlmi_wrenpld_clk

Strona 229 - Debugging

Signal Direction Descriptionlmi_rdenInput Read enable input.lmi_wrenInput Write enable input.lmi_ackOutput Write execution done/read data valid.lmi_ad

Strona 230

Power Management SignalsTable 4-17: Power Management SignalsSignal Direction Descriptionpme_to_crInput Power management turn off control register.Root

Strona 231

Signal Direction Descriptionpm_data[9:0]Input Power Management Data.This bus indicates power consumption of the component. Thisbus can only be impleme

Strona 232 - Setting Up Simulation

Bits Field Description[15]PME_statusWhen set to 1, indicates that the function would normally assertthe PME# message independently of the state of the

Strona 233

Transceiver ReconfigurationDynamic reconfiguration compensates for variations due to process, voltage and temperature (PVT).Among the analog settings

Strona 234 - BIOS Enumeration Issues

Serial Interface SignalsTable 4-21: Serial Interface SignalsIn the following table, <n> = 1, 2, 4, or 8.Signal Direction Descriptiontx_out[<n

Strona 235 - Address[31:2]

Figure 4-35: Arria V Transceiver Bank and Hard IP for PCI Express IP Core Locations in Arria V GX and GTDevicesCh5Ch4Ch3Ch2Ch1Ch0Ch5Ch4Ch3Ch2Ch1Ch0Ch5

Strona 236

Figure 4-36: Arria V Transceiver Bank and Hard IP for PCI Express IP Core Locations in Arria V SX and STDevicesCh5Ch4Ch3Ch2Ch1Ch0Ch5Ch4Ch3Ch2Ch1Ch0Ch5

Strona 237 - Figure A-6: I/O Read Request

For more comprehensive information about Arria V transceivers, refer to the Transceiver Banks section inthe Transceiver Architecture in Arria V Device

Strona 238

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

Strona 239

Table 4-23: Hard IP Reconfiguration SignalsSignal Direction Descriptionhip_reconfig_clkInputhip_reconfig_rst_nInput Active-low Avalon-MM reset. Resets

Strona 240

Figure 4-38: Hard IP Reconfiguration Bus Timing of Read-Only Registersavmm_clkhip_reconfig_rst_nuser_modeser_shift_loadinterface_selavmm_wravmm_wrdata

Strona 241 - Core Config 8 4 1

Signal Direction Descriptiontxdetectrx0 Output Transmit detect receive <n>. This signal tells the PHY layer tostart a receive detection operatio

Strona 242

Signal Direction Descriptionrxelecidle0 (1)Input Receive electrical idle <n>. When asserted, indicates detection ofan electrical idle.rxstatus0[

Strona 243 - Additional Information

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 (

Strona 244 - Date Version Changes Made

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

Strona 245

Registers52014.12.15SubscribeSend FeedbackCorrespondence between Configuration Space Registers and the PCIeSpecificationTable 5-1: Correspondence betw

Strona 246 - How to Contact Altera

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

Strona 247 - Typographic Conventions

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

Strona 248 - Visual Cue Meaning

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

Powiązane modele: Cyclone V Avalon-ST

Komentarze do niniejszej Instrukcji

Brak uwag