MCPcopy Create free account
hub / github.com/definelicht/hlslib / TightPacking

Function TightPacking

xilinx_test/kernels/TightPacking.cpp:3–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#include <hlslib/xilinx/DataPack.h>
2
3void TightPacking(hlslib::DataPack<ap_fixed<4, 2>, 32> const *mem_in,
4 hlslib::DataPack<ap_int<4>, 32> *mem_out, int n) {
5 for (int i = 0; i < n; ++i) {
6 #pragma HLS PIPELINE
7 for (int w = 0; w < 32; ++w) {
8 #pragma HLS UNROLL
9 mem_out[i][w] = mem_in[i][w];
10 }
11 }
12}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected