Dependencies
This extension is written against the SPIR-V Specification, Version 1.5 Revision 2.
This extension requires SPIR-V 1.0.
Overview
This extension adds decorations, useful for FPGA targets, that explicitly request that implementation of a memory access is configured in a certain way.
Extension Name
To use this extension within a SPIR-V module, the following OpExtension must be present in the module:
OpExtension "SPV_ALTERA_fpga_memory_accesses"
New Decorations
Decorations added under the FPGAMemoryAccessesALTERA capability:
BurstCoalesceALTERA CacheSizeALTERA DontStaticallyCoalesceALTERA PrefetchALTERA
Token Number Assignments
FPGAMemoryAccessesALTERA |
5898 |
BurstCoalesceALTERA |
5899 |
CacheSizeALTERA |
5900 |
DontStaticallyCoalesceALTERA |
5901 |
PrefetchALTERA |
5902 |
Modifications to the SPIR-V Specification, Version 1.5
Decoration
Modify Section 3.20, Decoration, adding these rows to the Decoration table:
| Decoration | Extra Operands | Enabling Capabilities | ||
|---|---|---|---|---|
5899 |
BurstCoalesceALTERA |
FPGAMemoryAccessesALTERA |
||
5900 |
CacheSizeALTERA |
Literal Number |
FPGAMemoryAccessesALTERA |
|
5901 |
DontStaticallyCoalesceALTERA |
FPGAMemoryAccessesALTERA |
||
5902 |
PrefetchALTERA |
Literal Number |
FPGAMemoryAccessesALTERA |
|