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: void magnitude_comparator_4bit ( ap_uint<4> A, ap_uint<4> B, ap_uint<1>& EQ, ap_uint<1>& GT, ap_uint<1>& LT ) { #pragma HLS array_partition variable=diff cyclic factor=3 di...
The wrong part of the code is: #pragma HLS array_partition variable=diff cyclic factor=3 dim=1 // Array partition type error for the pragma '#pragma HLS array_partition' The right code snippet is: ap_int<5> diff = A - B;
'APT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void magnitude_comparator_4bit ( ap_uint<4> A, ap_uint<4> B, ap_uint<1>& EQ, ap_uint<1>& GT, ap_uint<1>& LT ) { #pragma HLS array_partition variable=diff cyclic factor=3 dim=1 ...
The right code snippet is: ap_int<5> diff = A - B;
'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: void magnitude_comparator_4bit ( ap_uint<4> A, ap_uint<4> B, ap_uint<1>& EQ, ap_uint<1>& GT, ap_uint<1>& LT ) { #pragma HLS array_partition variable=diff cyclic ...
The wrong part of the code is: #pragma HLS array_partition variable=diff cyclic factor=3 dim=1 // Array partition type error for the pragma '#pragma HLS array_partition' 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: void magnitude_comparator_4bit ( ap_uint<4> A, ap_uint<4> B, ap_uint<1>& EQ, ap_uint<1>& GT, ap_uint<1>& LT ) { #pragma HLS ...
The wrong part of the code is: #pragma HLS array_partition variable=diff cyclic factor=3 dim=1 // Array partition type error for the pragma '#pragma HLS array_partition' The high-level-synthesis bug type of the code is: 'APT' The right code snippet is: ap_int<5> diff = A - B;
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void magnitude_comparator_4bit ( ap_uint<4> A, ap_uint<4> B, ap_uint<1>& EQ, ap_uint<1>& GT, ap_uint<1>& LT ) { #pragma HLS array_partition variable=diff cyclic factor=6 di...
The wrong part of the code is: #pragma HLS array_partition variable=diff cyclic factor=6 dim=1 // Factor not divisible for the pragma '#pragma HLS array_partition' The right code snippet is: ap_int<5> diff = A - B;
'FND'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void magnitude_comparator_4bit ( ap_uint<4> A, ap_uint<4> B, ap_uint<1>& EQ, ap_uint<1>& GT, ap_uint<1>& LT ) { #pragma HLS array_partition variable=diff cyclic factor=6 dim=1 ...
The right code snippet is: ap_int<5> diff = A - B;
'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: void magnitude_comparator_4bit ( ap_uint<4> A, ap_uint<4> B, ap_uint<1>& EQ, ap_uint<1>& GT, ap_uint<1>& LT ) { #pragma HLS array_partition variable=diff cyclic ...
The wrong part of the code is: #pragma HLS array_partition variable=diff cyclic factor=6 dim=1 // Factor not divisible for the pragma '#pragma HLS array_partition' 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: void magnitude_comparator_4bit ( ap_uint<4> A, ap_uint<4> B, ap_uint<1>& EQ, ap_uint<1>& GT, ap_uint<1>& LT ) { #pragma HLS ...
The wrong part of the code is: #pragma HLS array_partition variable=diff cyclic factor=6 dim=1 // Factor not divisible for the pragma '#pragma HLS array_partition' The high-level-synthesis bug type of the code is: 'FND' The right code snippet is: ap_int<5> diff = A - B;
'FND'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void magnitude_comparator_4bit ( ap_uint<4> A, ap_uint<4> B, ap_uint<1>& EQ, ap_uint<1>& GT, ap_uint<1>& LT ) { #pragma HLS array_partition variable=diff cyclic factor=3 di...
The wrong part of the code is: #pragma HLS array_partition variable=diff cyclic factor=3 dim=2 // Dim incorrect dimension for the pragma '#pragma HLS array_partition' The right code snippet is: ap_int<5> diff = A - B;
'DID'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void magnitude_comparator_4bit ( ap_uint<4> A, ap_uint<4> B, ap_uint<1>& EQ, ap_uint<1>& GT, ap_uint<1>& LT ) { #pragma HLS array_partition variable=diff cyclic factor=3 dim=2 ...
The right code snippet is: ap_int<5> diff = A - B;
'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: void magnitude_comparator_4bit ( ap_uint<4> A, ap_uint<4> B, ap_uint<1>& EQ, ap_uint<1>& GT, ap_uint<1>& LT ) { #pragma HLS array_partition variable=diff cyclic ...
The wrong part of the code is: #pragma HLS array_partition variable=diff cyclic factor=3 dim=2 // Dim incorrect dimension for the pragma '#pragma HLS array_partition' 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: void magnitude_comparator_4bit ( ap_uint<4> A, ap_uint<4> B, ap_uint<1>& EQ, ap_uint<1>& GT, ap_uint<1>& LT ) { #pragma HLS ...
The wrong part of the code is: #pragma HLS array_partition variable=diff cyclic factor=3 dim=2 // Dim incorrect dimension for the pragma '#pragma HLS array_partition' The high-level-synthesis bug type of the code is: 'DID' The right code snippet is: ap_int<5> diff = A - B;
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void magnitude_comparator_4bit ( ap_uint<4> A, ap_uint<4> B, ap_uint<1>& EQ, ap_uint<1>& GT, ap_uint<1>& LT ) { #pragma HLS dataflow loop_flatten off // Dataflow position ...
The wrong part of the code is: #pragma HLS dataflow loop_flatten off // Dataflow position error for the pragma '#pragma HLS dataflow' The right code snippet is: ap_int<5> diff = A - B;
'DFP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void magnitude_comparator_4bit ( ap_uint<4> A, ap_uint<4> B, ap_uint<1>& EQ, ap_uint<1>& GT, ap_uint<1>& LT ) { #pragma HLS dataflow loop_flatten off // Dataflow position error...
The right code snippet is: ap_int<5> diff = A - B;
'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: void magnitude_comparator_4bit ( ap_uint<4> A, ap_uint<4> B, ap_uint<1>& EQ, ap_uint<1>& GT, ap_uint<1>& LT ) { #pragma HLS dataflow loop_flatten off // Dataflo...
The wrong part of the code is: #pragma HLS dataflow loop_flatten off // Dataflow position error for the pragma '#pragma HLS dataflow' 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: void magnitude_comparator_4bit ( ap_uint<4> A, ap_uint<4> B, ap_uint<1>& EQ, ap_uint<1>& GT, ap_uint<1>& LT ) { #pragma HLS ...
The wrong part of the code is: #pragma HLS dataflow loop_flatten off // Dataflow position error for the pragma '#pragma HLS dataflow' The high-level-synthesis bug type of the code is: 'DFP' The right code snippet is: ap_int<5> diff = A - 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: void magnitude_comparator_4bit ( ap_uint<4> A, ap_uint<4> B, ap_uint<1>& EQ, ap_uint<1>& GT, ap_uint<1>& LT ) { #pragma HLS interface ap_fifo port=diff // Incorrect data a...
The wrong part of the code is: #pragma HLS interface ap_fifo port=diff // Incorrect data access pattern for the pragma '#pragma HLS interface' The right code snippet is: ap_int<5> diff = A - B;
'IDAP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void magnitude_comparator_4bit ( ap_uint<4> A, ap_uint<4> B, ap_uint<1>& EQ, ap_uint<1>& GT, ap_uint<1>& LT ) { #pragma HLS interface ap_fifo port=diff // Incorrect data access...
The right code snippet is: ap_int<5> diff = A - B;
'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: void magnitude_comparator_4bit ( ap_uint<4> A, ap_uint<4> B, ap_uint<1>& EQ, ap_uint<1>& GT, ap_uint<1>& LT ) { #pragma HLS interface ap_fifo port=diff // Incor...
The wrong part of the code is: #pragma HLS interface ap_fifo port=diff // Incorrect data access pattern for the pragma '#pragma HLS interface' 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: void magnitude_comparator_4bit ( ap_uint<4> A, ap_uint<4> B, ap_uint<1>& EQ, ap_uint<1>& GT, ap_uint<1>& LT ) { #pragma HLS ...
The wrong part of the code is: #pragma HLS interface ap_fifo port=diff // Incorrect data access pattern for the pragma '#pragma HLS interface' The high-level-synthesis bug type of the code is: 'IDAP' The right code snippet is: ap_int<5> diff = A - B;
'IDAP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void magnitude_comparator_4bit ( ap_uint<4> A, ap_uint<4> B, ap_uint<1>& EQ, ap_uint<1>& GT, ap_uint<1>& LT ) { #pragma HLS interface m_axi port=diff offset=slave bundle=gm...
The wrong part of the code is: #pragma HLS interface m_axi port=diff offset=slave bundle=gmem0 // m_axi interface is accessed randomly in the code, resulting in non-burst AXI read/write for the pragma '#pragma HLS interface' The right code snippet is: ap_int<5> diff = A - B;
'RAMB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void magnitude_comparator_4bit ( ap_uint<4> A, ap_uint<4> B, ap_uint<1>& EQ, ap_uint<1>& GT, ap_uint<1>& LT ) { #pragma HLS interface m_axi port=diff offset=slave bundle=gmem0 ...
The right code snippet is: ap_int<5> diff = A - B;
'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: void magnitude_comparator_4bit ( ap_uint<4> A, ap_uint<4> B, ap_uint<1>& EQ, ap_uint<1>& GT, ap_uint<1>& LT ) { #pragma HLS interface m_axi port=diff offset=slav...
The wrong part of the code is: #pragma HLS interface m_axi port=diff offset=slave bundle=gmem0 // m_axi interface is accessed randomly in the code, resulting in non-burst AXI read/write for the pragma '#pragma HLS interface' 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: void magnitude_comparator_4bit ( ap_uint<4> A, ap_uint<4> B, ap_uint<1>& EQ, ap_uint<1>& GT, ap_uint<1>& LT ) { #pragma HLS ...
The wrong part of the code is: #pragma HLS interface m_axi port=diff offset=slave bundle=gmem0 // m_axi interface is accessed randomly in the code, resulting in non-burst AXI read/write for the pragma '#pragma HLS interface' The high-level-synthesis bug type of the code is: 'RAMB' The right code snipp...
'RAMB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void magnitude_comparator_4bit ( ap_uint<4> A, ap_uint<4> B, ap_uint<1>& EQ, ap_uint<1>& GT, ap_uint<1>& LT ) { #pragma HLS interface ap_memory port=diff // Scalar values ...
The wrong part of the code is: #pragma HLS interface ap_memory port=diff // Scalar values mapped to array interfaces like bram/ap_memory/m_axi/ap_fifo/axis for the pragma '#pragma HLS interface' The right code snippet is: ap_int<5> diff = A - B;
'SMA'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void magnitude_comparator_4bit ( ap_uint<4> A, ap_uint<4> B, ap_uint<1>& EQ, ap_uint<1>& GT, ap_uint<1>& LT ) { #pragma HLS interface ap_memory port=diff // Scalar values mappe...
The right code snippet is: ap_int<5> diff = A - B;
'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: void magnitude_comparator_4bit ( ap_uint<4> A, ap_uint<4> B, ap_uint<1>& EQ, ap_uint<1>& GT, ap_uint<1>& LT ) { #pragma HLS interface ap_memory port=diff // Sca...
The wrong part of the code is: #pragma HLS interface ap_memory port=diff // Scalar values mapped to array interfaces like bram/ap_memory/m_axi/ap_fifo/axis for the pragma '#pragma HLS interface' 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: void magnitude_comparator_4bit ( ap_uint<4> A, ap_uint<4> B, ap_uint<1>& EQ, ap_uint<1>& GT, ap_uint<1>& LT ) { #pragma HLS ...
The wrong part of the code is: #pragma HLS interface ap_memory port=diff // Scalar values mapped to array interfaces like bram/ap_memory/m_axi/ap_fifo/axis for the pragma '#pragma HLS interface' The high-level-synthesis bug type of the code is: 'SMA' The right code snippet is: ap_int<5> diff = 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: void magnitude_comparator_4bit ( ap_uint<4> A, ap_uint<4> B, ap_uint<1>& EQ, ap_uint<1>& GT, ap_uint<1>& LT ) { #pragma HLS interface ap_vld port=diff // Array value mappe...
The wrong part of the code is: #pragma HLS interface ap_vld port=diff // Array value mapped to scalar interfaces like ap_none/ap_vld/s_axilite for the pragma '#pragma HLS interface' The right code snippet is: ap_int<5> diff = A - B;
'AMS'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void magnitude_comparator_4bit ( ap_uint<4> A, ap_uint<4> B, ap_uint<1>& EQ, ap_uint<1>& GT, ap_uint<1>& LT ) { #pragma HLS interface ap_vld port=diff // Array value mapped to ...
The right code snippet is: ap_int<5> diff = A - B;
'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: void magnitude_comparator_4bit ( ap_uint<4> A, ap_uint<4> B, ap_uint<1>& EQ, ap_uint<1>& GT, ap_uint<1>& LT ) { #pragma HLS interface ap_vld port=diff // Array ...
The wrong part of the code is: #pragma HLS interface ap_vld port=diff // Array value mapped to scalar interfaces like ap_none/ap_vld/s_axilite for the pragma '#pragma HLS interface' 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: void magnitude_comparator_4bit ( ap_uint<4> A, ap_uint<4> B, ap_uint<1>& EQ, ap_uint<1>& GT, ap_uint<1>& LT ) { #pragma HLS ...
The wrong part of the code is: #pragma HLS interface ap_vld port=diff // Array value mapped to scalar interfaces like ap_none/ap_vld/s_axilite for the pragma '#pragma HLS interface' The high-level-synthesis bug type of the code is: 'AMS' The right code snippet is: ap_int<5> diff = A - B;
'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 seven_segment_decoder(ap_uint<4> DATA_IN, ap_uint<7> &SEVEN_SEG_OUT, ap_uint<1> clk) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INT...
The wrong part of the code is: case 10: SEVEN_SEG_OUT = 0b0001000; break; The right code snippet is: case 9: SEVEN_SEG_OUT = 0b0010000; break;
'OOB'
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 seven_segment_decoder(ap_uint<4> DATA_IN, ap_uint<7> &SEVEN_SEG_OUT, ap_uint<1> clk) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFAC...
The right code snippet is: case 9: SEVEN_SEG_OUT = 0b0010000; break;
'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_int.h" void seven_segment_decoder(ap_uint<4> DATA_IN, ap_uint<7> &SEVEN_SEG_OUT, ap_uint<1> clk) { #pragma HLS INTERFACE ap_ctrl_none port=return #pra...
The wrong part of the code is: case 10: SEVEN_SEG_OUT = 0b0001000; break; 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_int.h" void seven_segment_decoder(ap_uint<4> DATA_IN, ap_uint<7> &SEVEN_SEG_OUT, ap_uint<1> clk) { #pragma HLS INTERF...
The wrong part of the code is: case 10: SEVEN_SEG_OUT = 0b0001000; break; The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: case 9: SEVEN_SEG_OUT = 0b0010000; break;
'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_int.h" void seven_segment_decoder(ap_uint<4> DATA_IN, ap_uint<7> &SEVEN_SEG_OUT, ap_uint<1> clk) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INT...
The wrong part of the code is: static ap_uint<4> pipeline_reg1 = 0; static ap_uint<4> pipeline_reg2 = 0; static ap_uint<4> pipeline_reg3 = 0; The right code snippet is: static ap_uint<4> pipeline_reg1; static ap_uint<4> pipeline_reg2; static ap_uint<4> pipeline_reg3;
'INIT'
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 seven_segment_decoder(ap_uint<4> DATA_IN, ap_uint<7> &SEVEN_SEG_OUT, ap_uint<1> clk) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFAC...
The right code snippet is: static ap_uint<4> pipeline_reg1; static ap_uint<4> pipeline_reg2; static ap_uint<4> pipeline_reg3;
'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_int.h" void seven_segment_decoder(ap_uint<4> DATA_IN, ap_uint<7> &SEVEN_SEG_OUT, ap_uint<1> clk) { #pragma HLS INTERFACE ap_ctrl_none port=return #pra...
The wrong part of the code is: static ap_uint<4> pipeline_reg1 = 0; static ap_uint<4> pipeline_reg2 = 0; static ap_uint<4> pipeline_reg3 = 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: #include "ap_int.h" void seven_segment_decoder(ap_uint<4> DATA_IN, ap_uint<7> &SEVEN_SEG_OUT, ap_uint<1> clk) { #pragma HLS INTERF...
The wrong part of the code is: static ap_uint<4> pipeline_reg1 = 0; static ap_uint<4> pipeline_reg2 = 0; static ap_uint<4> pipeline_reg3 = 0; The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: static ap_uint<4> pipeline_reg1; static ap_uint<4> pipeline_reg2; static ...
'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_int.h" void seven_segment_decoder(ap_uint<4> DATA_IN, ap_uint<7> &SEVEN_SEG_OUT, ap_uint<1> clk) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INT...
The wrong part of the code is: while (1) { switch(pipeline_reg3) { case 0: SEVEN_SEG_OUT = 0b1000000; break; case 1: SEVEN_SEG_OUT = 0b1111001; break; case 2: SEVEN_SEG_OUT = 0b0100100; break; case 3: SEVEN_SEG_OUT = 0b0110000; break; case 4: SEVEN_SEG_OUT = 0b001100...
'INF'
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 seven_segment_decoder(ap_uint<4> DATA_IN, ap_uint<7> &SEVEN_SEG_OUT, ap_uint<1> clk) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFAC...
The right code snippet is: switch(pipeline_reg3) { case 0: SEVEN_SEG_OUT = 0b1000000; break; case 1: SEVEN_SEG_OUT = 0b1111001; break; case 2: SEVEN_SEG_OUT = 0b0100100; break; case 3: SEVEN_SEG_OUT = 0b0110000; break; case 4: SEVEN_SEG_OUT = 0b0011001; break; case 5: SEVEN_SEG_OUT = 0b...
'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_int.h" void seven_segment_decoder(ap_uint<4> DATA_IN, ap_uint<7> &SEVEN_SEG_OUT, ap_uint<1> clk) { #pragma HLS INTERFACE ap_ctrl_none port=return #pra...
The wrong part of the code is: while (1) { switch(pipeline_reg3) { case 0: SEVEN_SEG_OUT = 0b1000000; break; case 1: SEVEN_SEG_OUT = 0b1111001; break; case 2: SEVEN_SEG_OUT = 0b0100100; break; case 3: SEVEN_SEG_OUT = 0b0110000; break; case 4: SEVEN_SEG_OUT = 0b001100...
'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_int.h" void seven_segment_decoder(ap_uint<4> DATA_IN, ap_uint<7> &SEVEN_SEG_OUT, ap_uint<1> clk) { #pragma HLS INTERF...
The wrong part of the code is: while (1) { switch(pipeline_reg3) { case 0: SEVEN_SEG_OUT = 0b1000000; break; case 1: SEVEN_SEG_OUT = 0b1111001; break; case 2: SEVEN_SEG_OUT = 0b0100100; break; case 3: SEVEN_SEG_OUT = 0b0110000; break; case 4: SEVEN_SEG_OUT = 0b001100...
'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_int.h" void seven_segment_decoder(ap_uint<4> DATA_IN, ap_uint<7> &SEVEN_SEG_OUT, ap_uint<1> clk) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INT...
The wrong part of the code is: #pragma HLS PIPELINE II=2 switch(pipeline_reg3) { case 0: SEVEN_SEG_OUT = 0b1000000; break; case 1: SEVEN_SEG_OUT = 0b1111001; break; case 2: SEVEN_SEG_OUT = 0b0100100; break; case 3: SEVEN_SEG_OUT = 0b0110000; break; case 4: SEVEN_SEG_OUT = 0b0011001; break; ...
'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 seven_segment_decoder(ap_uint<4> DATA_IN, ap_uint<7> &SEVEN_SEG_OUT, ap_uint<1> clk) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFAC...
The right code snippet is: switch(pipeline_reg3) { case 0: SEVEN_SEG_OUT = 0b1000000; break; case 1: SEVEN_SEG_OUT = 0b1111001; break; case 2: SEVEN_SEG_OUT = 0b0100100; break; case 3: SEVEN_SEG_OUT = 0b0110000; break; case 4: SEVEN_SEG_OUT = 0b0011001; break; case 5: SEVEN_SEG_OUT = 0b...
'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 seven_segment_decoder(ap_uint<4> DATA_IN, ap_uint<7> &SEVEN_SEG_OUT, ap_uint<1> clk) { #pragma HLS INTERFACE ap_ctrl_none port=return #pra...
The wrong part of the code is: #pragma HLS PIPELINE II=2 switch(pipeline_reg3) { case 0: SEVEN_SEG_OUT = 0b1000000; break; case 1: SEVEN_SEG_OUT = 0b1111001; break; case 2: SEVEN_SEG_OUT = 0b0100100; break; case 3: SEVEN_SEG_OUT = 0b0110000; break; case 4: SEVEN_SEG_OUT = 0b0011001; break; ...
'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 seven_segment_decoder(ap_uint<4> DATA_IN, ap_uint<7> &SEVEN_SEG_OUT, ap_uint<1> clk) { #pragma HLS INTERF...
The wrong part of the code is: #pragma HLS PIPELINE II=2 switch(pipeline_reg3) { case 0: SEVEN_SEG_OUT = 0b1000000; break; case 1: SEVEN_SEG_OUT = 0b1111001; break; case 2: SEVEN_SEG_OUT = 0b0100100; break; case 3: SEVEN_SEG_OUT = 0b0110000; break; case 4: SEVEN_SEG_OUT = 0b0011001; break; ...
'MLP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB, bool VNB) { // Local signals bool mux...
The wrong part of the code is: bool mux_2to1_out_0 = false; The right code snippet is: bool mux_2to1_out_0;
'INIT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB, bool VNB) { // Local signals bool mux_2to1...
The right code snippet is: bool mux_2to1_out_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: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB, bool VNB) { // Local signals ...
The wrong part of the code is: bool mux_2to1_out_0 = 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: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB...
The wrong part of the code is: bool mux_2to1_out_0 = false; The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: bool mux_2to1_out_0;
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB, bool VNB) { // Local signals int mux_...
The wrong part of the code is: int mux_2to1_out_0; The right code snippet is: bool mux_2to1_out_0;
'USE'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB, bool VNB) { // Local signals int mux_2to1_...
The right code snippet is: bool mux_2to1_out_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: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB, bool VNB) { // Local signals ...
The wrong part of the code is: int mux_2to1_out_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: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB...
The wrong part of the code is: int mux_2to1_out_0; The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: bool mux_2to1_out_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: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB, bool VNB) { // Local signals bool mux...
The wrong part of the code is: #pragma HLS unroll factor(2) mux_2to1_out_0 = udp_mux_2to1(A0, A1, S); The right code snippet is: mux_2to1_out_0 = udp_mux_2to1(A0, A1, S);
'ILNU'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB, bool VNB) { // Local signals bool mux_2to1...
The right code snippet is: mux_2to1_out_0 = udp_mux_2to1(A0, A1, S);
'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: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB, bool VNB) { // Local signals ...
The wrong part of the code is: #pragma HLS unroll factor(2) mux_2to1_out_0 = udp_mux_2to1(A0, A1, S); 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: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB...
The wrong part of the code is: #pragma HLS unroll factor(2) mux_2to1_out_0 = udp_mux_2to1(A0, A1, S); The high-level-synthesis bug type of the code is: 'ILNU' The right code snippet is: mux_2to1_out_0 = udp_mux_2to1(A0, A1, S);
'ILNU'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB, bool VNB) { // Local signals bool mux...
The wrong part of the code is: mux_2to1_out_0 = udp_mux_2to1(A0, A1, S << 3); The right code snippet is: mux_2to1_out_0 = udp_mux_2to1(A0, A1, S);
'SHFT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB, bool VNB) { // Local signals bool mux_2to1...
The right code snippet is: mux_2to1_out_0 = udp_mux_2to1(A0, A1, S);
'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: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB, bool VNB) { // Local signals ...
The wrong part of the code is: mux_2to1_out_0 = udp_mux_2to1(A0, A1, S << 3); 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: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB...
The wrong part of the code is: mux_2to1_out_0 = udp_mux_2to1(A0, A1, S << 3); The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: mux_2to1_out_0 = udp_mux_2to1(A0, A1, S);
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB, bool VNB) { // Local signals bool mux...
The wrong part of the code is: for (int i = 0; i >= 0; i++) { mux_2to1_out_0 = udp_mux_2to1(A0, A1, S); } The right code snippet is: for (int i = 0; i < 10; i++) { mux_2to1_out_0 = udp_mux_2to1(A0, A1, S); }
'INF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB, bool VNB) { // Local signals bool mux_2to1...
The right code snippet is: for (int i = 0; i < 10; i++) { mux_2to1_out_0 = udp_mux_2to1(A0, A1, S); }
'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: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB, bool VNB) { // Local signals ...
The wrong part of the code is: for (int i = 0; i >= 0; i++) { mux_2to1_out_0 = udp_mux_2to1(A0, A1, S); } 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: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB...
The wrong part of the code is: for (int i = 0; i >= 0; i++) { mux_2to1_out_0 = udp_mux_2to1(A0, A1, S); } The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: for (int i = 0; i < 10; i++) { mux_2to1_out_0 = udp_mux_2to1(A0, A1, S); }
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB, bool VNB) { // Local signals bool mux...
The wrong part of the code is: pwrgood_0_out = udp_pwrgood_pp_PG(mux_2to1_out_1, VPWR, VGND); The right code snippet is: pwrgood_0_out = udp_pwrgood_pp_PG(mux_2to1_out_0, VPWR, VGND);
'BUF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB, bool VNB) { // Local signals bool mux_2to1...
The right code snippet is: pwrgood_0_out = udp_pwrgood_pp_PG(mux_2to1_out_0, VPWR, VGND);
'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: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB, bool VNB) { // Local signals ...
The wrong part of the code is: pwrgood_0_out = udp_pwrgood_pp_PG(mux_2to1_out_1, VPWR, VGND); 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: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB...
The wrong part of the code is: pwrgood_0_out = udp_pwrgood_pp_PG(mux_2to1_out_1, VPWR, VGND); The high-level-synthesis bug type of the code is: 'BUF' The right code snippet is: pwrgood_0_out = udp_pwrgood_pp_PG(mux_2to1_out_0, VPWR, VGND);
'BUF'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB, bool VNB) { // Local signals bool mux...
The wrong part of the code is: #pragma HLS array_partition variable=mux_2to1_out_0 cyclic factor=3 dim=2 The right code snippet is: #pragma HLS array_partition variable=mux_2to1_out_0 cyclic factor=2 dim=1
'APT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB, bool VNB) { // Local signals bool mux_2to1...
The right code snippet is: #pragma HLS array_partition variable=mux_2to1_out_0 cyclic factor=2 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: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB, bool VNB) { // Local signals ...
The wrong part of the code is: #pragma HLS array_partition variable=mux_2to1_out_0 cyclic factor=3 dim=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: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB...
The wrong part of the code is: #pragma HLS array_partition variable=mux_2to1_out_0 cyclic factor=3 dim=2 The high-level-synthesis bug type of the code is: 'APT' The right code snippet is: #pragma HLS array_partition variable=mux_2to1_out_0 cyclic factor=2 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: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB, bool VNB) { // Local signals bool mux...
The wrong part of the code is: #pragma HLS array_partition variable=mux_2to1_out_0 cyclic factor=5 dim=1 The right code snippet is: #pragma HLS array_partition variable=mux_2to1_out_0 cyclic factor=2 dim=1
'FND'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB, bool VNB) { // Local signals bool mux_2to1...
The right code snippet is: #pragma HLS array_partition variable=mux_2to1_out_0 cyclic factor=2 dim=1
'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: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB, bool VNB) { // Local signals ...
The wrong part of the code is: #pragma HLS array_partition variable=mux_2to1_out_0 cyclic factor=5 dim=1 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: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB...
The wrong part of the code is: #pragma HLS array_partition variable=mux_2to1_out_0 cyclic factor=5 dim=1 The high-level-synthesis bug type of the code is: 'FND' The right code snippet is: #pragma HLS array_partition variable=mux_2to1_out_0 cyclic factor=2 dim=1
'FND'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB, bool VNB) { // Local signals bool mux...
The wrong part of the code is: #pragma HLS array_partition variable=mux_2to1_out_0 cyclic factor=2 dim=2 The right code snippet is: #pragma HLS array_partition variable=mux_2to1_out_0 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: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB, bool VNB) { // Local signals bool mux_2to1...
The right code snippet is: #pragma HLS array_partition variable=mux_2to1_out_0 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: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB, bool VNB) { // Local signals ...
The wrong part of the code is: #pragma HLS array_partition variable=mux_2to1_out_0 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: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB...
The wrong part of the code is: #pragma HLS array_partition variable=mux_2to1_out_0 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=mux_2to1_out_0 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: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB, bool VNB) { // Local signals bool mux...
The wrong part of the code is: X = buf(pwrgood_0_out); mux_2to1_out_0 = udp_mux_2to1(A0, A1, S); pwrgood_0_out = udp_pwrgood_pp_PG(mux_2to1_out_0, VPWR, VGND); VPB = VPWR; 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: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB, bool VNB) { // Local signals bool mux_2to1...
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: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB, bool VNB) { // Local signals ...
The wrong part of the code is: X = buf(pwrgood_0_out); mux_2to1_out_0 = udp_mux_2to1(A0, A1, S); pwrgood_0_out = udp_pwrgood_pp_PG(mux_2to1_out_0, VPWR, VGND); VPB = VPWR; 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: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB...
The wrong part of the code is: X = buf(pwrgood_0_out); mux_2to1_out_0 = udp_mux_2to1(A0, A1, S); pwrgood_0_out = udp_pwrgood_pp_PG(mux_2to1_out_0, VPWR, VGND); VPB = VPWR; 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: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB, bool VNB) { // Local signals bool mux...
The wrong part of the code is: #pragma HLS interface ap_vld port=A0 The right code snippet is: #pragma HLS interface ap_none port=A0
'IDAP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB, bool VNB) { // Local signals bool mux_2to1...
The right code snippet is: #pragma HLS interface ap_none port=A0
'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: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB, bool VNB) { // Local signals ...
The wrong part of the code is: #pragma HLS interface ap_vld port=A0 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: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB...
The wrong part of the code is: #pragma HLS interface ap_vld port=A0 The high-level-synthesis bug type of the code is: 'IDAP' The right code snippet is: #pragma HLS interface ap_none port=A0
'IDAP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB, bool VNB) { // Local signals bool mux...
The wrong part of the code is: X[4] = 1; The right code snippet is: #pragma HLS interface m_axi port=X
'RAMB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB, bool VNB) { // Local signals bool mux_2to1...
The right code snippet is: #pragma HLS interface m_axi port=X
'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: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB, bool VNB) { // Local signals ...
The wrong part of the code is: X[4] = 1; 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: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB...
The wrong part of the code is: X[4] = 1; The high-level-synthesis bug type of the code is: 'RAMB' The right code snippet is: #pragma HLS interface m_axi port=X
'RAMB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB, bool VNB) { // Local signals bool mux...
The wrong part of the code is: #pragma HLS interface bram port=A0 The right code snippet is: #pragma HLS interface ap_fifo port=A0
'SMA'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB, bool VNB) { // Local signals bool mux_2to1...
The right code snippet is: #pragma HLS interface ap_fifo port=A0
'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: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB, bool VNB) { // Local signals ...
The wrong part of the code is: #pragma HLS interface bram port=A0 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: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB...
The wrong part of the code is: #pragma HLS interface bram port=A0 The high-level-synthesis bug type of the code is: 'SMA' The right code snippet is: #pragma HLS interface ap_fifo port=A0
'SMA'