
Figure 16-22: DMAWFE Instruction Encoding
0
7 6
5 4 3 2 1 0
15
8
event_num[4:0]
10
11
i
0
9
0
0
0
0
1
1
1
1
Assembler syntax
DMAWFE <event_num>
[,
invalid
]
where:
<event_num>
5-bit immediate, value 0-31
[invalid]
Sets
i
to 1. If
invalid
is present, the DMAC invalidates the instruction cache for the current
DMA thread. If
invalid
is not present, then the assembler sets
i
to 0 and the DMAC does not invalidate
the instruction cache for the current DMA.
• The DMAC aborts the thread if you select an event number that is not available for your configuration
of the DMAC. To ensure cache coherency, you must use
invalid
when a processor writes the
instruction stream for a DMA channel.
Operation
You can use the instruction with the DMA manager thread and the DMA channel thread.
Related Information
on page 16-14
DMAWFP
Wait For Peripheral instructs the DMAC to halt execution of the thread until the specified peripheral signals
a DMA request for that DMA channel.
Figure 16-23: DMAWFP Instruction Encoding
p
7 6 5 4 3 2 1 0
15
8
peripheral[4:0]
10
11
0
0
9
0
1
0
0
0
0
1
bs
Assembler syntax
DMAWFP <peripheral>
,
<single|burst|periph>
where:
<peripheral>
5-bit immediate, value 0-31
The DMAC aborts the thread if you select a peripheral number that is not available.
Note:
<single>
Sets
bs
to 0 and
p
to 0. This instructs the DMAC to continue executing the DMA channel
thread after it receives a single or burst DMA request. The DMAC sets the
request_type
to Single, for
that DMA channel.
<burst>
Sets
bs
to 1 and
p
to 0. This instructs the DMAC to continue executing the DMA channel thread
after it receives a burst DMA request. The DMAC sets the
request_type
to Burst.
Altera Corporation
DMA Controller
16-41
DMAWFP
cv_54016
2013.12.30