From 1d2df7969b36f97b3167c957d5a9131f9ddd6a77 Mon Sep 17 00:00:00 2001 From: Yaman Umuroglu <yamanu@xilinx.com> Date: Fri, 28 Feb 2020 11:31:01 +0000 Subject: [PATCH] [HLSCodeGen] increase AP_INT_MAX_W to 4096 by default --- src/finn/custom_op/fpgadataflow/templates.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/finn/custom_op/fpgadataflow/templates.py b/src/finn/custom_op/fpgadataflow/templates.py index e2f43f4ed..dccbb2533 100644 --- a/src/finn/custom_op/fpgadataflow/templates.py +++ b/src/finn/custom_op/fpgadataflow/templates.py @@ -1,5 +1,6 @@ # template for single node execution docompute_template = """ +#define AP_INT_MAX_W 4096 #include "cnpy.h" #include "npy2apintstream.hpp" #include <vector> @@ -30,6 +31,7 @@ $SAVEASCNPY$ # cpp file ipgen_template = """ +#define AP_INT_MAX_W 4096 #include "bnn-library.h" // includes for network parameters $GLOBALS$ -- GitLab