Altera Arria 10 Avalon-MM Uživatelský manuál

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

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

Shrnutí obsahu

Strany 1 - Solutions

Arria 10 Avalon-MM Interface for PCIeSolutionsUser GuideLast updated for Altera Complete Design Suite: 15.0SubscribeSend FeedbackUG-01145_avmm2015.05.

Strany 2 - Contents

Feature Avalon-ST Interface Avalon-MMInterfaceAvalon-MM DMA Avalon-ST Interface with SR-IOVAutomaticallyhandle out-of-ordercompletions(transparent tot

Strany 3

Bits Register Description Reset Value Access[6] Mask for Corrected Internal Error reported by the ApplicationLayer.1 RWS[5] Mask for configuration err

Strany 4

Arria 10 Reset and Clocks72015.05.14UG-01145_avmmSubscribeSend FeedbackFigure 7-1: Reset Controller in Arria 10 DevicesExample Designaltpcied_<dev&

Strany 5

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 6

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

Strany 7 - Datasheet

For descriptions of the available reset signals, refer to Reset Signals, Status, and Link Training Signals.ClocksThe Hard IP contains a clock domain c

Strany 8 - Features

As this figure indicates, the IP core includes the following clock domains:coreclkout_hipTable 7-1: Application Layer Clock Frequency for All Combinat

Strany 9 - Interface

Link Width Maximum Link Rate Avalon Interface Width coreclkout_hip×4 Gen3 256 125 MHz×8 Gen3 256 250 MHzpld_clkcoreclkout_hip can drive the Applicatio

Strany 10 - 2015.05.14

Interrupts for Endpoints82015.05.14UG-01145_avmmSubscribeSend FeedbackThe PCI Express Avalon-MM bridge supports MSI or legacy interrupts. The complete

Strany 11

Figure 8-1: Avalon-MM Interrupt Propagation to the PCI Express LinkInterrupt Disable(Configuration Space Command Register [10])Avalon-MM-to-PCI-Expres

Strany 12 - Release Information

Generation of Avalon-MM InterruptsThe generation of Avalon-MM interrupts requires the instantiation of the CRA slave module where theinterrupt registe

Strany 13 - Configurations

Transaction LayerPacket type (TLP)(transmit support)Avalon-ST Interface Avalon-MMInterfaceAvalon-MM DMA Avalon-ST Interface with SR-IOVMemory ReadLock

Strany 14 - Altera FPGA

Figure 8-2: Block Diagram for Custom Interrupt HandlerMSMSI/MSI-X IRQMSI-X Table EntriesSQsysInterconnectSMPCIe-Avalon-MMBridgeHardIP forPCIeMSI orMSI

Strany 15

Error Handling92015.05.14UG-01145_avmmSubscribeSend FeedbackEach PCI Express compliant device must implement a basic level of error management and can

Strany 16 - IP Core Verification

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

Strany 17 - Recommended Speed Grades

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

Strany 18

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 19 - Hard IP for PCI Express

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

Strany 20 - Running Qsys

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 21 - Generating the Example Design

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 22

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 23 - TLP Header

IP Core Architecture102015.05.14UG-01145_avmmSubscribeSend FeedbackThe Avalon-MM Arria 10 Hard IP for PCI Express implements the complete PCI Express

Strany 24 - Creating a Quartus II Project

Transaction LayerPacket type (TLP)(transmit support)Avalon-ST Interface Avalon-MMInterfaceAvalon-MM DMA Avalon-ST Interface with SR-IOVFetch and AddAt

Strany 25 - Programming a Device

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

Strany 26

Top-Level InterfacesAvalon-MM InterfaceAn Avalon-MM interface connects the Application Layer and the Transaction Layer. The Avalon-MMinterface impleme

Strany 27 - Parameter Settings

Related InformationPIPE Interface Signals on page 5-14Data Link LayerThe Data Link Layer is located between the Transaction Layer and the Physical Lay

Strany 28 - Parameter Value Description

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

Strany 29

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

Strany 30 - Interface System Settings

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

Strany 31

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 32

The Avalon-MM bridge provides three possible Avalon-MM ports: a bursting master, an optionalbursting slave, and an optional non-bursting slave. The Av

Strany 33

Figure 10-4: PCI Express Avalon-MM BridgeTransaction LayerPCI ExpressTx ControllerPCI ExpressRx ControllerData Link LayerPhysical LayerPCI Express Meg

Strany 34 - Device Capabilities

Related InformationAvalon-MM RX Master Block on page 10-20Avalon‑MM Bridge TLPsThe PCI Express to Avalon-MM bridge translates the PCI Express read, wr

Strany 35 - Error Reporting

Device Family SupportTable 1-5: Device Family SupportDevice Family SupportArria 10Preliminary. The IP core is verified with prelimi‐nary timing models

Strany 36 - Link Capabilities

PCI Express-to-Avalon-MM Read CompletionsThe PCI Express Avalon-MM bridge returns read completion packets to the initiating Avalon-MMmaster in the iss

Strany 37 - MSI and MSI-X Capabilities

Related InformationMinimizing BAR Sizes and the PCIe Address Space on page 10-15Avalon-MM-to-PCI Express Read CompletionsThe PCI Express Avalon-MM bri

Strany 38 - Slot Capabilities

Figure 10-5: Address Translation in TX and RX Directions For EndpointsTransaction,Data Link,and PHYDMAAvalon-MM32-Bit Byte AddressAvalon-MM32-Bit Byte

Strany 39 - Power Management

Minimizing BAR Sizes and the PCIe Address SpaceFor designs that include multiple BARs, you may need to modify the base address assignmentsauto-assigne

Strany 40

Figure 10-6: Qsys System for PCI Express with Poor Address Space UtilizationThe following figure uses a filter to hide the Conduit interfaces that are

Strany 41

This design is consuming 1.25 GB of PCIe address space when only 276 MBytes are actually required. Thesolution is to edit the address map to place the

Strany 42

Sp[1:0], that specifies 32-bit or 64-bit PCI Express addressing for the translated address. The mostsignificant bits of the Avalon-MM address are used

Strany 43

Figure 10-10: Avalon-MM-to-PCI Express Address TranslationThe following figure depicts the Avalon-MM-to-PCI Express address translation process. In th

Strany 44

Figure 10-11: Qsys Design Including Completer Only Single Dword Endpoint for PCI ExpressQsys SystemPCI ExpressRoot ComplexPCIe Linkto HostCPUAvalon-MM

Strany 45

TX BlockThe TX block sends completion information to the Avalon-MM Hard IP for PCI Express which sends thisinformation to the root complex. The TX com

Strany 46

Figure 1-2: PCI Express Application with a Single Root Port and EndpointThe following figure shows a PCI Express link between two Arria 10 FPGAs.Alter

Strany 47

According to the PCI Express Base Specification, if MSI_enable=0 and the Disable Legacy Interruptbit=1 in the Configuration Space Command register (0x

Strany 48 - Application Layer

Design Implementation112015.05.14UG-01145_avmmSubscribeSend FeedbackCompleting your design includes additional steps to specify analog properties, pin

Strany 49

entering user mode. Link training occurs after calibration. Refer to Reset Sequence for Hard IP for PCIExpress IP Core and Application Layer for a des

Strany 50 - RX Avalon-MM Master Signals

Throughput Optimization122015.05.14UG-01145_avmmSubscribeSend FeedbackThe PCI Express Base Specification defines a flow control mechanism to ensure ef

Strany 51

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

Strany 52

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 53

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

Strany 54

Optional Features132015.05.14UG-01145_avmmSubscribeSend FeedbackConfiguration via Protocol (CvP)The Hard IP for PCI Express architecture has an option

Strany 55 - Clock Signals

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

Strany 56 - Signal Direction Description

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

Strany 57

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

Strany 58

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

Strany 59

Avalon-MM Testbench and Design Example142015.05.14UG-01145_avmmSubscribeSend FeedbackThis chapter introduces the Root Port or Endpoint design example

Strany 60 - Serial Data 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

Strany 61 - PIPE Interface Signals

Figure 14-1: Design Example for Endpoint DesignsAPPHard IP for PCI Express Testbench for EndpointsAvalon-MMresetAvalon-MMresetDUT<instance_name>

Strany 62

Arria 10 Avalon-MM Root Port TestbenchThis testbench simulates up to an ×8 PCI Express link using either the PIPE interfaces or the serial PCIExpress

Strany 63

Note: The DMA design example requires setting BAR 2 or BAR 3 to a minimum of 256 bytes. To run theDMA tests using MSI, you must set the Number of MSI

Strany 64

The block diagram contains the following elements:• The DMA design example connects to the Avalon-MM interface of the Arria 10 Hard IP for PCIExpress.

Strany 65

these blocks to maximize interoperability with different variation files. The following table shows themapping.Table 14-1: BAR MapMemory BAR Mapping32

Strany 66 - Test Signals

• The DMA issues an MSI when the last descriptor has completed.• The data written back to BFM is checked against the data that was read from the BFM.•

Strany 67 - Registers

Offset in BFMShared MemoryValue DescriptionDW2 0x828 0 BFM shared memory data buffer 1 upper address valueDW3 0x82c 0x2800 BFM shared memory data buff

Strany 68

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

Strany 69

Offset in DMAControl Register(BAR2)Value DescriptionDW3 0xc 2 Last valid descriptorAfter writing the last dword, DW3, of the descriptor header, the DM

Strany 70

Offset in BFMShared MemoryValue DescriptionDW2 0x928 10 BFM shared memory data buffer 1 upper address valueDW3 0x92c 0x10900 BFM shared memory data bu

Strany 71

Offset in DMA ControlRegisters (BAR2)Value DescriptionDW3 0x1c 2 Last descriptor writtenAfter writing the last dword of the Descriptor header (DW3), t

Strany 72

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

Strany 73

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 74

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

Strany 75 - Altera-Defined VSEC Registers

• 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 76 - CvP Registers

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 77

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 78

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

Strany 79

Interface Width ALMs M20K Memory Blocks Logic Registers128 1900 25 2900Avalon-MM Interface–Completer Only64 650 8 1000128 1400 12 2400Avalon-MM–Comple

Strany 80 - Address Range Register

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

Strany 81 - Bit Name Access Description

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

Strany 82 - Bits Name Access Description

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 83 - PCI Express Mailbox Registers

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

Strany 84

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

Strany 85

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

Strany 86

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

Strany 87 - Avalon-MM Mailbox Registers

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 88 - Register Dir Description

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 89

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 90

for all IP. The PCIe cores support the Aldec RivieraPro, Cadence NCsim, Mentor Graphics ModelSim,and Synopsys VCS and VCS-MX simulators.3. Compile you

Strany 91

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

Strany 92

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

Strany 93 - Sending a Write TLP

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

Strany 94 - Bits Name Access

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 95 - Root Port TLP Data Registers

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

Strany 96

Table 14-12: Log MessagesConstant(MessageType)Description Mask BitNoDisplayby DefaultSimulationStops byDefaultMessagePrefixEBFM_MSG_DEBUGSpecifies deb

Strany 97

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

Strany 98 - Bits Register Description

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 99

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

Strany 100 - Related Information

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

Strany 101 - Arria 10 Reset and Clocks

Getting Started with the Avalon‑MM Arria 10Hard IP for PCI Express22015.05.14UG-01145_avmmSubscribeSend FeedbackThis Qsys design example provides deta

Strany 102

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

Strany 103

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

Strany 104 - Clock Domains

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

Strany 105

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

Strany 106 - Clock Summary

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 107 - Interrupts for Endpoints

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 108

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 109 - MSI/MSI-X Support

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

Strany 110 - IntxAck_o

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

Strany 111 - Error Handling

Related InformationBFM Log and Message Procedures on page 14-34Setting Up SimulationChanging the simulation parameters reduces simulation time and pro

Strany 112 - Data Link Layer Errors

ContentsDatasheet... 1-1Arria 10 Avalon-MM I

Strany 113 - Transaction Layer Errors

• Creating a System with QsysThis document provides an introduction to Qsys.Running Qsys1. Choose Programs > Altera > Quartus II><version

Strany 114 - Error Type Description

Complete the following steps to disable the scrambler:1. Open <work_dir>/<variant>/testbench/<variant>_tb/simulation/submodules/altp

Strany 115

Debugging152015.05.14UG-01145_avmmSubscribeSend FeedbackAs you bring up your PCI Express system, you may face a number of issues related to FPGA confi

Strany 116

The following sections, describe how to debug the hardware bring-up flow. Altera recommends asystematic approach to diagnosing bring-up issues as illu

Strany 117 - Status Bit Conditions

BIOS Enumeration IssuesBoth FPGA programming (configuration) and the initialization of a PCIe link require time. Potentially,an Altera FPGA including

Strany 118 - Send Feedback

Frequently Asked QuestionsA2015.05.14UG-01145_avmmSubscribeSend FeedbackThe following miscellaneous facts might be of assistance in troubleshooting:•

Strany 119 - IP Core Architecture

Lane Initialization and ReversalB2015.05.14UG-01145_avmmSubscribeSend FeedbackConnected components that include IP blocks for PCI Express need not sup

Strany 120 - Hard IP for PCI Express

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 121 - Interrupts

Additional InformationC2015.05.14UG-01145_avmmSubscribeSend FeedbackRevision History for the Avalon-MM InterfaceDate Version Changes Made2015.05.14 15

Strany 122 - Data Link Layer

Date Version Changes Made• Removed list of static example designs from Example Designs onpage 1-9. You can derive the list from the installation direc

Strany 123

Date Version Changes Made• Added simulation support for Phase 2 and Phase 3 equalizationwhen requested by third-party BFM.• Added restrictions on the

Strany 124 - Physical Layer

Generating the Example Design1. On the Generate menu, select Generate Testbench System. The Generation dialog box appears.2. Under Testbench System, s

Strany 125 - TX Packets

Date Version Changes Made• Removed discussion of pclk. This clock is not customer accessiblein Arria 10 devices.• Removed PLL from channel placement f

Strany 126

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

Strany 127

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

Strany 128

The driver performs the following transactions with status of the transactions displayed in the ModelSimsimulation message window:1. Various configura

Strany 129 - Avalon‑MM Bridge TLPs

Related InformationSimulating Altera DesignsUnderstanding Simulation Log File GenerationStarting with the Quartus II 14.0 software release, simulat

Strany 130 - Byte Enable Value Description

a. do msim_setup.tclb. ld_debug (The debug suffix stops optimizations, improving visibility in the ModelSim waveforms.)c. run 140000 nsGenerating Quar

Strany 131

Adding Virtual Pin Assignment to the Quartus II Settings File (.qsf)To compile successfully you must add a virtual pin assignment statement for the PI

Strany 132 - PCI Express Avalon-MM Bridge

Related Information• Channel Placement and fPLL Usage for the Gen1 and Gen2 Data Rates on page 4-5• Channel Placement and fPLL and ATX PLL Usage for t

Strany 133

Parameter Settings32015.05.14UG-01145_avmmSubscribeSend FeedbackArria 10 Avalon-MM System SettingsTable 3-1: System Settings for PCI ExpressParameter

Strany 134

Parameter Value DescriptionHighMaximum100 MHzoptimize your system. The credit allocation for the selectedsetting displays in the message pane.Refer to

Strany 135

Parameter Value DescriptionEnable multiplepackets per cyclefor the 256-bitinterfaceOn/Off When On, the 256-bit Avalon-ST interface supports thetransmi

Strany 136

Physical Layout of Hard IP In Arria 10 Devices...4-1Channel and Pin Placement for the Gen1, Gen2, and Ge

Strany 137

Interface System SettingsTable 3-2: Interface System SettingsParameter Value DescriptionApplication Interfacewidth64-bit128-bit256-bitSpecifies the da

Strany 138 - Avalon-MM RX Master Block

Parameter Value DescriptionEnable control registeraccess (CRA) Avalon-MMslave portOn/OffAllows read and write access to bridge registers from theinter

Strany 139 - Interrupt Handler Block

Parameter Value DescriptionSize of address pages 4 KByte–4GByte Sets the size of the PCI Express system pages. All pagesmust be the same size. This pa

Strany 140

Device Identification RegistersTable 3-4: Device ID RegistersThe following table lists the default values of the read-only Device ID registers. You ca

Strany 141 - Design Implementation

PCI Express and PCI Capabilities ParametersThis group of parameters defines various capability properties of the IP core. Some of these parametersare

Strany 142 - SDC Timing Constraints

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 143 - Throughput Optimization

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

Strany 144

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

Strany 145 - Throughput of Posted Writes

Parameter Value DescriptionPending BARIndicator[2:0] Specifies the function Base Address registers, locatedbeginning at 0x10 in Configuration Space, t

Strany 146

Parameter Value DescriptionSlot power limit0–255In combination with the Slot power scale value, specifies the upperlimit in watts on power supplied by

Strany 147 - Optional Features

Enabling MSI or Legacy Interrupts ... 8-2Genera

Strany 148 - ECRC on the RX Path

Physical Layout of Hard IP In Arria 10 Devices42015.05.14UG-01145_avmmSubscribeSend FeedbackArria 10 devices include 1–4 hard IP blocks for PCI Expres

Strany 149 - ECRC on the TX Path

Figure 4-2: Arria 10 Devices with 72 Transceiver Channels and Four PCIe Hard IP BlocksTransceiverBankTransceiverBankTransceiverBankTransceiverBankTran

Strany 150 - TLP on Link Comments

Figure 4-3: Arria 10 GT Devices with 48 Transceiver Channels and Two PCIe Hard IP BlocksTransceiverBankTransceiverBankTransceiverBankTransceiverBankTr

Strany 151 - Subscribe

Channel and Pin Placement for the Gen1, Gen2, and Gen3 Data RatesThe following figures illustrate the x1, x2, x4, and x8 channel and pin placements fo

Strany 152

Figure 4-6: Arria 10 Gen1, Gen2, and Gen3 x4 Channel and Pin PlacementPMA Channel 5PMA Channel 4PMA Channel 3PMA Channel 0PMA Channel 3PMA Channel 2

Strany 153

Figure 4-8: Arria 10 Gen1 and Gen2 x1 Channel PlacementPMA Channel 5PMA Channel 4PMA Channel 3PMA Channel 2PMA Channel 0PMA Channel 3PMA Channel 2PM

Strany 154 - Endpoint Design Example

Figure 4-11: Gen1 and Gen2 x8 Channel PlacementPMA Channel 5PMA Channel 4PMA Channel 3PMA Channel 0PMA Channel 3PMA Channel 2PMA Channel 1PMA Channe

Strany 155 - Arria 10 Hard IP

Figure 4-13: Arria 10 Gen3 x2 Channel PlacementPMA Channel 5PMA Channel 4PMA Channel 3PMA Channel 0PMA Channel 4PMA Channel 3PMA Channel 2PMA Channe

Strany 156 - BAR/Address Map

64- or 128-Bit Avalon-MM Interface to theApplication Layer52015.05.14UG-01145_avmmSubscribeSend FeedbackThis chapter describes the top-level signals o

Strany 157 - Avalon-MM Test Driver Module

Figure 5-1: Signals in 64- or 128-Bit Avalon-MM Interface to the Application Layertx_out0[<n>-1:0]rx_in0[<n>-1:0]1-Bit Serial32-Bit Avalon

Strany 158 - DMA Write Cycles

Optional Features...13-1Configuration via Protocol (CvP) ..

Strany 159

32-Bit Non-Bursting Avalon-MM Control Register Access (CRA) SlaveSignalsThe optional CRA port for the full-featured IP core allows upstream PCI Expres

Strany 160 - DMA Read Cycles

Table 5-2: Avalon-MM RX Master Interface SignalsSignals that include Bar number 0 also exist for BAR1–BAR5 when additional BARs are enabled.Signal Nam

Strany 161

Figure 5-2: Simultaneous DMA Read, DMA Write, and Target AccessRxmRead_oRxmReadDataValid_iRxmReadData_i[63:0]RxmResetRequest_oRxmAddress_o[31:0]RxmWai

Strany 162 - Value Description

Table 5-3: Avalon-MM TX Slave Interface SignalsSignal Name Direction DescriptionTxsChipSelect_iInput The system interconnect fabric asserts this signa

Strany 163 - (variation_name.v)

Signal Name Direction DescriptionTxsByteEnable_i[<w>-1:0]Input Write byte enable for data. A burst must be continuous.Therefore all intermediate

Strany 164 - Root Port BFM

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

Strany 165 - BFM Request Interface

Signal Direction Descriptionmust connect the pin_perst of each Hard IP instance to thecorresponding nPERST pin of the device. These pins have thefollo

Strany 166 - BFM Memory Map

Related Information• PCI Express Card Electromechanical Specification 2.0• Configuration via Protocol (CvP) Implementation in Altera FPGAs User GuideI

Strany 167

Signal Direction DescriptionIntxAck_oOutput This signal is the acknowledge for IntxReq_i. It is asserted for atleast one cycle either when either of t

Strany 168 - Offset (Bytes) Description

Signal Direction Descriptionhip_reconfig_rst_nInput Active-low Avalon-MM reset. Resets all of the dynamic reconfi‐guration registers to their default

Strany 169

Use Third-Party PCIe Analyzer ...15-2BIOS E

Strany 170

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

Strany 171

Refer to Pin-out Files for Altera Devices for pin-out tables for all Altera devices in .pdf, .txt, and .xlsformats.Transceiver channels are arranged i

Strany 172 - BFM Procedures and Functions

Signal Direction Descriptiontx_deemph0Output Transmit de-emphasis selection. The Arria 10 Hard IP for PCIExpress sets the value for this signal based

Strany 173 - Location altpcietb_bfm_rdwr.v

Signal Direction DescriptiontxswingOutput When asserted, indicates full swing for the transmitter voltage.When deasserted indicates half swing.txsynch

Strany 174

Signal Direction Descriptionsim_pipe_ltssmstate0[4:0]Input andOutputLTSSM state: The LTSSM state machine encoding defines thefollowing states:• 5’b000

Strany 175

Signal Direction Descriptioneidleinfersel0[2:0]Output Electrical idle entry inference mechanism selection. Thefollowing encodings are defined:• 3&apos

Strany 176

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

Strany 177

Registers62015.05.14UG-01145_avmmSubscribeSend FeedbackCorrespondence between Configuration Space Registers and the PCIeSpecificationTable 6-1: Corres

Strany 178

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

Strany 179

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

Strany 180

Datasheet12015.05.14UG-01145_avmmSubscribeSend FeedbackArria 10 Avalon-MM Interface for PCIe DatasheetAltera® Arria® 10 FPGAs include a configurable,

Strany 181 - Shared Memory Constants

Byte Address Hard IP Configuration Space Register Corresponding Section in PCIe Specification0x068 MSI-X Message Control Next Cap PtrCapability IDMSI

Strany 182 - Constant Description

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

Strany 183

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

Strany 184

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 185

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

Strany 186

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

Strany 187 - Location

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 188

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 189

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 190

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 191

Link Width in Gigabits Per Second (Gbps)x1 x2 x4 x8PCI Express Gen2(5.0 Gbps)4 8 16 32PCI Express Gen3(8.0 Gbps)7.87 15.75 31.51 63Refer to AN 456: PC

Strany 192

The following table describes the four subregions.Table 6-11: Avalon-MM Control and Status Register Address SpacesAddressRange Address Space Usage0x00

Strany 193

Address Range Register0x3070 INT-X Interrupt Enable Register for Root Ports0x3070 INT-X Interrupt Enable Register for Endpoints0x3A00-0x3A1F Avalon-MM

Strany 194

Bit Name Access Description[15:0] AVL_IRQ_ASSERTED[15:0] RO Current value of the Avalon-MM interrupt(IRQ) input ports to the Avalon-MM RXmaster port:•

Strany 195

Bits Name Access Description[15:0]AVL_IRQ_VectorRO Stores the interrupt vector of the systeminterconnect fabric. The host softwareshould read this reg

Strany 196

Address Name Access Description0x0904 A2P_MAILBOX1 RO Avalon-MM-to-PCI Express Mailbox 10x0908 A2P_MAILBOX2 RO Avalon-MM-to-PCI Express Mailbox 20x090

Strany 197

Address Bits Name Access Description0x1008[1:0]A2P_ADDR_SPACE1RW Address space indication for entry 1. This entry isavailable only if the number of tr

Strany 198

Bits Name Access Description[15:2] Reserved — —[16]P2A_MAILBOX_INT0RW1C 1 when the P2A_MAILBOX0 is written[17]P2A_MAILBOX_INT1RW1C 1 when the P2A_MAIL

Strany 199 - Setting Up Simulation

Avalon-MM Mailbox RegistersA processor local to the interconnect fabric typically requires write access to a set of Avalon-MM-to-PCIExpress Mailbox re

Strany 200

Address Name AccessModeDescription0x3B14P2A_MAILBOX5RO PCI Express-to-Avalon-MM mailbox 50x3B18P2A_MAILBOX6RO PCI Express-to-Avalon-MM mailbox 60x3B1C

Strany 201 - Debugging

Byte OffsetRegister Dir Description14'h3C10 cfg_prm_cmd[15:0]O Base/Primary Command register for the PCIConfiguration Space.14'h3C14 cfg_roo

Strany 202

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 203 - BIOS Enumeration Issues

Byte OffsetRegister Dir Description14'h3C44 cfg_pr_lim_low[31:0]O The lower 32 bits of the prefetchable limit registersof the Type1 Configuration

Strany 204 - Frequently Asked Questions

Byte OffsetRegister Dir Description• 00101: Polling.Speed• 00110: config.Linkwidthstart• 00111: Config.Linkaccept• 01000: Config.Lanenumaccept• 01001:

Strany 205 - Core Config 8 4 1

Programming Model for Avalon-MM Root PortThe Application Layer writes the Root Port TLP TX Data registers with TLP formatted data for Configu‐ration R

Strany 206

Figure 6-11: Layout of Data with 4 Dword HeadersHeader 1 [63:32]Cycle 1Data Unaligned to QWord BoundaryData Aligned to QWord BoundaryCycle 2Header 0 [

Strany 207 - Additional Information

Sending a Read TLP or Receiving a Non-Posted Completion TLPThe TLPs associated with the Non-Posted TX requests are stored in the RP_RX_CPL FIFO buffer

Strany 208 - Date Version Changes Made

Table 6-25: INT‑X Interrupt Enable Register for Root Ports, 0x3070Bit Name AccessModeDescription[31:5] Reserved — —[4]RPRX_CPL_RECEIVEDRW When set to

Strany 209

Figure 6-12: Root Port TLP Data RegistersRX_TX_CNTLRP_RXCPL_REG0RP_RXCPL_REG1RP_RXCPL_STATUSControlRegisterAccessSlaveAvalon-MMMaster32323232646432IRQ

Strany 210 - How to Contact Altera

Root-Port Request Registers Address Range: 0x2800-0x2018Address Bits Name Access Description0x2010[31:16] Reserved — —[15:8]RP_RXCPL_STATUSR Specifies

Strany 211 - Typographic Conventions

Bits Register Description Reset Value Access[11] Mask for RX buffer posted and completion overflow error. 1b’1 RWS[10] Reserved 1b’0 RO[9] Mask for pa

Strany 212 - Visual Cue Meaning

Bits Register DescriptionResetValueAccess[10] Reserved.0RO[9] When set, indicates a parity error was detected on the Configu‐ration Space to TX bus in

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

Žádné komentáře