instruction
stringlengths
139
357k
response
stringlengths
36
4.54k
buggy_type
stringclasses
745 values
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none por...
The wrong part of the code is: maj1.A = A + 1; The right code snippet is: maj1.A = A;
'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=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none port=VGN...
The right code snippet is: maj1.A = A;
'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=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ...
The wrong part of the code is: maj1.A = A + 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: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_...
The wrong part of the code is: maj1.A = A + 1; The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: maj1.A = A;
'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=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none por...
The wrong part of the code is: bool M1 = true; The right code snippet is: bool M1;
'INIT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none port=VGN...
The right code snippet is: bool M1;
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ...
The wrong part of the code is: bool M1 = true; The high-level-synthesis bug type of the code is: 'INIT'
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_...
The wrong part of the code is: bool M1 = true; The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: bool M1;
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none por...
The wrong part of the code is: maj1.A = A << 10; The right code snippet is: maj1.A = A >> 2;
'SHFT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none port=VGN...
The right code snippet is: maj1.A = A >> 2;
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ...
The wrong part of the code is: maj1.A = A << 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=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_...
The wrong part of the code is: maj1.A = A << 10; The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: maj1.A = A >> 2;
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none por...
The wrong part of the code is: for(int i=0; i>=0; i++){ // some code here } The right code snippet is: for(int i=0; i<10; i++){ // some code here }
'INF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none port=VGN...
The right code snippet is: for(int i=0; i<10; i++){ // some code here }
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ...
The wrong part of the code is: for(int i=0; i>=0; i++){ // some code here } The high-level-synthesis bug type of the code is: 'INF'
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_...
The wrong part of the code is: for(int i=0; i>=0; i++){ // some code here } The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: for(int i=0; i<10; i++){ // some code here }
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none por...
The wrong part of the code is: int16_t x = 0xFF; The right code snippet is: int8_t x = 0xFF;
'USE'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none port=VGN...
The right code snippet is: int8_t x = 0xFF;
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ...
The wrong part of the code is: int16_t x = 0xFF; The high-level-synthesis bug type of the code is: 'USE'
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_...
The wrong part of the code is: int16_t x = 0xFF; The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: int8_t x = 0xFF;
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none por...
The wrong part of the code is: for (int i = 0; i < 11; i++) { // some code here } The right code snippet is: for (int i = 0; i < 10; i++) { // some code here }
'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=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none port=VGN...
The right code snippet is: for (int i = 0; i < 10; i++) { // some code here }
'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=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ...
The wrong part of the code is: for (int i = 0; i < 11; i++) { // some code here } 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=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_...
The wrong part of the code is: for (int i = 0; i < 11; i++) { // some code here } The high-level-synthesis bug type of the code is: 'MLU' The right code snippet is: for (int i = 0; i < 10; i++) { // some code here }
'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=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none por...
The wrong part of the code is: int x = 0; The right code snippet is: int x = 5;
'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=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none port=VGN...
The right code snippet is: int x = 5;
'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=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ...
The wrong part of the code is: int x = 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=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_...
The wrong part of the code is: int x = 0; The high-level-synthesis bug type of the code is: 'ZERO' The right code snippet is: int x = 5;
'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=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none por...
The wrong part of the code is: memcpy(buffer1 + size, buffer2, 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: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none port=VGN...
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: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ...
The wrong part of the code is: memcpy(buffer1 + size, buffer2, 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: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_...
The wrong part of the code is: memcpy(buffer1 + size, buffer2, 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: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none por...
The wrong part of the code is: #pragma HLS array_partition variable=maj1 cyclic The right code snippet is: #pragma HLS array_partition variable=maj1 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=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none port=VGN...
The right code snippet is: #pragma HLS array_partition variable=maj1 complete
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ...
The wrong part of the code is: #pragma HLS array_partition variable=maj1 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=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_...
The wrong part of the code is: #pragma HLS array_partition variable=maj1 cyclic The high-level-synthesis bug type of the code is: 'APT' The right code snippet is: #pragma HLS array_partition variable=maj1 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=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none por...
The wrong part of the code is: #pragma HLS array_partition variable=maj1 cyclic factor=3 The right code snippet is: #pragma HLS array_partition variable=maj1 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=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none port=VGN...
The right code snippet is: #pragma HLS array_partition variable=maj1 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=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ...
The wrong part of the code is: #pragma HLS array_partition variable=maj1 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=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_...
The wrong part of the code is: #pragma HLS array_partition variable=maj1 cyclic factor=3 The high-level-synthesis bug type of the code is: 'FND' The right code snippet is: #pragma HLS array_partition variable=maj1 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=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none por...
The wrong part of the code is: #pragma HLS array_partition variable=maj1 cyclic factor=2 dim=2 The right code snippet is: #pragma HLS array_partition variable=maj1 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=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none port=VGN...
The right code snippet is: #pragma HLS array_partition variable=maj1 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=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ...
The wrong part of the code is: #pragma HLS array_partition variable=maj1 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=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_...
The wrong part of the code is: #pragma HLS array_partition variable=maj1 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=maj1 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=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none por...
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=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none port=VGN...
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=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ...
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=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_...
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=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none por...
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=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none port=VGN...
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=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ...
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=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_...
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=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none por...
The wrong part of the code is: #pragma HLS interface m_axi port=A random The right code snippet is: #pragma HLS interface m_axi port=A
'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=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none port=VGN...
The right code snippet is: #pragma HLS interface m_axi port=A
'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=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ...
The wrong part of the code is: #pragma HLS interface m_axi port=A 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=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_...
The wrong part of the code is: #pragma HLS interface m_axi port=A random The high-level-synthesis bug type of the code is: 'RAMB' The right code snippet is: #pragma HLS interface m_axi port=A
'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=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none por...
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=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none port=VGN...
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=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ...
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=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_...
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=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none por...
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=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none port=VGN...
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=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ...
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=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_...
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=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none por...
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=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none port=VGN...
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=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ...
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=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_...
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=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none por...
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=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none port=VGN...
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=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ...
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=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_...
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 <hls_math.h> void binary_to_bcd_converter( ap_uint<8> BIN, ap_uint<4> &BCD_HIGH1, ap_uint<4> &BCD_LOW1, ap_uint<4> &BCD_HIGH2, ap_uint<4> &BCD_LOW2 ) { ...
The wrong part of the code is: bcd_high1_reg = hls::concat(0, hls::concat(BIN[7], hls::concat(BIN[6], BIN[8]))); The right code snippet is: bcd_high1_reg = hls::concat(0, hls::concat(BIN[7], hls::concat(BIN[6], BIN[5])));
'OOB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <hls_math.h> void binary_to_bcd_converter( ap_uint<8> BIN, ap_uint<4> &BCD_HIGH1, ap_uint<4> &BCD_LOW1, ap_uint<4> &BCD_HIGH2, ap_uint<4> &BCD_LOW2 ) { #pr...
The right code snippet is: bcd_high1_reg = hls::concat(0, hls::concat(BIN[7], hls::concat(BIN[6], BIN[5])));
'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 <hls_math.h> void binary_to_bcd_converter( ap_uint<8> BIN, ap_uint<4> &BCD_HIGH1, ap_uint<4> &BCD_LOW1, ap_uint<4> &BCD_HIGH2, ap_uint<4> &BCD_...
The wrong part of the code is: bcd_high1_reg = hls::concat(0, hls::concat(BIN[7], hls::concat(BIN[6], BIN[8]))); 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 <hls_math.h> void binary_to_bcd_converter( ap_uint<8> BIN, ap_uint<4> &BCD_HIGH1, ap_uint<4> &BCD_LOW1, ap_uin...
The wrong part of the code is: bcd_high1_reg = hls::concat(0, hls::concat(BIN[7], hls::concat(BIN[6], BIN[8]))); The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: bcd_high1_reg = hls::concat(0, hls::concat(BIN[7], hls::concat(BIN[6], BIN[5])));
'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 <hls_math.h> void binary_to_bcd_converter( ap_uint<8> BIN, ap_uint<4> &BCD_HIGH1, ap_uint<4> &BCD_LOW1, ap_uint<4> &BCD_HIGH2, ap_uint<4> &BCD_LOW2 ) { ...
The wrong part of the code is: ap_uint<4> bcd_high1_reg, bcd_low1_reg, bcd_high2_reg; The right code snippet is: ap_uint<4> bcd_high1_reg, bcd_low1_reg, bcd_high2_reg, bcd_low2_reg;
'INIT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <hls_math.h> void binary_to_bcd_converter( ap_uint<8> BIN, ap_uint<4> &BCD_HIGH1, ap_uint<4> &BCD_LOW1, ap_uint<4> &BCD_HIGH2, ap_uint<4> &BCD_LOW2 ) { #pr...
The right code snippet is: ap_uint<4> bcd_high1_reg, bcd_low1_reg, bcd_high2_reg, bcd_low2_reg;
'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 <hls_math.h> void binary_to_bcd_converter( ap_uint<8> BIN, ap_uint<4> &BCD_HIGH1, ap_uint<4> &BCD_LOW1, ap_uint<4> &BCD_HIGH2, ap_uint<4> &BCD_...
The wrong part of the code is: ap_uint<4> bcd_high1_reg, bcd_low1_reg, bcd_high2_reg; 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 <hls_math.h> void binary_to_bcd_converter( ap_uint<8> BIN, ap_uint<4> &BCD_HIGH1, ap_uint<4> &BCD_LOW1, ap_uin...
The wrong part of the code is: ap_uint<4> bcd_high1_reg, bcd_low1_reg, bcd_high2_reg; The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: ap_uint<4> bcd_high1_reg, bcd_low1_reg, bcd_high2_reg, bcd_low2_reg;
'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 <hls_math.h> void binary_to_bcd_converter( ap_uint<8> BIN, ap_uint<4> &BCD_HIGH1, ap_uint<4> &BCD_LOW1, ap_uint<4> &BCD_HIGH2, ap_uint<4> &BCD_LOW2 ) { ...
The wrong part of the code is: bcd_high2_reg = hls::concat(0, hls::concat(BIN[1], hls::concat(BIN[0], -1))); The right code snippet is: bcd_high2_reg = hls::concat(0, hls::concat(BIN[1], hls::concat(BIN[0], 0)));
'SHFT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <hls_math.h> void binary_to_bcd_converter( ap_uint<8> BIN, ap_uint<4> &BCD_HIGH1, ap_uint<4> &BCD_LOW1, ap_uint<4> &BCD_HIGH2, ap_uint<4> &BCD_LOW2 ) { #pr...
The right code snippet is: bcd_high2_reg = hls::concat(0, hls::concat(BIN[1], hls::concat(BIN[0], 0)));
'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 <hls_math.h> void binary_to_bcd_converter( ap_uint<8> BIN, ap_uint<4> &BCD_HIGH1, ap_uint<4> &BCD_LOW1, ap_uint<4> &BCD_HIGH2, ap_uint<4> &BCD_...
The wrong part of the code is: bcd_high2_reg = hls::concat(0, hls::concat(BIN[1], hls::concat(BIN[0], -1))); 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 <hls_math.h> void binary_to_bcd_converter( ap_uint<8> BIN, ap_uint<4> &BCD_HIGH1, ap_uint<4> &BCD_LOW1, ap_uin...
The wrong part of the code is: bcd_high2_reg = hls::concat(0, hls::concat(BIN[1], hls::concat(BIN[0], -1))); The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: bcd_high2_reg = hls::concat(0, hls::concat(BIN[1], hls::concat(BIN[0], 0)));
'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 <hls_math.h> void binary_to_bcd_converter( ap_uint<8> BIN, ap_uint<4> &BCD_HIGH1, ap_uint<4> &BCD_LOW1, ap_uint<4> &BCD_HIGH2, ap_uint<4> &BCD_LOW2 ) { ...
The wrong part of the code is: ap_uint<4> bcd_high1_reg = 0, bcd_low1_reg = 0, bcd_high2_reg = 0, bcd_low2_reg = 0; The right code snippet is: ap_uint<4> bcd_high1_reg, bcd_low1_reg, bcd_high2_reg, bcd_low2_reg;
'ZERO'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <hls_math.h> void binary_to_bcd_converter( ap_uint<8> BIN, ap_uint<4> &BCD_HIGH1, ap_uint<4> &BCD_LOW1, ap_uint<4> &BCD_HIGH2, ap_uint<4> &BCD_LOW2 ) { #pr...
The right code snippet is: ap_uint<4> bcd_high1_reg, bcd_low1_reg, bcd_high2_reg, bcd_low2_reg;
'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 <hls_math.h> void binary_to_bcd_converter( ap_uint<8> BIN, ap_uint<4> &BCD_HIGH1, ap_uint<4> &BCD_LOW1, ap_uint<4> &BCD_HIGH2, ap_uint<4> &BCD_...
The wrong part of the code is: ap_uint<4> bcd_high1_reg = 0, bcd_low1_reg = 0, bcd_high2_reg = 0, bcd_low2_reg = 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: #include <hls_math.h> void binary_to_bcd_converter( ap_uint<8> BIN, ap_uint<4> &BCD_HIGH1, ap_uint<4> &BCD_LOW1, ap_uin...
The wrong part of the code is: ap_uint<4> bcd_high1_reg = 0, bcd_low1_reg = 0, bcd_high2_reg = 0, bcd_low2_reg = 0; The high-level-synthesis bug type of the code is: 'ZERO' The right code snippet is: ap_uint<4> bcd_high1_reg, bcd_low1_reg, bcd_high2_reg, bcd_low2_reg;
'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis register both po...
The wrong part of the code is: out_comb_ff = a_ff ^ b[-1]; The right code snippet is: out_comb_ff = a_ff ^ b;
OOB
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis register both port=ou...
The right code snippet is: out_comb_ff = a_ff ^ b;
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: ``` void xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis regis...
The wrong part of the code is: out_comb_ff = a_ff ^ b[-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: ``` void xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return...
The wrong part of the code is: out_comb_ff = a_ff ^ b[-1]; The high-level-synthesis bug type of the code is: OOB The right code snippet is: out_comb_ff = a_ff ^ b;
OOB
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis register both po...
The wrong part of the code is: static bool a_ff = true; The right code snippet is: static bool a_ff;
INIT
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis register both port=ou...
The right code snippet is: static bool a_ff;
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: ``` void xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis regis...
The wrong part of the code is: static bool a_ff = true; 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: ``` void xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return...
The wrong part of the code is: static bool a_ff = true; The high-level-synthesis bug type of the code is: INIT The right code snippet is: static bool a_ff;
INIT
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis register both po...
The wrong part of the code is: out_comb_ff = a_ff << 10 ^ b; The right code snippet is: out_comb_ff = a_ff ^ b;
SHFT
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis register both port=ou...
The right code snippet is: out_comb_ff = a_ff ^ b;
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: ``` void xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis regis...
The wrong part of the code is: out_comb_ff = a_ff << 10 ^ b; 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: ``` void xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return...
The wrong part of the code is: out_comb_ff = a_ff << 10 ^ b; The high-level-synthesis bug type of the code is: SHFT The right code snippet is: out_comb_ff = a_ff ^ b;
SHFT