Skip to content
Snippets Groups Projects
Commit d792e66a authored by auphelia's avatar auphelia
Browse files

[Util] Change in numpy_to_hls_code data packing function: pad number to multiple of 4

parent 0816d80d
No related branches found
No related tags found
No related merge requests found
......@@ -228,6 +228,7 @@ def numpy_to_hls_code(
if pack_innermost_dim:
idimlen = ndarray.shape[-1]
idimbits = idimlen * dtype.bitwidth()
idimbits = roundup_to_integer_multiple(idimbits, 4)
ndarray = pack_innermost_dim_as_hex_string(ndarray, dtype, idimbits)
hls_dtype = "ap_uint<%d>" % idimbits
ndims = ndarray.ndim
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment