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

[CustomOp] Expose drain of checksum layer for ip generation

parent 77fce38c
No related branches found
No related tags found
No related merge requests found
......@@ -300,7 +300,7 @@ class CheckSum(HLSCustomOp):
def blackboxfunction(self):
self.code_gen_dict["$BLACKBOXFUNCTION$"] = [
"""using T = ap_uint<WORD_SIZE>;\n void {}(hls::stream<T> &in0,
hls::stream<T> &out, ap_uint<32> &chk, ap_uint<1> drain)""".format(
hls::stream<T> &out, ap_uint<32> &chk, ap_uint<1> &drain)""".format(
self.onnx_node.name
)
]
......@@ -315,6 +315,9 @@ class CheckSum(HLSCustomOp):
self.code_gen_dict["$PRAGMAS$"].append(
"#pragma HLS interface s_axilite port=chk bundle=checksum"
)
self.code_gen_dict["$PRAGMAS$"].append(
"#pragma HLS interface s_axilite port=drain bundle=checksum"
)
self.code_gen_dict["$PRAGMAS$"].append(
"#pragma HLS interface ap_ctrl_none port=return"
)
......
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