template <typename TopGraph> void update_rtp ( TopGraph& top, const std::array <TT_LUT, kLutValues>& lut, rtp_port_array& rtpPort )
Updates RTP ports with duplicated lookup table values for runtime configuration.
This method is used to update the RTP ports with lookup table values when TP_USE_LUT_RELOAD = 1. The function automatically handles the duplication requirements for parallel access on AIE-ML and AIE-MLv2 devices and updates all necessary RTP ports with the same duplicated lookup table data.
The method creates a duplicated version of the input lookup table to meet hardware requirements for parallel memory access, then updates both RTP ports with this duplicated data to ensure consistent behavior across the kernel’s dual LUT inputs.
This method should only be used when TP_USE_LUT_RELOAD = 1.
For AIE-ML and AIE-MLv2 devices with int16 or bfloat16 data types, the LUT values are automatically duplicated to support parallel access of 4 elements.
Parameters:
| TopGraph | The type of the top-level graph containing this func_approx_graph instance. |
| top | Reference to the top-level graph instance used for RTP updates. |
| lut | The lookup table array containing the function approximation values. |
| rtpPort | Reference to the RTP port array that will be updated with the LUT values. |