diff --git a/src/finn/custom_op/fpgadataflow/templates.py b/src/finn/custom_op/fpgadataflow/templates.py
index bad2ba2eff8ebba8e1a16f5e6e1174b3348c1e56..5b933f5b63b223d62783f6d7cdfa794811ead2fb 100644
--- a/src/finn/custom_op/fpgadataflow/templates.py
+++ b/src/finn/custom_op/fpgadataflow/templates.py
@@ -28,7 +28,7 @@
 
 # template for single node execution
 docompute_template = """
-#define AP_INT_MAX_W 4096
+#define AP_INT_MAX_W 16384
 #include "cnpy.h"
 #include "npy2apintstream.hpp"
 #include <vector>