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

[StreamingFC] take changes from npysim branch

parents 3f1b888e 92e20e5b
No related branches found
No related tags found
No related merge requests found
......@@ -68,7 +68,8 @@ SCRIPTPATH=$(dirname "$SCRIPT")
BREVITAS_REPO=https://github.com/Xilinx/brevitas.git
EXAMPLES_REPO=https://github.com/maltanar/brevitas_cnv_lfc.git
CNPY_REPO=https://github.com/rogersce/cnpy.git
FINN_HLS_REPO=https://github.com/Xilinx/finn-hlslib.git
#FINN_HLS_REPO=https://github.com/Xilinx/finn-hlslib.git
FINN_HLS_REPO=https://github.com/Tobi-Alonso/finn-hlslib.git
PYVERILATOR_REPO=https://github.com/maltanar/pyverilator
PYNQSHELL_REPO=https://github.com/maltanar/PYNQ-HelloWorld.git
......
......@@ -791,14 +791,13 @@ class StreamingFCLayer_Batch(HLSCustomOp):
export_wdt = DataType.BINARY
else:
export_wdt = wdt
wdtype_hls_str = export_wdt.get_hls_datatype_str()
self.code_gen_dict["$DOCOMPUTE$"] = [
"""Matrix_Vector_Activate_Stream_Batch<MW1, MH1, SIMD1, PE1, {}, {}, {}, {} >
(in0, out, weights, {}, numReps, {});""".format(
"""Matrix_Vector_Activate_Stream_Batch<MW1, MH1, SIMD1, PE1, {}, {},
{}, {}>(in0, out, weights, {}, numReps, {});""".format(
export_wdt.bitwidth(),
tmpl_args["TSrcI"],
tmpl_args["TDstI"],
tmpl_args["TWeightI"],
wdtype_hls_str,
threshs,
self.get_nodeattr("resType"),
)
......
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