Skip to content
Snippets Groups Projects
Commit 1daec73f authored by Yaman Umuroglu's avatar Yaman Umuroglu
Browse files

[DMA] fix IODMA num outputs

among others this will give correct TLastMarker behavior
parent 3d3d4ae6
No related branches found
No related tags found
No related merge requests found
......@@ -197,11 +197,13 @@ class IODMA(HLSCustomOp):
def get_number_output_values(self):
oshape = self.get_normal_output_shape()
itype_bits = self.get_input_datatype().bitwidth()
intfw = self.get_nodeattr("intfWidth")
stream_width = self.get_nodeattr("streamWidth")
nelems = np.prod(oshape)
nbits = nelems * itype_bits
assert nbits % intfw == 0, "DMA: total transfer size must be word multiple"
ovalues = nbits // intfw
assert (
nbits % stream_width == 0
), "DMA: total transfer size must be word multiple"
ovalues = nbits // stream_width
return ovalues
def global_includes(self):
......
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