Altera Arria 10 Avalon-MM Bedienungsanleitung Seite 160

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 212
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 159
Offset in DMA
Control Register
(BAR2)
Value Description
DW3 0xc 2 Last valid descriptor
After writing the last dword, DW3, of the descriptor header, the DMA write starts the three
subsequent data transfers.
3. Waits for the DMA write completion by polling the BFM share memory location 0x80c, where the
DMA write engine is updating the value of the number of completed descriptor. Calls the procedures
rcmem_poll and msi_poll to determine when the DMA write transfers have completed.
DMA Read Cycles
The procedure dma_rd_test used for DMA read uses the following three steps:
1. Configures the BFM shared memory with a call to the procedure dma_set_rd_desc_data which sets
the following three descriptor tables. .
Table 14-6: Read Descriptor 0
Offset in BFM
Shared Memory
Value Description
DW0 0x910 82 Transfer length in dwords and control bits as described in on
page 18–15
DW1 0x914 3 Endpoint address value
DW2 0x918 0 BFM shared memory data buffer 0 upper address value
DW3 0x91c 0x8DF0 BFM shared memory data buffer 0 lower address value
Data
Buffer 0
0x8DF0 Increment by 1
from 0xAAA0_
0001
Data content in the BFM shared memory from address:
0x89F0
Table 14-7: Read Descriptor 1
Offset in BFM
Shared Memory
Value Description
DW0 0x920 1,024 Transfer length in dwords and control bits as described in on
page 18–15
DW1 0x924 0 Endpoint address value
14-10
DMA Read Cycles
UG-01145_avmm
2015.05.14
Altera Corporation
Avalon-MM Testbench and Design Example
Send Feedback
Seitenansicht 159
1 2 ... 155 156 157 158 159 160 161 162 163 164 165 ... 211 212

Kommentare zu diesen Handbüchern

Keine Kommentare