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

Function update_data

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

* @brief extract the meaningful data from the input data, and updata it. * @param data input data * @return updated data */

Source from the content-addressed store, hash-verified

27 * @return updated data
28 */
29ap_uint<W_PU> update_data(ap_uint<W_PU> data) {
30#pragma HLS inline
31 ap_uint<W_PRC> p = data.range(W_PRC - 1, 0);
32 ap_uint<W_DSC> d = data.range(W_PRC + W_DSC - 1, W_PRC);
33 ap_uint<W_PU> nd = 0;
34 nd.range(W_PRC - 1, 0) = p * 2;
35 nd.range(W_DSC + W_PRC - 1, W_PRC) = d + 2;
36 return nd;
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

Callers 3

process_core_passFunction · 0.70
check_dataFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected