Skip to content

Commit a92ff83

Browse files
committed
Set buffers to T2P
1 parent 19ce85b commit a92ff83

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

zynq/hls/mmult_fixed/mmult_fixed.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ void mmult_hw(hls::stream<AXI_VAL>& in_stream, hls::stream<AXI_VAL>& out_stream)
2323
in_T in_buf[TILING][FEAT];
2424
out_T out_buf[TILING][CLASSES];
2525

26+
#pragma HLS BIND_STORAGE variable=offset_buf type=RAM_T2P
27+
#pragma HLS BIND_STORAGE variable=weight_buf type=RAM_T2P
28+
#pragma HLS BIND_STORAGE variable=in_buf type=RAM_T2P
29+
#pragma HLS BIND_STORAGE variable=out_buf type=RAM_T2P
30+
2631
// Input and output AXI stream indices
2732
int is_idx = 0;
2833
int os_idx = 0;

zynq/hls/mmult_float/mmult_float.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ void mmult_hw(hls::stream<AXI_VAL>& in_stream, hls::stream<AXI_VAL>& out_stream)
3232
T in_buf[BATCH][FEAT];
3333
T out_buf[BATCH][CLASSES];
3434

35+
#pragma HLS BIND_STORAGE variable=offset_buf type=RAM_T2P
36+
#pragma HLS BIND_STORAGE variable=weight_buf type=RAM_T2P
37+
#pragma HLS BIND_STORAGE variable=in_buf type=RAM_T2P
38+
#pragma HLS BIND_STORAGE variable=out_buf type=RAM_T2P
39+
3540
// Input and output AXI stream indices
3641
int is_idx = 0;
3742
int os_idx = 0;

0 commit comments

Comments
 (0)