Visible to Intel only — GUID: zrs1523051974375
Ixiasoft
Visible to Intel only — GUID: zrs1523051974375
Ixiasoft
5.3.2.1.6. Specify a Requested Device as Optional
By default, the PIM does not generate a platform shim for a target hardware platform that does not offer a device interface requested by the AFU. However, AFU’s can specify a requested device interface as optional. For optionally requested device interfaces, the PIM generates a platform shim and build environments as long as the device interface is defined as optional by both the OPAE Platform and the target hardware platform. If the target hardware platform offers the device interface, the PIM transforms the interface with the properties requested by the AFU’s platform configuration file, otherwise the PIM continues configuring the platform without any action on the unavailable device interface. In either case, the PIM defines a Verilog macro indicating whether the optionally requested interface is offered by the target hardware platform. AFU implementations must elaborate based on the macro definition.
afu-image:afu-top-interface:module-ports:optional:true
For example, the nlb_mode_0 sample AFU optionally requests a local-memory interface and instantiates a memory tester module based on the related Verilog macro definition:
$OPAE_PLATFORM_ROOT/hw/samples/nlb_mode_0/hw/rtl/nlb_mode_0.json
The cci-p and clocks device interfaces are mandatory for AFUs.