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=DATA_IN #pragma HLS INTERFACE ap_none port=DATA_OUT #pragma HLS INTERFACE ap_none port=ADDR #pragma HLS INTERFACE ap_none port=WE #pragma HLS INTERFA...
The wrong part of the code is: memcpy(mem1, mem2 + DEPTH/2, DEPTH * sizeof(data_t)/2); The right code snippet is: memcpy(mem1, mem2, DEPTH * sizeof(data_t)/2);
'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=DATA_IN #pragma HLS INTERFACE ap_none port=DATA_OUT #pragma HLS INTERFACE ap_none port=ADDR #pragma HLS INTERFACE ap_none port=WE #pragma HLS INTERFACE ap...
The right code snippet is: memcpy(mem1, mem2, DEPTH * sizeof(data_t)/2);
'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=DATA_IN #pragma HLS INTERFACE ap_none port=DATA_OUT #pragma HLS INTERFACE ap_none port=ADDR #pragma HLS INTERFACE ap_none port=WE #pragma ...
The wrong part of the code is: memcpy(mem1, mem2 + DEPTH/2, DEPTH * sizeof(data_t)/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_none port=DATA_IN #pragma HLS INTERFACE ap_none port=DATA_OUT #pragma HLS INTERFACE ap_none port=ADDR #pragma H...
The wrong part of the code is: memcpy(mem1, mem2 + DEPTH/2, DEPTH * sizeof(data_t)/2); The high-level-synthesis bug type of the code is: 'BUF' The right code snippet is: memcpy(mem1, mem2, DEPTH * sizeof(data_t)/2);
'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=DATA_IN #pragma HLS INTERFACE ap_none port=DATA_OUT #pragma HLS INTERFACE ap_none port=ADDR #pragma HLS INTERFACE ap_none port=WE #pragma HLS INTERFA...
The wrong part of the code is: #pragma HLS array_partition variable=mem block factor=2 The right code snippet is: #pragma HLS array_partition variable=mem cyclic factor=2
'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=DATA_IN #pragma HLS INTERFACE ap_none port=DATA_OUT #pragma HLS INTERFACE ap_none port=ADDR #pragma HLS INTERFACE ap_none port=WE #pragma HLS INTERFACE ap...
The right code snippet is: #pragma HLS array_partition variable=mem cyclic factor=2
'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=DATA_IN #pragma HLS INTERFACE ap_none port=DATA_OUT #pragma HLS INTERFACE ap_none port=ADDR #pragma HLS INTERFACE ap_none port=WE #pragma ...
The wrong part of the code is: #pragma HLS array_partition variable=mem block 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_none port=DATA_IN #pragma HLS INTERFACE ap_none port=DATA_OUT #pragma HLS INTERFACE ap_none port=ADDR #pragma H...
The wrong part of the code is: #pragma HLS array_partition variable=mem block factor=2 The high-level-synthesis bug type of the code is: 'APT' The right code snippet is: #pragma HLS array_partition variable=mem cyclic factor=2
'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=DATA_IN #pragma HLS INTERFACE ap_none port=DATA_OUT #pragma HLS INTERFACE ap_none port=ADDR #pragma HLS INTERFACE ap_none port=WE #pragma HLS INTERFA...
The wrong part of the code is: #pragma HLS array_partition variable=mem cyclic factor=3 The right code snippet is: #pragma HLS array_partition variable=mem cyclic 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_none port=DATA_IN #pragma HLS INTERFACE ap_none port=DATA_OUT #pragma HLS INTERFACE ap_none port=ADDR #pragma HLS INTERFACE ap_none port=WE #pragma HLS INTERFACE ap...
The right code snippet is: #pragma HLS array_partition variable=mem cyclic 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_none port=DATA_IN #pragma HLS INTERFACE ap_none port=DATA_OUT #pragma HLS INTERFACE ap_none port=ADDR #pragma HLS INTERFACE ap_none port=WE #pragma ...
The wrong part of the code is: #pragma HLS array_partition variable=mem cyclic 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_none port=DATA_IN #pragma HLS INTERFACE ap_none port=DATA_OUT #pragma HLS INTERFACE ap_none port=ADDR #pragma H...
The wrong part of the code is: #pragma HLS array_partition variable=mem cyclic factor=3 The high-level-synthesis bug type of the code is: 'FND' The right code snippet is: #pragma HLS array_partition variable=mem cyclic 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_none port=DATA_IN #pragma HLS INTERFACE ap_none port=DATA_OUT #pragma HLS INTERFACE ap_none port=ADDR #pragma HLS INTERFACE ap_none port=WE #pragma HLS INTERFA...
The wrong part of the code is: #pragma HLS array_partition variable=mem cyclic factor=2 dim=2 The right code snippet is: #pragma HLS array_partition variable=mem cyclic factor=2 dim=1
'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=DATA_IN #pragma HLS INTERFACE ap_none port=DATA_OUT #pragma HLS INTERFACE ap_none port=ADDR #pragma HLS INTERFACE ap_none port=WE #pragma HLS INTERFACE ap...
The right code snippet is: #pragma HLS array_partition variable=mem cyclic factor=2 dim=1
'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=DATA_IN #pragma HLS INTERFACE ap_none port=DATA_OUT #pragma HLS INTERFACE ap_none port=ADDR #pragma HLS INTERFACE ap_none port=WE #pragma ...
The wrong part of the code is: #pragma HLS array_partition variable=mem cyclic factor=2 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=DATA_IN #pragma HLS INTERFACE ap_none port=DATA_OUT #pragma HLS INTERFACE ap_none port=ADDR #pragma H...
The wrong part of the code is: #pragma HLS array_partition variable=mem cyclic factor=2 dim=2 The high-level-synthesis bug type of the code is: 'DID' The right code snippet is: #pragma HLS array_partition variable=mem cyclic factor=2 dim=1
'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=DATA_IN #pragma HLS INTERFACE ap_none port=DATA_OUT #pragma HLS INTERFACE ap_none port=ADDR #pragma HLS INTERFACE ap_none port=WE #pragma HLS INTERFA...
The wrong part of the code is: #pragma HLS dataflow region The right code snippet is: #pragma HLS dataflow
'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=DATA_IN #pragma HLS INTERFACE ap_none port=DATA_OUT #pragma HLS INTERFACE ap_none port=ADDR #pragma HLS INTERFACE ap_none port=WE #pragma HLS INTERFACE ap...
The right code snippet is: #pragma HLS dataflow
'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=DATA_IN #pragma HLS INTERFACE ap_none port=DATA_OUT #pragma HLS INTERFACE ap_none port=ADDR #pragma HLS INTERFACE ap_none port=WE #pragma ...
The wrong part of the code is: #pragma HLS dataflow region 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_none port=DATA_IN #pragma HLS INTERFACE ap_none port=DATA_OUT #pragma HLS INTERFACE ap_none port=ADDR #pragma H...
The wrong part of the code is: #pragma HLS dataflow region The high-level-synthesis bug type of the code is: 'DFP' The right code snippet is: #pragma HLS dataflow
'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_none port=DATA_IN #pragma HLS INTERFACE ap_none port=DATA_OUT #pragma HLS INTERFACE ap_none port=ADDR #pragma HLS INTERFACE ap_none port=WE #pragma HLS INTERFA...
The wrong part of the code is: #pragma HLS interface ap_fifo port=DATA_IN The right code snippet is: #pragma HLS interface ap_none port=DATA_IN
'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_none port=DATA_IN #pragma HLS INTERFACE ap_none port=DATA_OUT #pragma HLS INTERFACE ap_none port=ADDR #pragma HLS INTERFACE ap_none port=WE #pragma HLS INTERFACE ap...
The right code snippet is: #pragma HLS interface ap_none port=DATA_IN
'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_none port=DATA_IN #pragma HLS INTERFACE ap_none port=DATA_OUT #pragma HLS INTERFACE ap_none port=ADDR #pragma HLS INTERFACE ap_none port=WE #pragma ...
The wrong part of the code is: #pragma HLS interface ap_fifo port=DATA_IN 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_none port=DATA_IN #pragma HLS INTERFACE ap_none port=DATA_OUT #pragma HLS INTERFACE ap_none port=ADDR #pragma H...
The wrong part of the code is: #pragma HLS interface ap_fifo port=DATA_IN The high-level-synthesis bug type of the code is: 'IDAP' The right code snippet is: #pragma HLS interface ap_none port=DATA_IN
'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_none port=DATA_IN #pragma HLS INTERFACE ap_none port=DATA_OUT #pragma HLS INTERFACE ap_none port=ADDR #pragma HLS INTERFACE ap_none port=WE #pragma HLS INTERFA...
The wrong part of the code is: #pragma HLS interface m_axi port=mem random The right code snippet is: #pragma HLS interface m_axi port=mem
'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_none port=DATA_IN #pragma HLS INTERFACE ap_none port=DATA_OUT #pragma HLS INTERFACE ap_none port=ADDR #pragma HLS INTERFACE ap_none port=WE #pragma HLS INTERFACE ap...
The right code snippet is: #pragma HLS interface m_axi port=mem
'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_none port=DATA_IN #pragma HLS INTERFACE ap_none port=DATA_OUT #pragma HLS INTERFACE ap_none port=ADDR #pragma HLS INTERFACE ap_none port=WE #pragma ...
The wrong part of the code is: #pragma HLS interface m_axi port=mem random 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_none port=DATA_IN #pragma HLS INTERFACE ap_none port=DATA_OUT #pragma HLS INTERFACE ap_none port=ADDR #pragma H...
The wrong part of the code is: #pragma HLS interface m_axi port=mem random The high-level-synthesis bug type of the code is: 'RAMB' The right code snippet is: #pragma HLS interface m_axi port=mem
'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_none port=DATA_IN #pragma HLS INTERFACE ap_none port=DATA_OUT #pragma HLS INTERFACE ap_none port=ADDR #pragma HLS INTERFACE ap_none port=WE #pragma HLS INTERFA...
The wrong part of the code is: #pragma HLS interface bram port=DATA_IN The right code snippet is: #pragma HLS interface ap_none port=DATA_IN
'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_none port=DATA_IN #pragma HLS INTERFACE ap_none port=DATA_OUT #pragma HLS INTERFACE ap_none port=ADDR #pragma HLS INTERFACE ap_none port=WE #pragma HLS INTERFACE ap...
The right code snippet is: #pragma HLS interface ap_none port=DATA_IN
'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_none port=DATA_IN #pragma HLS INTERFACE ap_none port=DATA_OUT #pragma HLS INTERFACE ap_none port=ADDR #pragma HLS INTERFACE ap_none port=WE #pragma ...
The wrong part of the code is: #pragma HLS interface bram port=DATA_IN 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_none port=DATA_IN #pragma HLS INTERFACE ap_none port=DATA_OUT #pragma HLS INTERFACE ap_none port=ADDR #pragma H...
The wrong part of the code is: #pragma HLS interface bram port=DATA_IN The high-level-synthesis bug type of the code is: 'SMA' The right code snippet is: #pragma HLS interface ap_none port=DATA_IN
'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_none port=DATA_IN #pragma HLS INTERFACE ap_none port=DATA_OUT #pragma HLS INTERFACE ap_none port=ADDR #pragma HLS INTERFACE ap_none port=WE #pragma HLS INTERFA...
The wrong part of the code is: #pragma HLS interface ap_none port=mem The right code snippet is: #pragma HLS interface ap_fifo port=mem
'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_none port=DATA_IN #pragma HLS INTERFACE ap_none port=DATA_OUT #pragma HLS INTERFACE ap_none port=ADDR #pragma HLS INTERFACE ap_none port=WE #pragma HLS INTERFACE ap...
The right code snippet is: #pragma HLS interface ap_fifo port=mem
'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_none port=DATA_IN #pragma HLS INTERFACE ap_none port=DATA_OUT #pragma HLS INTERFACE ap_none port=ADDR #pragma HLS INTERFACE ap_none port=WE #pragma ...
The wrong part of the code is: #pragma HLS interface ap_none port=mem 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_none port=DATA_IN #pragma HLS INTERFACE ap_none port=DATA_OUT #pragma HLS INTERFACE ap_none port=ADDR #pragma H...
The wrong part of the code is: #pragma HLS interface ap_none port=mem The high-level-synthesis bug type of the code is: 'AMS' The right code snippet is: #pragma HLS interface ap_fifo port=mem
'AMS'
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=DATA_IN #pragma HLS INTERFACE ap_none port=DATA_OUT #pragma HLS INTERFACE ap_none port=ADDR #pragma HLS INTERFACE ap_none port=WE #pragma HLS INTERFA...
The wrong part of the code is: #pragma HLS pipeline II=2 The right code snippet is: #pragma HLS pipeline
'MLP'
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=DATA_IN #pragma HLS INTERFACE ap_none port=DATA_OUT #pragma HLS INTERFACE ap_none port=ADDR #pragma HLS INTERFACE ap_none port=WE #pragma HLS INTERFACE ap...
The right code snippet is: #pragma HLS pipeline
'MLP'
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=DATA_IN #pragma HLS INTERFACE ap_none port=DATA_OUT #pragma HLS INTERFACE ap_none port=ADDR #pragma HLS INTERFACE ap_none port=WE #pragma ...
The wrong part of the code is: #pragma HLS pipeline II=2 The high-level-synthesis bug type of the code is: 'MLP'
'MLP'
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=DATA_IN #pragma HLS INTERFACE ap_none port=DATA_OUT #pragma HLS INTERFACE ap_none port=ADDR #pragma H...
The wrong part of the code is: #pragma HLS pipeline II=2 The high-level-synthesis bug type of the code is: 'MLP' The right code snippet is: #pragma HLS pipeline
'MLP'
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=DATA_IN #pragma HLS INTERFACE ap_none port=DATA_OUT #pragma HLS INTERFACE ap_none port=ADDR #pragma HLS INTERFACE ap_none port=WE #pragma HLS INTERFA...
The wrong part of the code is: #pragma HLS unroll factor=2 The right code snippet is: #pragma HLS unroll
'ILNU'
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=DATA_IN #pragma HLS INTERFACE ap_none port=DATA_OUT #pragma HLS INTERFACE ap_none port=ADDR #pragma HLS INTERFACE ap_none port=WE #pragma HLS INTERFACE ap...
The right code snippet is: #pragma HLS unroll
'ILNU'
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=DATA_IN #pragma HLS INTERFACE ap_none port=DATA_OUT #pragma HLS INTERFACE ap_none port=ADDR #pragma HLS INTERFACE ap_none port=WE #pragma ...
The wrong part of the code is: #pragma HLS unroll factor=2 The high-level-synthesis bug type of the code is: 'ILNU'
'ILNU'
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=DATA_IN #pragma HLS INTERFACE ap_none port=DATA_OUT #pragma HLS INTERFACE ap_none port=ADDR #pragma H...
The wrong part of the code is: #pragma HLS unroll factor=2 The high-level-synthesis bug type of the code is: 'ILNU' The right code snippet is: #pragma HLS unroll
'ILNU'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #include <ap_fixed.h> typedef ap_uint<8> uint8_t; typedef ap_uint<16> uint16_t; void pipelined_multiplier( bool clk, bool rst, uint8_t num1, uint8_t num2, uint16_...
The wrong part of the code is: multiplier_output1 = multiplier_input1 * multiplier_input2 + 1; The right code snippet is: multiplier_output1 = multiplier_input1 * multiplier_input2;
'OOB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <ap_fixed.h> typedef ap_uint<8> uint8_t; typedef ap_uint<16> uint16_t; void pipelined_multiplier( bool clk, bool rst, uint8_t num1, uint8_t num2, uint16_t& pr...
The right code snippet is: multiplier_output1 = multiplier_input1 * multiplier_input2;
'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: #include <ap_fixed.h> typedef ap_uint<8> uint8_t; typedef ap_uint<16> uint16_t; void pipelined_multiplier( bool clk, bool rst, uint8_t num1, uint8_t num2, ...
The wrong part of the code is: multiplier_output1 = multiplier_input1 * multiplier_input2 + 1; 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: #include <ap_fixed.h> typedef ap_uint<8> uint8_t; typedef ap_uint<16> uint16_t; void pipelined_multiplier( bool clk, bool rst,...
The wrong part of the code is: multiplier_output1 = multiplier_input1 * multiplier_input2 + 1; The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: multiplier_output1 = multiplier_input1 * multiplier_input2;
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #include <ap_fixed.h> typedef ap_uint<8> uint8_t; typedef ap_uint<16> uint16_t; void pipelined_multiplier( bool clk, bool rst, uint8_t num1, uint8_t num2, uint16_...
The wrong part of the code is: uint8_t multiplier_input1; The right code snippet is: static uint8_t multiplier_input1;
'INIT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <ap_fixed.h> typedef ap_uint<8> uint8_t; typedef ap_uint<16> uint16_t; void pipelined_multiplier( bool clk, bool rst, uint8_t num1, uint8_t num2, uint16_t& pr...
The right code snippet is: static uint8_t multiplier_input1;
'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: #include <ap_fixed.h> typedef ap_uint<8> uint8_t; typedef ap_uint<16> uint16_t; void pipelined_multiplier( bool clk, bool rst, uint8_t num1, uint8_t num2, ...
The wrong part of the code is: uint8_t multiplier_input1; 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: #include <ap_fixed.h> typedef ap_uint<8> uint8_t; typedef ap_uint<16> uint16_t; void pipelined_multiplier( bool clk, bool rst,...
The wrong part of the code is: uint8_t multiplier_input1; The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: static uint8_t multiplier_input1;
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #include <ap_fixed.h> typedef ap_uint<8> uint8_t; typedef ap_uint<16> uint16_t; void pipelined_multiplier( bool clk, bool rst, uint8_t num1, uint8_t num2, uint16_...
The wrong part of the code is: multiplier_output1 = multiplier_input1 << multiplier_input2; The right code snippet is: multiplier_output1 = multiplier_input1 * multiplier_input2;
'SHFT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <ap_fixed.h> typedef ap_uint<8> uint8_t; typedef ap_uint<16> uint16_t; void pipelined_multiplier( bool clk, bool rst, uint8_t num1, uint8_t num2, uint16_t& pr...
The right code snippet is: multiplier_output1 = multiplier_input1 * multiplier_input2;
'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: #include <ap_fixed.h> typedef ap_uint<8> uint8_t; typedef ap_uint<16> uint16_t; void pipelined_multiplier( bool clk, bool rst, uint8_t num1, uint8_t num2, ...
The wrong part of the code is: multiplier_output1 = multiplier_input1 << multiplier_input2; 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: #include <ap_fixed.h> typedef ap_uint<8> uint8_t; typedef ap_uint<16> uint16_t; void pipelined_multiplier( bool clk, bool rst,...
The wrong part of the code is: multiplier_output1 = multiplier_input1 << multiplier_input2; The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: multiplier_output1 = multiplier_input1 * multiplier_input2;
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #include <ap_fixed.h> typedef ap_uint<8> uint8_t; typedef ap_uint<16> uint16_t; void pipelined_multiplier( bool clk, bool rst, uint8_t num1, uint8_t num2, uint16_...
The wrong part of the code is: for (int i = 0; i >= 0; i++) { // code block } The right code snippet is: for (int i = 0; i < 10; i++) { // code block }
'INF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <ap_fixed.h> typedef ap_uint<8> uint8_t; typedef ap_uint<16> uint16_t; void pipelined_multiplier( bool clk, bool rst, uint8_t num1, uint8_t num2, uint16_t& pr...
The right code snippet is: for (int i = 0; i < 10; i++) { // code block }
'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: #include <ap_fixed.h> typedef ap_uint<8> uint8_t; typedef ap_uint<16> uint16_t; void pipelined_multiplier( bool clk, bool rst, uint8_t num1, uint8_t num2, ...
The wrong part of the code is: for (int i = 0; i >= 0; i++) { // code block } 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: #include <ap_fixed.h> typedef ap_uint<8> uint8_t; typedef ap_uint<16> uint16_t; void pipelined_multiplier( bool clk, bool rst,...
The wrong part of the code is: for (int i = 0; i >= 0; i++) { // code block } The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: for (int i = 0; i < 10; i++) { // code block }
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #include <ap_fixed.h> typedef ap_uint<8> uint8_t; typedef ap_uint<16> uint16_t; void pipelined_multiplier( bool clk, bool rst, uint8_t num1, uint8_t num2, uint16_...
The wrong part of the code is: static int8_t multiplier_input1; The right code snippet is: static uint8_t multiplier_input1;
'USE'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <ap_fixed.h> typedef ap_uint<8> uint8_t; typedef ap_uint<16> uint16_t; void pipelined_multiplier( bool clk, bool rst, uint8_t num1, uint8_t num2, uint16_t& pr...
The right code snippet is: static uint8_t multiplier_input1;
'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: #include <ap_fixed.h> typedef ap_uint<8> uint8_t; typedef ap_uint<16> uint16_t; void pipelined_multiplier( bool clk, bool rst, uint8_t num1, uint8_t num2, ...
The wrong part of the code is: static int8_t multiplier_input1; 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: #include <ap_fixed.h> typedef ap_uint<8> uint8_t; typedef ap_uint<16> uint16_t; void pipelined_multiplier( bool clk, bool rst,...
The wrong part of the code is: static int8_t multiplier_input1; The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: static uint8_t multiplier_input1;
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #include <ap_fixed.h> typedef ap_uint<8> uint8_t; typedef ap_uint<16> uint16_t; void pipelined_multiplier( bool clk, bool rst, uint8_t num1, uint8_t num2, uint16_...
The wrong part of the code is: for (int i = 0; i < 9; i++) { // code block } The right code snippet is: for (int i = 0; i < 10; i++) { // code block }
'MLU'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <ap_fixed.h> typedef ap_uint<8> uint8_t; typedef ap_uint<16> uint16_t; void pipelined_multiplier( bool clk, bool rst, uint8_t num1, uint8_t num2, uint16_t& pr...
The right code snippet is: for (int i = 0; i < 10; i++) { // code block }
'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: #include <ap_fixed.h> typedef ap_uint<8> uint8_t; typedef ap_uint<16> uint16_t; void pipelined_multiplier( bool clk, bool rst, uint8_t num1, uint8_t num2, ...
The wrong part of the code is: for (int i = 0; i < 9; i++) { // code block } 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: #include <ap_fixed.h> typedef ap_uint<8> uint8_t; typedef ap_uint<16> uint16_t; void pipelined_multiplier( bool clk, bool rst,...
The wrong part of the code is: for (int i = 0; i < 9; i++) { // code block } The high-level-synthesis bug type of the code is: 'MLU' The right code snippet is: for (int i = 0; i < 10; i++) { // code block }
'MLU'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #include <ap_fixed.h> typedef ap_uint<8> uint8_t; typedef ap_uint<16> uint16_t; void pipelined_multiplier( bool clk, bool rst, uint8_t num1, uint8_t num2, uint16_...
The wrong part of the code is: multiplier_input1 = 1; The right code snippet is: multiplier_input1 = 0;
'ZERO'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <ap_fixed.h> typedef ap_uint<8> uint8_t; typedef ap_uint<16> uint16_t; void pipelined_multiplier( bool clk, bool rst, uint8_t num1, uint8_t num2, uint16_t& pr...
The right code snippet is: multiplier_input1 = 0;
'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: #include <ap_fixed.h> typedef ap_uint<8> uint8_t; typedef ap_uint<16> uint16_t; void pipelined_multiplier( bool clk, bool rst, uint8_t num1, uint8_t num2, ...
The wrong part of the code is: multiplier_input1 = 1; 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: #include <ap_fixed.h> typedef ap_uint<8> uint8_t; typedef ap_uint<16> uint16_t; void pipelined_multiplier( bool clk, bool rst,...
The wrong part of the code is: multiplier_input1 = 1; The high-level-synthesis bug type of the code is: 'ZERO' The right code snippet is: multiplier_input1 = 0;
'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #include <ap_fixed.h> typedef ap_uint<8> uint8_t; typedef ap_uint<16> uint16_t; void pipelined_multiplier( bool clk, bool rst, uint8_t num1, uint8_t num2, uint16_...
The wrong part of the code is: memcpy(buffer1, buffer2 + size/2, size); The right code snippet is: memcpy(buffer1, buffer2, size);
'BUF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <ap_fixed.h> typedef ap_uint<8> uint8_t; typedef ap_uint<16> uint16_t; void pipelined_multiplier( bool clk, bool rst, uint8_t num1, uint8_t num2, uint16_t& pr...
The right code snippet is: memcpy(buffer1, buffer2, size);
'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: #include <ap_fixed.h> typedef ap_uint<8> uint8_t; typedef ap_uint<16> uint16_t; void pipelined_multiplier( bool clk, bool rst, uint8_t num1, uint8_t num2, ...
The wrong part of the code is: memcpy(buffer1, buffer2 + size/2, size); 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: #include <ap_fixed.h> typedef ap_uint<8> uint8_t; typedef ap_uint<16> uint16_t; void pipelined_multiplier( bool clk, bool rst,...
The wrong part of the code is: memcpy(buffer1, buffer2 + size/2, size); The high-level-synthesis bug type of the code is: 'BUF' The right code snippet is: memcpy(buffer1, buffer2, size);
'BUF'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #include <ap_fixed.h> typedef ap_uint<8> uint8_t; typedef ap_uint<16> uint16_t; void pipelined_multiplier( bool clk, bool rst, uint8_t num1, uint8_t num2, uint16_...
The wrong part of the code is: #pragma HLS array_partition variable=multiplier_input1 cyclic The right code snippet is: #pragma HLS array_partition variable=multiplier_input1 complete
'APT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <ap_fixed.h> typedef ap_uint<8> uint8_t; typedef ap_uint<16> uint16_t; void pipelined_multiplier( bool clk, bool rst, uint8_t num1, uint8_t num2, uint16_t& pr...
The right code snippet is: #pragma HLS array_partition variable=multiplier_input1 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: #include <ap_fixed.h> typedef ap_uint<8> uint8_t; typedef ap_uint<16> uint16_t; void pipelined_multiplier( bool clk, bool rst, uint8_t num1, uint8_t num2, ...
The wrong part of the code is: #pragma HLS array_partition variable=multiplier_input1 cyclic 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: #include <ap_fixed.h> typedef ap_uint<8> uint8_t; typedef ap_uint<16> uint16_t; void pipelined_multiplier( bool clk, bool rst,...
The wrong part of the code is: #pragma HLS array_partition variable=multiplier_input1 cyclic The high-level-synthesis bug type of the code is: 'APT' The right code snippet is: #pragma HLS array_partition variable=multiplier_input1 complete
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #include <ap_fixed.h> typedef ap_uint<8> uint8_t; typedef ap_uint<16> uint16_t; void pipelined_multiplier( bool clk, bool rst, uint8_t num1, uint8_t num2, uint16_...
The wrong part of the code is: #pragma HLS array_partition variable=multiplier_input1 factor=3 The right code snippet is: #pragma HLS array_partition variable=multiplier_input1 complete
'FND'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <ap_fixed.h> typedef ap_uint<8> uint8_t; typedef ap_uint<16> uint16_t; void pipelined_multiplier( bool clk, bool rst, uint8_t num1, uint8_t num2, uint16_t& pr...
The right code snippet is: #pragma HLS array_partition variable=multiplier_input1 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: #include <ap_fixed.h> typedef ap_uint<8> uint8_t; typedef ap_uint<16> uint16_t; void pipelined_multiplier( bool clk, bool rst, uint8_t num1, uint8_t num2, ...
The wrong part of the code is: #pragma HLS array_partition variable=multiplier_input1 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: #include <ap_fixed.h> typedef ap_uint<8> uint8_t; typedef ap_uint<16> uint16_t; void pipelined_multiplier( bool clk, bool rst,...
The wrong part of the code is: #pragma HLS array_partition variable=multiplier_input1 factor=3 The high-level-synthesis bug type of the code is: 'FND' The right code snippet is: #pragma HLS array_partition variable=multiplier_input1 complete
'FND'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #include <ap_fixed.h> typedef ap_uint<8> uint8_t; typedef ap_uint<16> uint16_t; void pipelined_multiplier( bool clk, bool rst, uint8_t num1, uint8_t num2, uint16_...
The wrong part of the code is: #pragma HLS array_partition variable=multiplier_input1 dim=2 The right code snippet is: #pragma HLS array_partition variable=multiplier_input1 complete
'DID'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <ap_fixed.h> typedef ap_uint<8> uint8_t; typedef ap_uint<16> uint16_t; void pipelined_multiplier( bool clk, bool rst, uint8_t num1, uint8_t num2, uint16_t& pr...
The right code snippet is: #pragma HLS array_partition variable=multiplier_input1 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: #include <ap_fixed.h> typedef ap_uint<8> uint8_t; typedef ap_uint<16> uint16_t; void pipelined_multiplier( bool clk, bool rst, uint8_t num1, uint8_t num2, ...
The wrong part of the code is: #pragma HLS array_partition variable=multiplier_input1 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: #include <ap_fixed.h> typedef ap_uint<8> uint8_t; typedef ap_uint<16> uint16_t; void pipelined_multiplier( bool clk, bool rst,...
The wrong part of the code is: #pragma HLS array_partition variable=multiplier_input1 dim=2 The high-level-synthesis bug type of the code is: 'DID' The right code snippet is: #pragma HLS array_partition variable=multiplier_input1 complete
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #include <ap_fixed.h> typedef ap_uint<8> uint8_t; typedef ap_uint<16> uint16_t; void pipelined_multiplier( bool clk, bool rst, uint8_t num1, uint8_t num2, uint16_...
The wrong part of the code is: #pragma HLS dataflow region The right code snippet is: #pragma HLS dataflow
'DFP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <ap_fixed.h> typedef ap_uint<8> uint8_t; typedef ap_uint<16> uint16_t; void pipelined_multiplier( bool clk, bool rst, uint8_t num1, uint8_t num2, uint16_t& pr...
The right code snippet is: #pragma HLS dataflow
'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: #include <ap_fixed.h> typedef ap_uint<8> uint8_t; typedef ap_uint<16> uint16_t; void pipelined_multiplier( bool clk, bool rst, uint8_t num1, uint8_t num2, ...
The wrong part of the code is: #pragma HLS dataflow region 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: #include <ap_fixed.h> typedef ap_uint<8> uint8_t; typedef ap_uint<16> uint16_t; void pipelined_multiplier( bool clk, bool rst,...
The wrong part of the code is: #pragma HLS dataflow region The high-level-synthesis bug type of the code is: 'DFP' The right code snippet is: #pragma HLS dataflow
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #include <ap_fixed.h> typedef ap_uint<8> uint8_t; typedef ap_uint<16> uint16_t; void pipelined_multiplier( bool clk, bool rst, uint8_t num1, uint8_t num2, uint16_...
The wrong part of the code is: #pragma HLS interface ap_none port=num1 The right code snippet is: #pragma HLS interface axis port=num1
'IDAP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <ap_fixed.h> typedef ap_uint<8> uint8_t; typedef ap_uint<16> uint16_t; void pipelined_multiplier( bool clk, bool rst, uint8_t num1, uint8_t num2, uint16_t& pr...
The right code snippet is: #pragma HLS interface axis port=num1
'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: #include <ap_fixed.h> typedef ap_uint<8> uint8_t; typedef ap_uint<16> uint16_t; void pipelined_multiplier( bool clk, bool rst, uint8_t num1, uint8_t num2, ...
The wrong part of the code is: #pragma HLS interface ap_none port=num1 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: #include <ap_fixed.h> typedef ap_uint<8> uint8_t; typedef ap_uint<16> uint16_t; void pipelined_multiplier( bool clk, bool rst,...
The wrong part of the code is: #pragma HLS interface ap_none port=num1 The high-level-synthesis bug type of the code is: 'IDAP' The right code snippet is: #pragma HLS interface axis port=num1
'IDAP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #include <ap_fixed.h> typedef ap_uint<8> uint8_t; typedef ap_uint<16> uint16_t; void pipelined_multiplier( bool clk, bool rst, uint8_t num1, uint8_t num2, uint16_...
The wrong part of the code is: #pragma HLS interface m_axi port=buffer1 offset=slave The right code snippet is: #pragma HLS interface m_axi port=buffer1 offset=direct
'RAMB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <ap_fixed.h> typedef ap_uint<8> uint8_t; typedef ap_uint<16> uint16_t; void pipelined_multiplier( bool clk, bool rst, uint8_t num1, uint8_t num2, uint16_t& pr...
The right code snippet is: #pragma HLS interface m_axi port=buffer1 offset=direct
'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: #include <ap_fixed.h> typedef ap_uint<8> uint8_t; typedef ap_uint<16> uint16_t; void pipelined_multiplier( bool clk, bool rst, uint8_t num1, uint8_t num2, ...
The wrong part of the code is: #pragma HLS interface m_axi port=buffer1 offset=slave 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: #include <ap_fixed.h> typedef ap_uint<8> uint8_t; typedef ap_uint<16> uint16_t; void pipelined_multiplier( bool clk, bool rst,...
The wrong part of the code is: #pragma HLS interface m_axi port=buffer1 offset=slave The high-level-synthesis bug type of the code is: 'RAMB' The right code snippet is: #pragma HLS interface m_axi port=buffer1 offset=direct
'RAMB'