Altera Stratix V Avalon-ST Instrukcja Użytkownika Strona 251

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 293
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 250
Location altpcietb_bfm_driver_rp.v
Arguments
bar_table
Address of the Endpoint bar_table structure in BFM shared
memory.
bar_num
BAR number to analyze.
log2_size
This argument is set by the procedure to the log base 2 of the
size of the BAR. If the BAR is not enabled, this argument will
be set to 0.
is_mem
The procedure sets this argument to indicate if the BAR is a
memory space BAR (1) or I/O Space BAR (0).
is_pref
The procedure sets this argument to indicate if the BAR is a
prefetchable BAR (1) or non-prefetchable BAR (0).
is_64b
The procedure sets this argument to indicate if the BAR is a 64-
bit BAR (1) or 32-bit BAR (0). This is set to 1 only for the lower
numbered BAR of the pair.
BFM Shared Memory Access Procedures
The BFM shared memory access procedures and functions are in the Verilog HDL include file
altpcietb_bfm_driver.v. These procedures and functions support accessing the BFM shared memory.
Shared Memory Constants
The following constants are defined in altpcietb_bfm_driver.v. They select a data pattern in the
shmem_fill and shmem_chk_ok routines. These shared memory constants are all Verilog HDL type
integer.
Table 17-20: Constants: Verilog HDL Type INTEGER
Constant Description
SHMEM_FILL_ZEROS
Specifies a data pattern of all zeros
SHMEM_FILL_BYTE_INC
Specifies a data pattern of incrementing 8-bit bytes (0x00, 0x01,
0x02, etc.)
SHMEM_FILL_WORD_INC
Specifies a data pattern of incrementing 16-bit words (0x0000,
0x0001, 0x0002, etc.)
SHMEM_FILL_DWORD_INC
Specifies a data pattern of incrementing 32-bit dwords
(0x00000000, 0x00000001, 0x00000002, etc.)
17-40
BFM Shared Memory Access Procedures
UG-01097_avst
2014.12.15
Altera Corporation
Testbench and Design Example
Send Feedback
Przeglądanie stron 250
1 2 ... 246 247 248 249 250 251 252 253 254 255 256 ... 292 293

Komentarze do niniejszej Instrukcji

Brak uwag