Skip to content
Snippets Groups Projects
Commit a258b803 authored by aziz bahri's avatar aziz bahri
Browse files

VVAU: add weightstream width helper


Signed-off-by: default avataraziz bahri <azizb@amd.com>
parent f1283027
No related branches found
No related tags found
No related merge requests found
......@@ -1225,6 +1225,12 @@ class VectorVectorActivation(HLSCustomOp):
else:
return 0
def get_weightstream_width_padded(self):
"""Returns weight stream width padded to a multiple of 8. This is required
by the AXI Stream spec. Used in decoupled mode."""
weight_width = self.get_weightstream_width()
return roundup_to_integer_multiple(weight_width, 8)
def get_op_and_param_counts(self):
k_h, k_w = self.get_nodeattr("Kernel")
fm = self.get_nodeattr("Channels")
......
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