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

Function calculate

utils/L1/examples/multi_pu_kernel/code.cpp:39–45  ·  view source on GitHub ↗

extract the meaningful data from the input data, then calculate.

Source from the content-addressed store, hash-verified

37}
38// extract the meaningful data from the input data, then calculate.
39ap_uint<W_PU> calculate(ap_uint<W_PU> data) {
40#pragma HLS inline
41 ap_uint<W_PU> p = data.range(W_PRC - 1, 0);
42 ap_uint<W_PU> d = data.range(W_PRC + W_DSC - 1, 0);
43 ap_uint<W_PU> nd = p * d;
44 return nd;
45}
46
47/**
48 * @brief update each data as output

Callers 1

check_dataFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected