Figure 15–7 on – Altera IP Compiler for PCI Express User Manual

Page 263

Advertising
background image

Chapter 15: Testbench and Design Example

15–31

Root Port BFM

August 2014

Altera Corporation

IP Compiler for PCI Express User Guide

Besides the ebfm_cfg_rp_ep procedure in altpcietb_bfm_configure, routines to read
and write endpoint configuration space registers directly are available in the
altpcietb_bfm_rdwr

VHDL package or Verilog HDL include file. After the

ebfm_cfg_rp_ep

procedure is run the PCI Express I/O and Memory Spaces have the

layout as described in the following three figures. The memory space layout is
dependent on the value of the addr_map_4GB_limit input parameter. If
addr_map_4GB_limit

is 1 the resulting memory space map is shown in

Figure 15–7

.

Figure 15–7. Memory Space Layout—4 GByte Limit

Root Complex Shared

Memory

0x0000 0000

Configuration Scratch

Space

Used by BFM routines

,

not writable by user calls

or endpoint

0x001F FF80

BAR Table

Used by BFM routines

,

not writable by user calls

or endpoint

0x001F FFC0

Endpoint Non

-

Prefetchable Memory

Space BARs

Assigned Smallest to

Largest

0x0020 0000

0xFFFF FFFF

Endpoint Memory Space

BARs

(

Prefetchable 32 -bit and

64- bit

)

Assigned Smallest to

Largest

Unused

Addr

Advertising