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: ``` #include <ap_int.h> void shift_register( bool clk, bool load, ap_uint<4> data_in, m_axi_out.write(data_out); ) { #pragma HLS INTERFACE ap_ctrl_none port=return...
The wrong part of the code is: m_axi_out.write(data_out); The right code snippet is: ap_uint<4>& data_out
'RAMB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void shift_register( bool clk, bool load, ap_uint<4> data_in, m_axi_out.write(data_out); ) { #pragma HLS INTERFACE ap_ctrl_none port=return ...
The right code snippet is: ap_uint<4>& data_out
'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_int.h> void shift_register( bool clk, bool load, ap_uint<4> data_in, m_axi_out.write(data_out); ) { #pragma HLS INTERFACE ap_ctrl_none ...
The wrong part of the code is: m_axi_out.write(data_out); 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_int.h> void shift_register( bool clk, bool load, ap_uint<4> data_in, m_axi_out.write(data_out); ) { ...
The wrong part of the code is: m_axi_out.write(data_out); The high-level-synthesis bug type of the code is: 'RAMB' The right code snippet is: ap_uint<4>& data_out
'RAMB'
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_int.h> void shift_register( bool clk, bool load, ap_uint<4> data_in, ap_uint<4>& data_out ) { #pragma HLS INTERFACE ap_ctrl_none port=return #...
The wrong part of the code is: bool clk, bool load, ap_uint<4> data_in[2], ap_uint<4>& data_out The right code snippet is: bool clk, bool load, ap_uint<4> data_in, ap_uint<4>& data_out
'SMA'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void shift_register( bool clk, bool load, ap_uint<4> data_in, ap_uint<4>& data_out ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragm...
The right code snippet is: bool clk, bool load, ap_uint<4> data_in, ap_uint<4>& data_out
'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: ``` #include <ap_int.h> void shift_register( bool clk, bool load, ap_uint<4> data_in, ap_uint<4>& data_out ) { #pragma HLS INTERFACE ap_ctrl_none port=r...
The wrong part of the code is: bool clk, bool load, ap_uint<4> data_in[2], ap_uint<4>& data_out 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: ``` #include <ap_int.h> void shift_register( bool clk, bool load, ap_uint<4> data_in, ap_uint<4>& data_out ) { #pra...
The wrong part of the code is: bool clk, bool load, ap_uint<4> data_in[2], ap_uint<4>& data_out The high-level-synthesis bug type of the code is: 'SMA' The right code snippet is: bool clk, bool load, ap_uint<4> data_in, ap_uint<4>& data_out
'SMA'
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_int.h> void shift_register( bool clk, bool load, ap_uint<4> data_in, ap_uint<4>& data_out ) { #pragma HLS INTERFACE ap_ctrl_none port=return #...
The wrong part of the code is: bool clk, bool load, ap_uint<4> data_in, ap_uint<4> data_out The right code snippet is: bool clk, bool load, ap_uint<4> data_in, ap_uint<4>& data_out
'AMS'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void shift_register( bool clk, bool load, ap_uint<4> data_in, ap_uint<4>& data_out ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragm...
The right code snippet is: bool clk, bool load, ap_uint<4> data_in, ap_uint<4>& data_out
'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: ``` #include <ap_int.h> void shift_register( bool clk, bool load, ap_uint<4> data_in, ap_uint<4>& data_out ) { #pragma HLS INTERFACE ap_ctrl_none port=r...
The wrong part of the code is: bool clk, bool load, ap_uint<4> data_in, ap_uint<4> data_out 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: ``` #include <ap_int.h> void shift_register( bool clk, bool load, ap_uint<4> data_in, ap_uint<4>& data_out ) { #pra...
The wrong part of the code is: bool clk, bool load, ap_uint<4> data_in, ap_uint<4> data_out The high-level-synthesis bug type of the code is: 'AMS' The right code snippet is: bool clk, bool load, ap_uint<4> data_in, ap_uint<4>& data_out
'AMS'
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_int.h> void shift_register( bool clk, bool load, ap_uint<4> data_in, ap_uint<4>& data_out ) { #pragma HLS INTERFACE ap_ctrl_none port=return #...
The wrong part of the code is: #pragma HLS pipeline II=2 stage1 = stage4; The right code snippet is: stage1 = stage4;
'MLP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void shift_register( bool clk, bool load, ap_uint<4> data_in, ap_uint<4>& data_out ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragm...
The right code snippet is: stage1 = stage4;
'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: ``` #include <ap_int.h> void shift_register( bool clk, bool load, ap_uint<4> data_in, ap_uint<4>& data_out ) { #pragma HLS INTERFACE ap_ctrl_none port=r...
The wrong part of the code is: #pragma HLS pipeline II=2 stage1 = stage4; 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: ``` #include <ap_int.h> void shift_register( bool clk, bool load, ap_uint<4> data_in, ap_uint<4>& data_out ) { #pra...
The wrong part of the code is: #pragma HLS pipeline II=2 stage1 = stage4; The high-level-synthesis bug type of the code is: 'MLP' The right code snippet is: stage1 = stage4;
'MLP'
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_int.h> void shift_register( bool clk, bool load, ap_uint<4> data_in, ap_uint<4>& data_out ) { #pragma HLS INTERFACE ap_ctrl_none port=return #...
The wrong part of the code is: #pragma HLS unroll factor=3 for (int i = 0; i < 4; i++) { The right code snippet is: for (int i = 0; i < 4; i++) {
'ILNU'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void shift_register( bool clk, bool load, ap_uint<4> data_in, ap_uint<4>& data_out ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragm...
The right code snippet is: for (int i = 0; i < 4; i++) {
'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: ``` #include <ap_int.h> void shift_register( bool clk, bool load, ap_uint<4> data_in, ap_uint<4>& data_out ) { #pragma HLS INTERFACE ap_ctrl_none port=r...
The wrong part of the code is: #pragma HLS unroll factor=3 for (int i = 0; i < 4; i++) { 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: ``` #include <ap_int.h> void shift_register( bool clk, bool load, ap_uint<4> data_in, ap_uint<4>& data_out ) { #pra...
The wrong part of the code is: #pragma HLS unroll factor=3 for (int i = 0; i < 4; i++) { The high-level-synthesis bug type of the code is: 'ILNU' The right code snippet is: for (int i = 0; i < 4; i++) {
'ILNU'
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=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none...
The wrong part of the code is: sky130_fd_sc_ms__dlx2 dly1_inst; dly1_inst.A(invA); dly1_inst.Y(dly1[10]); The right code snippet is: sky130_fd_sc_ms__dlx2 dly1_inst; dly1_inst.A(invA); dly1_inst.Y(dly1);
'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_none port=A #pragma HLS INTERFACE ap_none port=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port...
The right code snippet is: sky130_fd_sc_ms__dlx2 dly1_inst; dly1_inst.A(invA); dly1_inst.Y(dly1);
'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_none port=A #pragma HLS INTERFACE ap_none port=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, bool &Y) { #pragma HLS INTERFACE a...
The wrong part of the code is: sky130_fd_sc_ms__dlx2 dly1_inst; dly1_inst.A(invA); dly1_inst.Y(dly1[10]); 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_none port=A #pragma HLS INTERFACE ap_none port=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, b...
The wrong part of the code is: sky130_fd_sc_ms__dlx2 dly1_inst; dly1_inst.A(invA); dly1_inst.Y(dly1[10]); The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: sky130_fd_sc_ms__dlx2 dly1_inst; dly1_inst.A(invA); dly1_inst.Y(dly1);
'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_none port=A #pragma HLS INTERFACE ap_none port=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none...
The wrong part of the code is: bool dly1, dly2, dly3 = false; The right code snippet is: bool dly1, dly2, dly3;
'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=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port...
The right code snippet is: bool dly1, dly2, dly3;
'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=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, bool &Y) { #pragma HLS INTERFACE a...
The wrong part of the code is: bool dly1, dly2, dly3 = false; 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=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, b...
The wrong part of the code is: bool dly1, dly2, dly3 = false; The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: bool dly1, dly2, dly3;
'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=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none...
The wrong part of the code is: bool VPWR = 1 << 10; The right code snippet is: bool VPWR = 1;
'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=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port...
The right code snippet is: bool VPWR = 1;
'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=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, bool &Y) { #pragma HLS INTERFACE a...
The wrong part of the code is: bool VPWR = 1 << 10; 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=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, b...
The wrong part of the code is: bool VPWR = 1 << 10; The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: bool VPWR = 1;
'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=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none...
The wrong part of the code is: for (int i = 0; i >= 0; i++) { The right code snippet is: for (int i = 0; i < 10; i++) {
'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=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port...
The right code snippet is: for (int i = 0; i < 10; i++) {
'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=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, bool &Y) { #pragma HLS INTERFACE a...
The wrong part of the code is: for (int i = 0; i >= 0; i++) { 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=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, b...
The wrong part of the code is: for (int i = 0; i >= 0; i++) { The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: for (int i = 0; i < 10; i++) {
'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=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none...
The wrong part of the code is: int VPB = 1 ; The right code snippet is: bool VPB = 1 ;
'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=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port...
The right code snippet is: bool VPB = 1 ;
'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=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, bool &Y) { #pragma HLS INTERFACE a...
The wrong part of the code is: int VPB = 1 ; 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=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, b...
The wrong part of the code is: int VPB = 1 ; The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: bool VPB = 1 ;
'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=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none...
The wrong part of the code is: for (int i = 0; i < 9; i++) { The right code snippet is: for (int i = 0; i < 10; i++) {
'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_none port=A #pragma HLS INTERFACE ap_none port=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port...
The right code snippet is: for (int i = 0; i < 10; i++) {
'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_none port=A #pragma HLS INTERFACE ap_none port=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, bool &Y) { #pragma HLS INTERFACE a...
The wrong part of the code is: for (int i = 0; i < 9; i++) { 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_none port=A #pragma HLS INTERFACE ap_none port=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, b...
The wrong part of the code is: for (int i = 0; i < 9; i++) { The high-level-synthesis bug type of the code is: 'MLU' The right code snippet is: for (int i = 0; i < 10; i++) {
'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_none port=A #pragma HLS INTERFACE ap_none port=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none...
The wrong part of the code is: bool VPB = 0 ; The right code snippet is: bool VPB = 1 ;
'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_none port=A #pragma HLS INTERFACE ap_none port=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port...
The right code snippet is: bool VPB = 1 ;
'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_none port=A #pragma HLS INTERFACE ap_none port=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, bool &Y) { #pragma HLS INTERFACE a...
The wrong part of the code is: bool VPB = 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_none port=A #pragma HLS INTERFACE ap_none port=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, b...
The wrong part of the code is: bool VPB = 0 ; The high-level-synthesis bug type of the code is: 'ZERO' The right code snippet is: bool VPB = 1 ;
'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_none port=A #pragma HLS INTERFACE ap_none port=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none...
The wrong part of the code is: bufif1(skew, Y, VNB, VPB); The right code snippet is: bufif1(skew, Y, VPB, VNB);
'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=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port...
The right code snippet is: bufif1(skew, Y, VPB, VNB);
'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=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, bool &Y) { #pragma HLS INTERFACE a...
The wrong part of the code is: bufif1(skew, Y, VNB, VPB); 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=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, b...
The wrong part of the code is: bufif1(skew, Y, VNB, VPB); The high-level-synthesis bug type of the code is: 'BUF' The right code snippet is: bufif1(skew, Y, VPB, VNB);
'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=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none...
The wrong part of the code is: #pragma HLS array_partition variable=dly1_inst.Y cyclic The right code snippet is: #pragma HLS array_partition variable=dly1_inst.Y complete
'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=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port...
The right code snippet is: #pragma HLS array_partition variable=dly1_inst.Y 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=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, bool &Y) { #pragma HLS INTERFACE a...
The wrong part of the code is: #pragma HLS array_partition variable=dly1_inst.Y 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: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, b...
The wrong part of the code is: #pragma HLS array_partition variable=dly1_inst.Y cyclic The high-level-synthesis bug type of the code is: 'APT' The right code snippet is: #pragma HLS array_partition variable=dly1_inst.Y 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: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none...
The wrong part of the code is: #pragma HLS array_partition variable=dly1_inst.Y complete factor=3 The right code snippet is: #pragma HLS array_partition variable=dly1_inst.Y complete 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=A #pragma HLS INTERFACE ap_none port=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port...
The right code snippet is: #pragma HLS array_partition variable=dly1_inst.Y complete 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=A #pragma HLS INTERFACE ap_none port=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, bool &Y) { #pragma HLS INTERFACE a...
The wrong part of the code is: #pragma HLS array_partition variable=dly1_inst.Y complete 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=A #pragma HLS INTERFACE ap_none port=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, b...
The wrong part of the code is: #pragma HLS array_partition variable=dly1_inst.Y complete factor=3 The high-level-synthesis bug type of the code is: 'FND' The right code snippet is: #pragma HLS array_partition variable=dly1_inst.Y complete 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=A #pragma HLS INTERFACE ap_none port=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none...
The wrong part of the code is: #pragma HLS array_partition variable=dly1_inst.Y complete dim=2 The right code snippet is: #pragma HLS array_partition variable=dly1_inst.Y complete 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=A #pragma HLS INTERFACE ap_none port=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port...
The right code snippet is: #pragma HLS array_partition variable=dly1_inst.Y complete 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=A #pragma HLS INTERFACE ap_none port=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, bool &Y) { #pragma HLS INTERFACE a...
The wrong part of the code is: #pragma HLS array_partition variable=dly1_inst.Y complete 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=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, b...
The wrong part of the code is: #pragma HLS array_partition variable=dly1_inst.Y complete dim=2 The high-level-synthesis bug type of the code is: 'DID' The right code snippet is: #pragma HLS array_partition variable=dly1_inst.Y complete 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=A #pragma HLS INTERFACE ap_none port=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none...
The wrong part of the code is: #pragma HLS dataflow loop_flatten 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=A #pragma HLS INTERFACE ap_none port=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port...
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=A #pragma HLS INTERFACE ap_none port=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, bool &Y) { #pragma HLS INTERFACE a...
The wrong part of the code is: #pragma HLS dataflow loop_flatten 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=A #pragma HLS INTERFACE ap_none port=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, b...
The wrong part of the code is: #pragma HLS dataflow loop_flatten 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=A #pragma HLS INTERFACE ap_none port=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none...
The wrong part of the code is: #pragma HLS interface ap_fifo port=A The right code snippet is: #pragma HLS interface ap_none port=A
'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=A #pragma HLS INTERFACE ap_none port=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port...
The right code snippet is: #pragma HLS interface ap_none port=A
'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=A #pragma HLS INTERFACE ap_none port=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, bool &Y) { #pragma HLS INTERFACE a...
The wrong part of the code is: #pragma HLS interface ap_fifo port=A 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=A #pragma HLS INTERFACE ap_none port=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, b...
The wrong part of the code is: #pragma HLS interface ap_fifo port=A The high-level-synthesis bug type of the code is: 'IDAP' The right code snippet is: #pragma HLS interface ap_none port=A
'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=A #pragma HLS INTERFACE ap_none port=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none...
The wrong part of the code is: #pragma HLS interface m_axi depth=50 port=A offset=1024 bundle=myport The right code snippet is: #pragma HLS interface m_axi depth=50 port=A offset=slave bundle=myport
'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=A #pragma HLS INTERFACE ap_none port=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port...
The right code snippet is: #pragma HLS interface m_axi depth=50 port=A offset=slave bundle=myport
'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=A #pragma HLS INTERFACE ap_none port=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, bool &Y) { #pragma HLS INTERFACE a...
The wrong part of the code is: #pragma HLS interface m_axi depth=50 port=A offset=1024 bundle=myport 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=A #pragma HLS INTERFACE ap_none port=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, b...
The wrong part of the code is: #pragma HLS interface m_axi depth=50 port=A offset=1024 bundle=myport The high-level-synthesis bug type of the code is: 'RAMB' The right code snippet is: #pragma HLS interface m_axi depth=50 port=A offset=slave bundle=myport
'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=A #pragma HLS INTERFACE ap_none port=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none...
The wrong part of the code is: #pragma HLS interface ap_memory port=A The right code snippet is: #pragma HLS interface ap_none port=A
'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=A #pragma HLS INTERFACE ap_none port=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port...
The right code snippet is: #pragma HLS interface ap_none port=A
'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=A #pragma HLS INTERFACE ap_none port=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, bool &Y) { #pragma HLS INTERFACE a...
The wrong part of the code is: #pragma HLS interface ap_memory port=A 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=A #pragma HLS INTERFACE ap_none port=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, b...
The wrong part of the code is: #pragma HLS interface ap_memory port=A The high-level-synthesis bug type of the code is: 'SMA' The right code snippet is: #pragma HLS interface ap_none port=A
'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=A #pragma HLS INTERFACE ap_none port=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none...
The wrong part of the code is: #pragma HLS interface ap_none port=A The right code snippet is: #pragma HLS interface ap_memory port=A
'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=A #pragma HLS INTERFACE ap_none port=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port...
The right code snippet is: #pragma HLS interface ap_memory port=A
'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=A #pragma HLS INTERFACE ap_none port=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, bool &Y) { #pragma HLS INTERFACE a...
The wrong part of the code is: #pragma HLS interface ap_none port=A 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=A #pragma HLS INTERFACE ap_none port=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, b...
The wrong part of the code is: #pragma HLS interface ap_none port=A The high-level-synthesis bug type of the code is: 'AMS' The right code snippet is: #pragma HLS interface ap_memory port=A
'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=A #pragma HLS INTERFACE ap_none port=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none...
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=A #pragma HLS INTERFACE ap_none port=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port...
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=A #pragma HLS INTERFACE ap_none port=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, bool &Y) { #pragma HLS INTERFACE a...
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=A #pragma HLS INTERFACE ap_none port=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, b...
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=A #pragma HLS INTERFACE ap_none port=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none...
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=A #pragma HLS INTERFACE ap_none port=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port...
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=A #pragma HLS INTERFACE ap_none port=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, bool &Y) { #pragma HLS INTERFACE a...
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=A #pragma HLS INTERFACE ap_none port=Y #include "sky130_fd_sc_ms__dlx2.h" void dlyinv3sd1(bool A, b...
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_fixed<18,9> my_type; void wavelet_transform(my_type in[8], my_type out[8]) { const int n = 8; const int m = 8; const int k = 4; my_ty...
The wrong part of the code is: if (i+j >= n) { The right code snippet is: if (i+j < n) {
'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_fixed<18,9> my_type; void wavelet_transform(my_type in[8], my_type out[8]) { const int n = 8; const int m = 8; const int k = 4; my_type h0...
The right code snippet is: if (i+j < n) {
'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_fixed<18,9> my_type; void wavelet_transform(my_type in[8], my_type out[8]) { const int n = 8; const int m = 8; const int k = 4;...
The wrong part of the code is: if (i+j >= n) { 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_fixed<18,9> my_type; void wavelet_transform(my_type in[8], my_type out[8]) { const int n = 8; ...
The wrong part of the code is: if (i+j >= n) { The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: if (i+j < n) {
'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_fixed<18,9> my_type; void wavelet_transform(my_type in[8], my_type out[8]) { const int n = 8; const int m = 8; const int k = 4; my_ty...
The wrong part of the code is: my_type temp; out[i] = temp; out[i+1] = temp; The right code snippet is: out[i] = 0; out[i+1] = 0;
'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_fixed<18,9> my_type; void wavelet_transform(my_type in[8], my_type out[8]) { const int n = 8; const int m = 8; const int k = 4; my_type h0...
The right code snippet is: out[i] = 0; out[i+1] = 0;
'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_fixed<18,9> my_type; void wavelet_transform(my_type in[8], my_type out[8]) { const int n = 8; const int m = 8; const int k = 4;...
The wrong part of the code is: my_type temp; out[i] = temp; out[i+1] = temp; 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_fixed<18,9> my_type; void wavelet_transform(my_type in[8], my_type out[8]) { const int n = 8; ...
The wrong part of the code is: my_type temp; out[i] = temp; out[i+1] = temp; The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: out[i] = 0; out[i+1] = 0;
'INIT'