Skip to content

Commit 23ba36b

Browse files
author
Rajat Sarkari
committed
Bug fixes for chaining
1 parent 2329c70 commit 23ba36b

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

cpp_kernels/kernel_chain/src/host.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#include <array>
1919
#include <iostream>
2020

21-
#define MAT_DIM 8
21+
#define MAT_DIM 32
2222
#define MAT_SIZE MAT_DIM* MAT_DIM
2323
#define NUM_TIMES 10
2424
////////////////////UTILITY FUNCTION///////////////

cpp_kernels/kernel_chain/src/krnl_chain_mmult.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,16 @@ void krnl_chain_mmult(int* a, int* b, int* c, int* d, int* output, int dim) {
4545
int tmp = dim;
4646
strm_ctrl_trans1.write(tmp);
4747

48-
#pragma HLS STREAM variable = strm_ctrl_trans1 depth = 4
49-
#pragma HLS STREAM variable = strm_ctrl_trans2 depth = 4
50-
#pragma HLS STREAM variable = strm_ctrl_trans3 depth = 4
51-
#pragma HLS STREAM variable = strm_ctrl_trans4 depth = 4
52-
#pragma HLS STREAM variable = strm_ctrl_trans5 depth = 4
48+
#pragma HLS STREAM variable = strm_ctrl_trans1 depth = 1024
49+
#pragma HLS STREAM variable = strm_ctrl_trans2 depth = 1024
50+
#pragma HLS STREAM variable = strm_ctrl_trans3 depth = 1024
51+
#pragma HLS STREAM variable = strm_ctrl_trans4 depth = 1024
52+
#pragma HLS STREAM variable = strm_ctrl_trans5 depth = 1024
5353

54-
#pragma HLS STREAM variable = strm_a depth = 4
55-
#pragma HLS STREAM variable = strm_b depth = 4
56-
#pragma HLS STREAM variable = strm_c depth = 4
57-
#pragma HLS STREAM variable = strm_d depth = 4
54+
#pragma HLS STREAM variable = strm_a depth = 4096
55+
#pragma HLS STREAM variable = strm_b depth = 4096
56+
#pragma HLS STREAM variable = strm_c depth = 4096
57+
#pragma HLS STREAM variable = strm_d depth = 4096
5858

5959
#pragma HLS DATAFLOW
6060

cpp_kernels/kernel_chain/src/krnl_mmult.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#ifndef __KRNL_MMULT__
1717
#define __KRNL_MMULT__
1818
#define DWIDTH 32
19-
#define MAT_DIM 8
19+
#define MAT_DIM 32
2020
// typedef ap_axis<DWIDTH, 0, 0, 0> pkt;
2121
typedef int pkt;
2222
// Template to avoid signature conflict in sw_em

0 commit comments

Comments
 (0)