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

[TLastMarker] fix npysim compilation for TLastMarker

note that the generated code does not actually do anthing,
since TLastMarker executed directly with out=in
parent fd21d20f
No related branches found
No related tags found
No related merge requests found
......@@ -54,13 +54,8 @@ class TLastMarker(HLSCustomOp):
]
def read_npy_data(self):
# TLastMarker does not support npysim
self.code_gen_dict["$READNPYDATA$"] = []
def strm_decl(self):
# TLastMarker does not support npysim
self.code_gen_dict["$STREAMDECLARATIONS$"] = []
def docompute(self):
self.code_gen_dict["$DOCOMPUTE$"] = [
"for(int i=0; i<NumIters; i++) {",
......@@ -74,7 +69,6 @@ class TLastMarker(HLSCustomOp):
]
def dataoutstrm(self):
# TLastMarker does not support npysim
self.code_gen_dict["$DATAOUTSTREAM$"] = []
def save_as_npy(self):
......@@ -114,3 +108,12 @@ class TLastMarker(HLSCustomOp):
def get_outstream_width(self):
stream_width = self.get_nodeattr("StreamWidth")
return stream_width
def strm_decl(self):
self.code_gen_dict["$STREAMDECLARATIONS$"] = []
self.code_gen_dict["$STREAMDECLARATIONS$"].append(
'hls::stream<ap_uint<{}>> in0 ("in0");'.format(self.get_instream_width())
)
self.code_gen_dict["$STREAMDECLARATIONS$"].append(
'hls::stream<OutDType> out ("out");'
)
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