instruction
stringlengths
139
357k
response
stringlengths
36
4.54k
buggy_type
stringclasses
745 values
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=sum void adder_8bit(ap_uint<8> a, ap_uint<8> b, ap_uint<8> &sum) { sum...
The wrong part of the code is: ap_uint<8> low_sum = 0; The right code snippet is: ap_uint<8> low_sum;
'INIT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=sum void adder_8bit(ap_uint<8> a, ap_uint<8> b, ap_uint<8> &sum) { sum = a ...
The right code snippet is: ap_uint<8> low_sum;
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=sum void adder_8bit(ap_uint<8> a, ap_uint<8> b, ap_uint<8> &sum...
The wrong part of the code is: ap_uint<8> low_sum = 0; The high-level-synthesis bug type of the code is: 'INIT'
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=sum void adder_8bit(ap_uin...
The wrong part of the code is: ap_uint<8> low_sum = 0; The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: ap_uint<8> low_sum;
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=sum void adder_8bit(ap_uint<8> a, ap_uint<8> b, ap_uint<8> &sum) { sum...
The wrong part of the code is: ap_uint<16> b_high = b.range(33, 18); The right code snippet is: ap_uint<16> b_high = b.range(31, 16);
'SHFT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=sum void adder_8bit(ap_uint<8> a, ap_uint<8> b, ap_uint<8> &sum) { sum = a ...
The right code snippet is: ap_uint<16> b_high = b.range(31, 16);
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=sum void adder_8bit(ap_uint<8> a, ap_uint<8> b, ap_uint<8> &sum...
The wrong part of the code is: ap_uint<16> b_high = b.range(33, 18); The high-level-synthesis bug type of the code is: 'SHFT'
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=sum void adder_8bit(ap_uin...
The wrong part of the code is: ap_uint<16> b_high = b.range(33, 18); The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: ap_uint<16> b_high = b.range(31, 16);
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=sum void adder_8bit(ap_uint<8> a, ap_uint<8> b, ap_uint<8> &sum) { whi...
The wrong part of the code is: void adder_8bit(ap_uint<8> a, ap_uint<8> b, ap_uint<8> &sum) { while(1) { sum = a + b; } } The right code snippet is: void adder_8bit(ap_uint<8> a, ap_uint<8> b, ap_uint<8> &sum) { sum = a + b; }
'INF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=sum void adder_8bit(ap_uint<8> a, ap_uint<8> b, ap_uint<8> &sum) { while(1)...
The right code snippet is: void adder_8bit(ap_uint<8> a, ap_uint<8> b, ap_uint<8> &sum) { sum = a + b; }
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=sum void adder_8bit(ap_uint<8> a, ap_uint<8> b, ap_uint<8> &sum...
The wrong part of the code is: void adder_8bit(ap_uint<8> a, ap_uint<8> b, ap_uint<8> &sum) { while(1) { sum = a + b; } } The high-level-synthesis bug type of the code is: 'INF'
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=sum void adder_8bit(ap_uin...
The wrong part of the code is: void adder_8bit(ap_uint<8> a, ap_uint<8> b, ap_uint<8> &sum) { while(1) { sum = a + b; } } The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: void adder_8bit(ap_uint<8> a, ap_uint<8> b, ap_uint<8> &sum) { sum = a + b...
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=sum void adder_8bit(ap_uint<8> a, ap_uint<8> b, ap_uint<8> &sum) { sum...
The wrong part of the code is: int8_t a_low = a.range(7, 0); The right code snippet is: ap_uint<8> a_low = a.range(7, 0);
'USE'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=sum void adder_8bit(ap_uint<8> a, ap_uint<8> b, ap_uint<8> &sum) { sum = a ...
The right code snippet is: ap_uint<8> a_low = a.range(7, 0);
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=sum void adder_8bit(ap_uint<8> a, ap_uint<8> b, ap_uint<8> &sum...
The wrong part of the code is: int8_t a_low = a.range(7, 0); The high-level-synthesis bug type of the code is: 'USE'
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=sum void adder_8bit(ap_uin...
The wrong part of the code is: int8_t a_low = a.range(7, 0); The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: ap_uint<8> a_low = a.range(7, 0);
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=sum void adder_8bit(ap_uint<8> a, ap_uint<8> b, ap_uint<8> &sum) { sum...
The wrong part of the code is: ap_uint<8> low_sum; ap_uint<16> mid_sum; ap_uint<16> high_sum; The right code snippet is: ap_uint<8> low_sum; ap_uint<8> mid_sum; ap_uint<16> high_sum;
'BUF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=sum void adder_8bit(ap_uint<8> a, ap_uint<8> b, ap_uint<8> &sum) { sum = a ...
The right code snippet is: ap_uint<8> low_sum; ap_uint<8> mid_sum; ap_uint<16> high_sum;
'BUF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=sum void adder_8bit(ap_uint<8> a, ap_uint<8> b, ap_uint<8> &sum...
The wrong part of the code is: ap_uint<8> low_sum; ap_uint<16> mid_sum; ap_uint<16> high_sum; The high-level-synthesis bug type of the code is: 'BUF'
'BUF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=sum void adder_8bit(ap_uin...
The wrong part of the code is: ap_uint<8> low_sum; ap_uint<16> mid_sum; ap_uint<16> high_sum; The high-level-synthesis bug type of the code is: 'BUF' The right code snippet is: ap_uint<8> low_sum; ap_uint<8> mid_sum; ap_uint<16> high_sum;
'BUF'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=sum void adder_8bit(ap_uint<8> a, ap_uint<8> b, ap_uint<8> &sum) { sum...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=a cyclic factor=4 #pragma HLS ARRAY_PARTITION variable=b cyclic factor=4 #pragma HLS ARRAY_PARTITION variable=sum cyclic factor=4 The right code snippet is: #pragma HLS ARRAY_PARTITION variable=a complete #pragma HLS ARRAY_PARTITION va...
'APT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=sum void adder_8bit(ap_uint<8> a, ap_uint<8> b, ap_uint<8> &sum) { sum = a ...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=a complete #pragma HLS ARRAY_PARTITION variable=b complete #pragma HLS ARRAY_PARTITION variable=sum complete
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=sum void adder_8bit(ap_uint<8> a, ap_uint<8> b, ap_uint<8> &sum...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=a cyclic factor=4 #pragma HLS ARRAY_PARTITION variable=b cyclic factor=4 #pragma HLS ARRAY_PARTITION variable=sum cyclic factor=4 The high-level-synthesis bug type of the code is: 'APT'
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=sum void adder_8bit(ap_uin...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=a cyclic factor=4 #pragma HLS ARRAY_PARTITION variable=b cyclic factor=4 #pragma HLS ARRAY_PARTITION variable=sum cyclic factor=4 The high-level-synthesis bug type of the code is: 'APT' The right code snippet is: #pragma HLS ARRAY_...
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=sum void adder_8bit(ap_uint<8> a, ap_uint<8> b, ap_uint<8> &sum) { sum...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=a block factor=4 #pragma HLS ARRAY_PARTITION variable=b block factor=4 #pragma HLS ARRAY_PARTITION variable=sum block factor=4 The right code snippet is: #pragma HLS ARRAY_PARTITION variable=a complete #pragma HLS ARRAY_PARTITION varia...
'FND'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=sum void adder_8bit(ap_uint<8> a, ap_uint<8> b, ap_uint<8> &sum) { sum = a ...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=a complete #pragma HLS ARRAY_PARTITION variable=b complete #pragma HLS ARRAY_PARTITION variable=sum complete
'FND'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=sum void adder_8bit(ap_uint<8> a, ap_uint<8> b, ap_uint<8> &sum...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=a block factor=4 #pragma HLS ARRAY_PARTITION variable=b block factor=4 #pragma HLS ARRAY_PARTITION variable=sum block factor=4 The high-level-synthesis bug type of the code is: 'FND'
'FND'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=sum void adder_8bit(ap_uin...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=a block factor=4 #pragma HLS ARRAY_PARTITION variable=b block factor=4 #pragma HLS ARRAY_PARTITION variable=sum block factor=4 The high-level-synthesis bug type of the code is: 'FND' The right code snippet is: #pragma HLS ARRAY_PAR...
'FND'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=sum void adder_8bit(ap_uint<8> a, ap_uint<8> b, ap_uint<8> &sum) { sum...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=a cyclic dim=2 #pragma HLS ARRAY_PARTITION variable=b cyclic dim=2 #pragma HLS ARRAY_PARTITION variable=sum cyclic dim=2 The right code snippet is: #pragma HLS ARRAY_PARTITION variable=a complete #pragma HLS ARRAY_PARTITION variable=b ...
'DID'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=sum void adder_8bit(ap_uint<8> a, ap_uint<8> b, ap_uint<8> &sum) { sum = a ...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=a complete #pragma HLS ARRAY_PARTITION variable=b complete #pragma HLS ARRAY_PARTITION variable=sum complete
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=sum void adder_8bit(ap_uint<8> a, ap_uint<8> b, ap_uint<8> &sum...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=a cyclic dim=2 #pragma HLS ARRAY_PARTITION variable=b cyclic dim=2 #pragma HLS ARRAY_PARTITION variable=sum cyclic dim=2 The high-level-synthesis bug type of the code is: 'DID'
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=sum void adder_8bit(ap_uin...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=a cyclic dim=2 #pragma HLS ARRAY_PARTITION variable=b cyclic dim=2 #pragma HLS ARRAY_PARTITION variable=sum cyclic dim=2 The high-level-synthesis bug type of the code is: 'DID' The right code snippet is: #pragma HLS ARRAY_PARTITION...
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=sum void adder_8bit(ap_uint<8> a, ap_uint<8> b, ap_uint<8> &sum) { sum...
The wrong part of the code is: void adder_32bit(ap_uint<32> a, ap_uint<32> b, ap_uint<32> &sum) { #pragma HLS ARRAY_PARTITION variable=a complete #pragma HLS ARRAY_PARTITION variable=b complete #pragma HLS ARRAY_PARTITION variable=sum complete ap_uint<8> a_low = a.range(7, 0); ap_uint<8> b...
'DFP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=sum void adder_8bit(ap_uint<8> a, ap_uint<8> b, ap_uint<8> &sum) { sum = a ...
The right code snippet is: void adder_32bit(ap_uint<32> a, ap_uint<32> b, ap_uint<32> &sum) { #pragma HLS ARRAY_PARTITION variable=a complete #pragma HLS ARRAY_PARTITION variable=b complete #pragma HLS ARRAY_PARTITION variable=sum complete ap_uint<8> a_low = a.range(7, 0); ap_uint<8> b_low...
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=sum void adder_8bit(ap_uint<8> a, ap_uint<8> b, ap_uint<8> &sum...
The wrong part of the code is: void adder_32bit(ap_uint<32> a, ap_uint<32> b, ap_uint<32> &sum) { #pragma HLS ARRAY_PARTITION variable=a complete #pragma HLS ARRAY_PARTITION variable=b complete #pragma HLS ARRAY_PARTITION variable=sum complete ap_uint<8> a_low = a.range(7, 0); ap_uint<8> b...
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=sum void adder_8bit(ap_uin...
The wrong part of the code is: void adder_32bit(ap_uint<32> a, ap_uint<32> b, ap_uint<32> &sum) { #pragma HLS ARRAY_PARTITION variable=a complete #pragma HLS ARRAY_PARTITION variable=b complete #pragma HLS ARRAY_PARTITION variable=sum complete ap_uint<8> a_low = a.range(7, 0); ap_uint<8> b...
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=we bundle=CTRL_BUS #prag...
The wrong part of the code is: memory[addr+1] = din; The right code snippet is: memory[addr] = din;
'OOB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=we bundle=CTRL_BUS #pragma HL...
The right code snippet is: memory[addr] = din;
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=we bundle=CTR...
The wrong part of the code is: memory[addr+1] = din; The high-level-synthesis bug type of the code is: 'OOB'
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS I...
The wrong part of the code is: memory[addr+1] = din; The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: memory[addr] = din;
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=we bundle=CTRL_BUS #prag...
The wrong part of the code is: int memory[1<<addr_width] = {0}; The right code snippet is: int memory[1<<addr_width];
'INIT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=we bundle=CTRL_BUS #pragma HL...
The right code snippet is: int memory[1<<addr_width];
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=we bundle=CTR...
The wrong part of the code is: int memory[1<<addr_width] = {0}; The high-level-synthesis bug type of the code is: 'INIT'
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS I...
The wrong part of the code is: int memory[1<<addr_width] = {0}; The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: int memory[1<<addr_width];
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=we bundle=CTRL_BUS #prag...
The wrong part of the code is: memory[addr<<1] = din; The right code snippet is: memory[addr] = din;
'SHFT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=we bundle=CTRL_BUS #pragma HL...
The right code snippet is: memory[addr] = din;
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=we bundle=CTR...
The wrong part of the code is: memory[addr<<1] = din; The high-level-synthesis bug type of the code is: 'SHFT'
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS I...
The wrong part of the code is: memory[addr<<1] = din; The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: memory[addr] = din;
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=we bundle=CTRL_BUS #prag...
The wrong part of the code is: for (int i = 0; i >= 0; i++) { // some code } The right code snippet is: for (int i = 0; i < 10; i++) { // some code }
'INF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=we bundle=CTRL_BUS #pragma HL...
The right code snippet is: for (int i = 0; i < 10; i++) { // some code }
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=we bundle=CTR...
The wrong part of the code is: for (int i = 0; i >= 0; i++) { // some code } The high-level-synthesis bug type of the code is: 'INF'
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS I...
The wrong part of the code is: for (int i = 0; i >= 0; i++) { // some code } The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: for (int i = 0; i < 10; i++) { // some code }
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=we bundle=CTRL_BUS #prag...
The wrong part of the code is: char din; The right code snippet is: int din;
'USE'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=we bundle=CTRL_BUS #pragma HL...
The right code snippet is: int din;
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=we bundle=CTR...
The wrong part of the code is: char din; The high-level-synthesis bug type of the code is: 'USE'
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS I...
The wrong part of the code is: char din; The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: int din;
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=we bundle=CTRL_BUS #prag...
The wrong part of the code is: for (int i = 0; i < 9; i++) { // some code } The right code snippet is: for (int i = 0; i < 10; i++) { // some code }
'MLU'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=we bundle=CTRL_BUS #pragma HL...
The right code snippet is: for (int i = 0; i < 10; i++) { // some code }
'MLU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=we bundle=CTR...
The wrong part of the code is: for (int i = 0; i < 9; i++) { // some code } The high-level-synthesis bug type of the code is: 'MLU'
'MLU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS I...
The wrong part of the code is: for (int i = 0; i < 9; i++) { // some code } The high-level-synthesis bug type of the code is: 'MLU' The right code snippet is: for (int i = 0; i < 10; i++) { // some code }
'MLU'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=we bundle=CTRL_BUS #prag...
The wrong part of the code is: int memory[1<<addr_width] = {0}; The right code snippet is: int memory[1<<addr_width];
'ZERO'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=we bundle=CTRL_BUS #pragma HL...
The right code snippet is: int memory[1<<addr_width];
'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=we bundle=CTR...
The wrong part of the code is: int memory[1<<addr_width] = {0}; The high-level-synthesis bug type of the code is: 'ZERO'
'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS I...
The wrong part of the code is: int memory[1<<addr_width] = {0}; The high-level-synthesis bug type of the code is: 'ZERO' The right code snippet is: int memory[1<<addr_width];
'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=we bundle=CTRL_BUS #prag...
The wrong part of the code is: int buffer[16]; #pragma HLS ARRAY_PARTITION variable=buffer cyclic dim=1 factor=2 The right code snippet is: int buffer[16]; #pragma HLS ARRAY_PARTITION variable=buffer complete dim=1
'BUF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=we bundle=CTRL_BUS #pragma HL...
The right code snippet is: int buffer[16]; #pragma HLS ARRAY_PARTITION variable=buffer complete dim=1
'BUF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=we bundle=CTR...
The wrong part of the code is: int buffer[16]; #pragma HLS ARRAY_PARTITION variable=buffer cyclic dim=1 factor=2 The high-level-synthesis bug type of the code is: 'BUF'
'BUF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS I...
The wrong part of the code is: int buffer[16]; #pragma HLS ARRAY_PARTITION variable=buffer cyclic dim=1 factor=2 The high-level-synthesis bug type of the code is: 'BUF' The right code snippet is: int buffer[16]; #pragma HLS ARRAY_PARTITION variable=buffer complete dim=1
'BUF'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=we bundle=CTRL_BUS #prag...
The wrong part of the code is: int buffer[16]; #pragma HLS ARRAY_PARTITION variable=buffer cyclic dim=2 factor=2 The right code snippet is: int buffer[16]; #pragma HLS ARRAY_PARTITION variable=buffer complete dim=1
'APT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=we bundle=CTRL_BUS #pragma HL...
The right code snippet is: int buffer[16]; #pragma HLS ARRAY_PARTITION variable=buffer complete dim=1
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=we bundle=CTR...
The wrong part of the code is: int buffer[16]; #pragma HLS ARRAY_PARTITION variable=buffer cyclic dim=2 factor=2 The high-level-synthesis bug type of the code is: 'APT'
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS I...
The wrong part of the code is: int buffer[16]; #pragma HLS ARRAY_PARTITION variable=buffer cyclic dim=2 factor=2 The high-level-synthesis bug type of the code is: 'APT' The right code snippet is: int buffer[16]; #pragma HLS ARRAY_PARTITION variable=buffer complete dim=1
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=we bundle=CTRL_BUS #prag...
The wrong part of the code is: int buffer[16]; #pragma HLS ARRAY_PARTITION variable=buffer cyclic dim=1 factor=3 The right code snippet is: int buffer[16]; #pragma HLS ARRAY_PARTITION variable=buffer cyclic dim=1 factor=2
'FND'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=we bundle=CTRL_BUS #pragma HL...
The right code snippet is: int buffer[16]; #pragma HLS ARRAY_PARTITION variable=buffer cyclic dim=1 factor=2
'FND'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=we bundle=CTR...
The wrong part of the code is: int buffer[16]; #pragma HLS ARRAY_PARTITION variable=buffer cyclic dim=1 factor=3 The high-level-synthesis bug type of the code is: 'FND'
'FND'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS I...
The wrong part of the code is: int buffer[16]; #pragma HLS ARRAY_PARTITION variable=buffer cyclic dim=1 factor=3 The high-level-synthesis bug type of the code is: 'FND' The right code snippet is: int buffer[16]; #pragma HLS ARRAY_PARTITION variable=buffer cyclic dim=1 factor=2
'FND'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=we bundle=CTRL_BUS #prag...
The wrong part of the code is: int buffer[16]; #pragma HLS ARRAY_PARTITION variable=buffer cyclic dim=2 factor=2 The right code snippet is: int buffer[16]; #pragma HLS ARRAY_PARTITION variable=buffer cyclic dim=1 factor=2
'DID'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=we bundle=CTRL_BUS #pragma HL...
The right code snippet is: int buffer[16]; #pragma HLS ARRAY_PARTITION variable=buffer cyclic dim=1 factor=2
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=we bundle=CTR...
The wrong part of the code is: int buffer[16]; #pragma HLS ARRAY_PARTITION variable=buffer cyclic dim=2 factor=2 The high-level-synthesis bug type of the code is: 'DID'
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS I...
The wrong part of the code is: int buffer[16]; #pragma HLS ARRAY_PARTITION variable=buffer cyclic dim=2 factor=2 The high-level-synthesis bug type of the code is: 'DID' The right code snippet is: int buffer[16]; #pragma HLS ARRAY_PARTITION variable=buffer cyclic dim=1 factor=2
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=we bundle=CTRL_BUS #prag...
The wrong part of the code is: for (int i = 0; i < 10; i++) { #pragma HLS PIPELINE // some code } The right code snippet is: for (int i = 0; i < 10; i++) { // some code }
'DFP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=we bundle=CTRL_BUS #pragma HL...
The right code snippet is: for (int i = 0; i < 10; i++) { // some code }
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=we bundle=CTR...
The wrong part of the code is: for (int i = 0; i < 10; i++) { #pragma HLS PIPELINE // some code } The high-level-synthesis bug type of the code is: 'DFP'
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS I...
The wrong part of the code is: for (int i = 0; i < 10; i++) { #pragma HLS PIPELINE // some code } The high-level-synthesis bug type of the code is: 'DFP' The right code snippet is: for (int i = 0; i < 10; i++) { // some code }
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE m_axi port=we bundle=CTRL_BUS #pragma H...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=we bundle=CTRL_BUS The right code snippet is: #pragma HLS INTERFACE s_axilite port=we bundle=CTRL_BUS
'IDAP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE m_axi port=we bundle=CTRL_BUS #pragma HLS IN...
The right code snippet is: #pragma HLS INTERFACE s_axilite port=we bundle=CTRL_BUS
'IDAP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE m_axi port=we bundle=CTRL_BU...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=we bundle=CTRL_BUS The high-level-synthesis bug type of the code is: 'IDAP'
'IDAP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS I...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=we bundle=CTRL_BUS The high-level-synthesis bug type of the code is: 'IDAP' The right code snippet is: #pragma HLS INTERFACE s_axilite port=we bundle=CTRL_BUS
'IDAP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE m_axi port=we offset=slave bundle=CTRL_...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=we offset=slave bundle=CTRL_BUS The right code snippet is: #pragma HLS INTERFACE s_axilite port=we bundle=CTRL_BUS
'RAMB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE m_axi port=we offset=slave bundle=CTRL_BUS #...
The right code snippet is: #pragma HLS INTERFACE s_axilite port=we bundle=CTRL_BUS
'RAMB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE m_axi port=we offset=slave b...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=we offset=slave bundle=CTRL_BUS The high-level-synthesis bug type of the code is: 'RAMB'
'RAMB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS I...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=we offset=slave bundle=CTRL_BUS The high-level-synthesis bug type of the code is: 'RAMB' The right code snippet is: #pragma HLS INTERFACE s_axilite port=we bundle=CTRL_BUS
'RAMB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE bram port=we bundle=CTRL_BUS #pragma HL...
The wrong part of the code is: #pragma HLS INTERFACE bram port=we bundle=CTRL_BUS The right code snippet is: #pragma HLS INTERFACE s_axilite port=we bundle=CTRL_BUS
'SMA'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE bram port=we bundle=CTRL_BUS #pragma HLS INT...
The right code snippet is: #pragma HLS INTERFACE s_axilite port=we bundle=CTRL_BUS
'SMA'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE bram port=we bundle=CTRL_BUS...
The wrong part of the code is: #pragma HLS INTERFACE bram port=we bundle=CTRL_BUS The high-level-synthesis bug type of the code is: 'SMA'
'SMA'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS I...
The wrong part of the code is: #pragma HLS INTERFACE bram port=we bundle=CTRL_BUS The high-level-synthesis bug type of the code is: 'SMA' The right code snippet is: #pragma HLS INTERFACE s_axilite port=we bundle=CTRL_BUS
'SMA'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=we bundle=CTRL_BUS #prag...
The wrong part of the code is: #pragma HLS INTERFACE s_axilite port=memory The right code snippet is: #pragma HLS INTERFACE bram port=memory
'AMS'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=we bundle=CTRL_BUS #pragma HL...
The right code snippet is: #pragma HLS INTERFACE bram port=memory
'AMS'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=we bundle=CTR...
The wrong part of the code is: #pragma HLS INTERFACE s_axilite port=memory The high-level-synthesis bug type of the code is: 'AMS'
'AMS'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS I...
The wrong part of the code is: #pragma HLS INTERFACE s_axilite port=memory The high-level-synthesis bug type of the code is: 'AMS' The right code snippet is: #pragma HLS INTERFACE bram port=memory
'AMS'