AMX DESIGN XPRESS V 1.5 - PROGRAMMER GUIDE Podręcznik Użytkownika Strona 270

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 288
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 269
17–48 Chapter 17: Testbench and Design Example
BFM Procedures and Functions
Cyclone V Hard IP for PCI Express December 2013 Altera Corporation
User Guide
find_mem_bar Procedure
The
find_mem_bar
procedure locates a BAR which satisfies a given memory space
requirement.
dma_set_rclast Procedure
The
dma_set_rclast
procedure starts the DMA operation by writing to the Endpoint
DMA register the value of the last descriptor to process (RCLast).
ebfm_display_verb Procedure
The
ebfm_display_verb
procedure calls the procedure
ebfm_display
when the global
variable
DISPLAY_ALL
is set to 1.
Table 17–64. find_mem_bar Procedure
Location altpcietb_bfm_driver_rp.v
Syntax
Find_mem_bar(bar_table,allowed_bars,min_log2_size, sel_bar)
Arguments
bar_table
Address of the Endpoint
bar_table
structure in BFM shared memory
allowed_bars
One hot 6 bits BAR selection
min_log2_size
Number of bit required for the specified address space
sel_bar
BAR number to use
Table 17–65. dma_set_rclast Procedure
Location altpcietb_bfm_driver_rp.v
Syntax
Dma_set_rclast(bar_table, setup_bar, dt_direction, dt_rclast)
Arguments
bar_table
Address of the Endpoint
bar_table
structure in BFM shared memory
setup_bar
BAR number to use
dt_direction
When 0 read, When 1 write
dt_rclast
Last descriptor number
Table 17–66. ebfm_display_verb Procedure
Location altpcietb_bfm_driver_chaining.v
Syntax
ebfm_display_verb(msg_type, message)
Arguments
msg_type
Message type for the message. Should be one of the constants
defined in Table 17–36 on page 17–38.
message
The message string is limited to a maximum of 100 characters. Also, because
Verilog HDL does not allow variable length strings, this routine strips off leading
characters of 8'h00 before displaying the message.
Przeglądanie stron 269
1 2 ... 265 266 267 268 269 270 271 272 273 274 275 ... 287 288

Komentarze do niniejszej Instrukcji

Brak uwag