Skip to content

Commit 269b96c

Browse files
committed
replace define with constexpr for c_size in kernel
1 parent c7834db commit 269b96c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hls4ml/templates/vitis_accelerator/myproject_kernel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include "firmware/parameters.h"
55
#include "firmware/myproject.cpp"
66

7-
#define c_size 1024
7+
constexpr int c_size = 1024;
88

99
static void load_input(input_t* in, hls::stream<input_t>& inStream, int size) {
1010
mem_rd:

0 commit comments

Comments
 (0)