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

[Util] Change in npy_to_rtlsim_input: pad number to multiple of 4

parent 89ad0b48
No related branches found
No related tags found
No related merge requests found
......@@ -275,6 +275,7 @@ def npy_to_rtlsim_input(input_file, input_dtype, pad_to_nbits, reverse_inner=Tru
finn.util.basic.pack_innermost_dim_as_hex_string() for more info on how the
packing works. If reverse_inner is set, the innermost dimension will be
reversed prior to packing."""
pad_to_nbits = roundup_to_integer_multiple(pad_to_nbits, 4)
if issubclass(type(input_file), np.ndarray):
inp = input_file
elif os.path.isfile(input_file):
......
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