MCPcopy Create free account
hub / github.com/Xilinx/Vitis_Libraries / funcApproxKernel

Method funcApproxKernel

dsp/L1/src/aie/func_approx.cpp:55–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53 unsigned int TP_SAT,
54 unsigned int TP_USE_LUT_RELOAD>
55INLINE_DECL void kernelFuncApproxClass<TT_DATA,
56 TP_COARSE_BITS,
57 TP_FINE_BITS,
58 TP_DOMAIN_MODE,
59 TP_WINDOW_VSIZE,
60 TP_SHIFT,
61 TP_RND,
62 TP_SAT,
63 TP_USE_LUT_RELOAD>::funcApproxKernel(T_inputIF<TT_DATA> inInterface,
64 T_outputIF<TT_DATA> outInterface) {
65 if
66 constexpr(useLutAPI == 0) {
67 if
68 constexpr(isFloatingPoint) { funcApproxBasicFloat(inInterface, outInterface); }
69 else {
70 funcApproxBasic(inInterface, outInterface);
71 }
72 }
73 else {
74 if
75 constexpr(isFloatingPoint) { funcApproxLutAPIFloat(inInterface, outInterface); }
76 else {
77 funcApproxLutAPI(inInterface, outInterface);
78 }
79 }
80};
81
82template <typename TT_DATA,
83 unsigned int TP_COARSE_BITS,

Callers 1

func_approx.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected