instruction
stringlengths
139
357k
response
stringlengths
36
4.54k
buggy_type
stringclasses
745 values
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #include <hls_stream.h> const int SIZE = 20; const int INDEX_WIDTH = 8; const int MAX_INDEX = SIZE * 8 - 1; const int WAITING = 0; const int RECEIVING = 1; const int LEFT_PADDING = 2...
The wrong part of the code is: head -= 9; The right code snippet is: head -= 8;
'SHFT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <hls_stream.h> const int SIZE = 20; const int INDEX_WIDTH = 8; const int MAX_INDEX = SIZE * 8 - 1; const int WAITING = 0; const int RECEIVING = 1; const int LEFT_PADDING = 2; con...
The right code snippet is: head -= 8;
'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_stream.h> const int SIZE = 20; const int INDEX_WIDTH = 8; const int MAX_INDEX = SIZE * 8 - 1; const int WAITING = 0; const int RECEIVING = 1; const int LEFT_...
The wrong part of the code is: head -= 9; 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_stream.h> const int SIZE = 20; const int INDEX_WIDTH = 8; const int MAX_INDEX = SIZE * 8 - 1; const int WAITING = 0; con...
The wrong part of the code is: head -= 9; The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: head -= 8;
'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_stream.h> const int SIZE = 20; const int INDEX_WIDTH = 8; const int MAX_INDEX = SIZE * 8 - 1; const int WAITING = 0; const int RECEIVING = 1; const int LEFT_PADDING = 2...
The wrong part of the code is: case RIGHT_PADDING: if (count < 15) { state = RIGHT_PADDING; count++; } else { state = RECEIVING; count = 0; } head = 0; break; The right code snippet is: case RIGHT_PADDING: if (count < 15) { state = RIGHT_P...
'INF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <hls_stream.h> const int SIZE = 20; const int INDEX_WIDTH = 8; const int MAX_INDEX = SIZE * 8 - 1; const int WAITING = 0; const int RECEIVING = 1; const int LEFT_PADDING = 2; con...
The right code snippet is: case RIGHT_PADDING: if (count < 15) { state = RIGHT_PADDING; count++; } else { state = WAITING; count = 0; } head = 0; break;
'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 <hls_stream.h> const int SIZE = 20; const int INDEX_WIDTH = 8; const int MAX_INDEX = SIZE * 8 - 1; const int WAITING = 0; const int RECEIVING = 1; const int LEFT_...
The wrong part of the code is: case RIGHT_PADDING: if (count < 15) { state = RIGHT_PADDING; count++; } else { state = RECEIVING; count = 0; } head = 0; break; The high-level-synthesis bug type of the code is: 'INF'
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #include <hls_stream.h> const int SIZE = 20; const int INDEX_WIDTH = 8; const int MAX_INDEX = SIZE * 8 - 1; const int WAITING = 0; con...
The wrong part of the code is: case RIGHT_PADDING: if (count < 15) { state = RIGHT_PADDING; count++; } else { state = RECEIVING; count = 0; } head = 0; break; The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: case ...
'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 <hls_stream.h> const int SIZE = 20; const int INDEX_WIDTH = 8; const int MAX_INDEX = SIZE * 8 - 1; const int WAITING = 0; const int RECEIVING = 1; const int LEFT_PADDING = 2...
The wrong part of the code is: dout.write(queue[(head - 1)>>8]); The right code snippet is: dout.write(queue[(head - 1)/8]);
'USE'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <hls_stream.h> const int SIZE = 20; const int INDEX_WIDTH = 8; const int MAX_INDEX = SIZE * 8 - 1; const int WAITING = 0; const int RECEIVING = 1; const int LEFT_PADDING = 2; con...
The right code snippet is: dout.write(queue[(head - 1)/8]);
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #include <hls_stream.h> const int SIZE = 20; const int INDEX_WIDTH = 8; const int MAX_INDEX = SIZE * 8 - 1; const int WAITING = 0; const int RECEIVING = 1; const int LEFT_...
The wrong part of the code is: dout.write(queue[(head - 1)>>8]); The high-level-synthesis bug type of the code is: 'USE'
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #include <hls_stream.h> const int SIZE = 20; const int INDEX_WIDTH = 8; const int MAX_INDEX = SIZE * 8 - 1; const int WAITING = 0; con...
The wrong part of the code is: dout.write(queue[(head - 1)>>8]); The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: dout.write(queue[(head - 1)/8]);
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #include <hls_stream.h> const int SIZE = 20; const int INDEX_WIDTH = 8; const int MAX_INDEX = SIZE * 8 - 1; const int WAITING = 0; const int RECEIVING = 1; const int LEFT_PADDING = 2...
The wrong part of the code is: switch (state) { case WAITING: if (din_valid) { state = RECEIVING; queue[0] = din.read(); head = 8; } else { state = WAITING; } count = 1; break; ...
'ILNU'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <hls_stream.h> const int SIZE = 20; const int INDEX_WIDTH = 8; const int MAX_INDEX = SIZE * 8 - 1; const int WAITING = 0; const int RECEIVING = 1; const int LEFT_PADDING = 2; con...
The right code snippet is: switch (state) { case WAITING: if (din_valid) { state = RECEIVING; queue[0] = din.read(); head = 8; } else { state = WAITING; } count = 0; break;
'ILNU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #include <hls_stream.h> const int SIZE = 20; const int INDEX_WIDTH = 8; const int MAX_INDEX = SIZE * 8 - 1; const int WAITING = 0; const int RECEIVING = 1; const int LEFT_...
The wrong part of the code is: switch (state) { case WAITING: if (din_valid) { state = RECEIVING; queue[0] = din.read(); head = 8; } else { state = WAITING; } count = 1; break; ...
'ILNU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #include <hls_stream.h> const int SIZE = 20; const int INDEX_WIDTH = 8; const int MAX_INDEX = SIZE * 8 - 1; const int WAITING = 0; con...
The wrong part of the code is: switch (state) { case WAITING: if (din_valid) { state = RECEIVING; queue[0] = din.read(); head = 8; } else { state = WAITING; } count = 1; break; ...
'ILNU'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ap_none port=A4 #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: bool notA1, notA2, notA3, notA4, notA5, notA6, notA7, notA8, not_initialized; The right code snippet is: bool notA1, notA2, notA3, notA4, notA5, notA6, notA7, notA8;
'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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ap_none port=A4 #pragma HLS INTERFACE ap_none port=A5...
The right code snippet is: bool notA1, notA2, notA3, notA4, notA5, notA6, notA7, notA8;
'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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ap_none port=A4 #pragma HLS INTERFACE...
The wrong part of the code is: bool notA1, notA2, notA3, notA4, notA5, notA6, notA7, notA8, not_initialized; 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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ...
The wrong part of the code is: bool notA1, notA2, notA3, notA4, notA5, notA6, notA7, notA8, not_initialized; The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: bool notA1, notA2, notA3, notA4, notA5, notA6, notA7, notA8;
'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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ap_none port=A4 #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: temp1 = notA1 & notA2; The right code snippet is: temp1 = notA1 | notA2;
'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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ap_none port=A4 #pragma HLS INTERFACE ap_none port=A5...
The right code snippet is: temp1 = notA1 | notA2;
'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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ap_none port=A4 #pragma HLS INTERFACE...
The wrong part of the code is: temp1 = notA1 & notA2; 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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ...
The wrong part of the code is: temp1 = notA1 & notA2; The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: temp1 = notA1 | notA2;
'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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ap_none port=A4 #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: while(1){ temp7 = temp6 | notA8; } The right code snippet is: temp7 = temp6 | notA8;
'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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ap_none port=A4 #pragma HLS INTERFACE ap_none port=A5...
The right code snippet is: temp7 = temp6 | notA8;
'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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ap_none port=A4 #pragma HLS INTERFACE...
The wrong part of the code is: while(1){ temp7 = temp6 | notA8; } 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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ...
The wrong part of the code is: while(1){ temp7 = temp6 | notA8; } The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: temp7 = temp6 | notA8;
'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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ap_none port=A4 #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: temp5 = temp4 << 10 | notA6; The right code snippet is: temp5 = temp4 | notA6;
'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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ap_none port=A4 #pragma HLS INTERFACE ap_none port=A5...
The right code snippet is: temp5 = temp4 | notA6;
'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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ap_none port=A4 #pragma HLS INTERFACE...
The wrong part of the code is: temp5 = temp4 << 10 | notA6; 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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ...
The wrong part of the code is: temp5 = temp4 << 10 | notA6; The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: temp5 = temp4 | notA6;
'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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ap_none port=A4 #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: O = ~temp7; The right code snippet is: O = !temp7;
'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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ap_none port=A4 #pragma HLS INTERFACE ap_none port=A5...
The right code snippet is: O = !temp7;
'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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ap_none port=A4 #pragma HLS INTERFACE...
The wrong part of the code is: O = ~temp7; 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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ...
The wrong part of the code is: O = ~temp7; The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: O = !temp7;
'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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ap_none port=A4 #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: temp1 = notA1 | notA3; The right code snippet is: temp1 = notA1 | notA2;
'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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ap_none port=A4 #pragma HLS INTERFACE ap_none port=A5...
The right code snippet is: temp1 = notA1 | notA2;
'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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ap_none port=A4 #pragma HLS INTERFACE...
The wrong part of the code is: temp1 = notA1 | notA3; 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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ...
The wrong part of the code is: temp1 = notA1 | notA3; The high-level-synthesis bug type of the code is: 'BUF' The right code snippet is: temp1 = notA1 | notA2;
'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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ap_none port=A4 #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=notA1 block factor=2 dim=1 The right code snippet is: #pragma HLS ARRAY_PARTITION variable=notA1 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: #pragma HLS INTERFACE ap_none port=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ap_none port=A4 #pragma HLS INTERFACE ap_none port=A5...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=notA1 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: #pragma HLS INTERFACE ap_none port=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ap_none port=A4 #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=notA1 block factor=2 dim=1 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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=notA1 block factor=2 dim=1 The high-level-synthesis bug type of the code is: 'APT' The right code snippet is: #pragma HLS ARRAY_PARTITION variable=notA1 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: #pragma HLS INTERFACE ap_none port=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ap_none port=A4 #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=notA1 cyclic factor=3 dim=1 The right code snippet is: #pragma HLS ARRAY_PARTITION variable=notA1 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: #pragma HLS INTERFACE ap_none port=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ap_none port=A4 #pragma HLS INTERFACE ap_none port=A5...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=notA1 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: #pragma HLS INTERFACE ap_none port=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ap_none port=A4 #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=notA1 cyclic factor=3 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: #pragma HLS INTERFACE ap_none port=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=notA1 cyclic factor=3 dim=1 The high-level-synthesis bug type of the code is: 'FND' The right code snippet is: #pragma HLS ARRAY_PARTITION variable=notA1 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: #pragma HLS INTERFACE ap_none port=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ap_none port=A4 #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=notA1 cyclic factor=2 dim=2 The right code snippet is: #pragma HLS ARRAY_PARTITION variable=notA1 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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ap_none port=A4 #pragma HLS INTERFACE ap_none port=A5...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=notA1 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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ap_none port=A4 #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=notA1 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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=notA1 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=notA1 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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ap_none port=A4 #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: #pragma HLS DATAFLOW II=2 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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ap_none port=A4 #pragma HLS INTERFACE ap_none port=A5...
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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ap_none port=A4 #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS DATAFLOW II=2 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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ...
The wrong part of the code is: #pragma HLS DATAFLOW II=2 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_fifo port=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ap_none port=A4 #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: #pragma HLS INTERFACE ap_fifo port=A1 The right code snippet is: #pragma HLS INTERFACE ap_none port=A1
'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_fifo port=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ap_none port=A4 #pragma HLS INTERFACE ap_none port=A5...
The right code snippet is: #pragma HLS INTERFACE ap_none port=A1
'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_fifo port=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ap_none port=A4 #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS INTERFACE ap_fifo port=A1 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_fifo port=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ...
The wrong part of the code is: #pragma HLS INTERFACE ap_fifo port=A1 The high-level-synthesis bug type of the code is: 'IDAP' The right code snippet is: #pragma HLS INTERFACE ap_none port=A1
'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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ap_none port=A4 #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: #pragma HLS INTERFACE m_axi depth=1024 port=A1 The right code snippet is: #pragma HLS INTERFACE m_axi depth=512 port=A1
'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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ap_none port=A4 #pragma HLS INTERFACE ap_none port=A5...
The right code snippet is: #pragma HLS INTERFACE m_axi depth=512 port=A1
'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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ap_none port=A4 #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS INTERFACE m_axi depth=1024 port=A1 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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ...
The wrong part of the code is: #pragma HLS INTERFACE m_axi depth=1024 port=A1 The high-level-synthesis bug type of the code is: 'RAMB' The right code snippet is: #pragma HLS INTERFACE m_axi depth=512 port=A1
'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 bram port=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ap_none port=A4 #pragma HLS INTERFACE ap_none port=...
The wrong part of the code is: #pragma HLS INTERFACE bram port=A1 The right code snippet is: #pragma HLS INTERFACE ap_none port=A1
'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 bram port=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ap_none port=A4 #pragma HLS INTERFACE ap_none port=A5 #p...
The right code snippet is: #pragma HLS INTERFACE ap_none port=A1
'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 bram port=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ap_none port=A4 #pragma HLS INTERFACE ap...
The wrong part of the code is: #pragma HLS INTERFACE bram port=A1 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 bram port=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ap_...
The wrong part of the code is: #pragma HLS INTERFACE bram port=A1 The high-level-synthesis bug type of the code is: 'SMA' The right code snippet is: #pragma HLS INTERFACE ap_none port=A1
'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 s_axilite port=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ap_none port=A4 #pragma HLS INTERFACE ap_none ...
The wrong part of the code is: #pragma HLS INTERFACE s_axilite port=A1 The right code snippet is: #pragma HLS INTERFACE ap_none port=A1
'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 s_axilite port=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ap_none port=A4 #pragma HLS INTERFACE ap_none port=...
The right code snippet is: #pragma HLS INTERFACE ap_none port=A1
'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 s_axilite port=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ap_none port=A4 #pragma HLS INTERFA...
The wrong part of the code is: #pragma HLS INTERFACE s_axilite port=A1 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 s_axilite port=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFAC...
The wrong part of the code is: #pragma HLS INTERFACE s_axilite port=A1 The high-level-synthesis bug type of the code is: 'AMS' The right code snippet is: #pragma HLS INTERFACE ap_none port=A1
'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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ap_none port=A4 #pragma HLS INTERFACE ap_none po...
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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ap_none port=A4 #pragma HLS INTERFACE ap_none port=A5...
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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ap_none port=A4 #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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #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' 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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ap_none port=A4 #pragma HLS INTERFACE ap_none po...
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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ap_none port=A4 #pragma HLS INTERFACE ap_none port=A5...
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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #pragma HLS INTERFACE ap_none port=A4 #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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=A3 #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' 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 sky130_fd_sc_hdll__inputiso0n ( bool &X , bool A , bool SLEEP_B, float VPWR , float VGND , float VPB , floa...
The wrong part of the code is: bool and0_out_X = true; The right code snippet is: bool and0_out_X;
'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 sky130_fd_sc_hdll__inputiso0n ( bool &X , bool A , bool SLEEP_B, float VPWR , float VGND , float VPB , float VNB...
The right code snippet is: bool and0_out_X;
'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 sky130_fd_sc_hdll__inputiso0n ( bool &X , bool A , bool SLEEP_B, float VPWR , float VGND , float VPB ...
The wrong part of the code is: bool and0_out_X = 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: ``` #include <hls_math.h> void sky130_fd_sc_hdll__inputiso0n ( bool &X , bool A , bool SLEEP_B, float VPWR ...
The wrong part of the code is: bool and0_out_X = true; The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: bool and0_out_X;
'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 sky130_fd_sc_hdll__inputiso0n ( bool &X , bool A , bool SLEEP_B, float VPWR , float VGND , float VPB , floa...
The wrong part of the code is: while(true){ X = hls::pow(1.0/(1.0 + hls::exp(-0.5*(VPWR-VPB+VGND-VNB))), 2.0) * and0_out_X; } The right code snippet is: X = hls::pow(1.0/(1.0 + hls::exp(-0.5*(VPWR-VPB+VGND-VNB))), 2.0) * and0_out_X;
'INF'
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 sky130_fd_sc_hdll__inputiso0n ( bool &X , bool A , bool SLEEP_B, float VPWR , float VGND , float VPB , float VNB...
The right code snippet is: X = hls::pow(1.0/(1.0 + hls::exp(-0.5*(VPWR-VPB+VGND-VNB))), 2.0) * and0_out_X;
'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 <hls_math.h> void sky130_fd_sc_hdll__inputiso0n ( bool &X , bool A , bool SLEEP_B, float VPWR , float VGND , float VPB ...
The wrong part of the code is: while(true){ X = hls::pow(1.0/(1.0 + hls::exp(-0.5*(VPWR-VPB+VGND-VNB))), 2.0) * and0_out_X; } The high-level-synthesis bug type of the code is: 'INF'
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <hls_math.h> void sky130_fd_sc_hdll__inputiso0n ( bool &X , bool A , bool SLEEP_B, float VPWR ...
The wrong part of the code is: while(true){ X = hls::pow(1.0/(1.0 + hls::exp(-0.5*(VPWR-VPB+VGND-VNB))), 2.0) * and0_out_X; } The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: X = hls::pow(1.0/(1.0 + hls::exp(-0.5*(VPWR-VPB+VGND-VNB))), 2.0) * and0_out_X;
'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 <hls_math.h> void sky130_fd_sc_hdll__inputiso0n ( bool &X , bool A , bool SLEEP_B, float VPWR , float VGND , float VPB , floa...
The wrong part of the code is: and0_out_X = A[10] && SLEEP_B; The right code snippet is: and0_out_X = A && SLEEP_B;
'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 sky130_fd_sc_hdll__inputiso0n ( bool &X , bool A , bool SLEEP_B, float VPWR , float VGND , float VPB , float VNB...
The right code snippet is: and0_out_X = A && SLEEP_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: ``` #include <hls_math.h> void sky130_fd_sc_hdll__inputiso0n ( bool &X , bool A , bool SLEEP_B, float VPWR , float VGND , float VPB ...
The wrong part of the code is: and0_out_X = A[10] && SLEEP_B; 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 sky130_fd_sc_hdll__inputiso0n ( bool &X , bool A , bool SLEEP_B, float VPWR ...
The wrong part of the code is: and0_out_X = A[10] && SLEEP_B; The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: and0_out_X = A && SLEEP_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: ``` #include <hls_math.h> void sky130_fd_sc_hdll__inputiso0n ( bool &X , bool A , bool SLEEP_B, float VPWR , float VGND , float VPB , floa...
The wrong part of the code is: X = hls::pow(1.0/(1.0 + hls::exp(-0.5*(VPWR-VPB+VGND-VNB))), -2.0) * and0_out_X; The right code snippet is: X = hls::pow(1.0/(1.0 + hls::exp(-0.5*(VPWR-VPB+VGND-VNB))), 2.0) * and0_out_X;
'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 sky130_fd_sc_hdll__inputiso0n ( bool &X , bool A , bool SLEEP_B, float VPWR , float VGND , float VPB , float VNB...
The right code snippet is: X = hls::pow(1.0/(1.0 + hls::exp(-0.5*(VPWR-VPB+VGND-VNB))), 2.0) * and0_out_X;
'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 sky130_fd_sc_hdll__inputiso0n ( bool &X , bool A , bool SLEEP_B, float VPWR , float VGND , float VPB ...
The wrong part of the code is: X = hls::pow(1.0/(1.0 + hls::exp(-0.5*(VPWR-VPB+VGND-VNB))), -2.0) * and0_out_X; 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 sky130_fd_sc_hdll__inputiso0n ( bool &X , bool A , bool SLEEP_B, float VPWR ...
The wrong part of the code is: X = hls::pow(1.0/(1.0 + hls::exp(-0.5*(VPWR-VPB+VGND-VNB))), -2.0) * and0_out_X; The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: X = hls::pow(1.0/(1.0 + hls::exp(-0.5*(VPWR-VPB+VGND-VNB))), 2.0) * and0_out_X;
'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 sky130_fd_sc_hdll__inputiso0n ( bool &X , bool A , bool SLEEP_B, float VPWR , float VGND , float VPB , floa...
The wrong part of the code is: unsigned char and0_out_X_unsigned = and0_out_X; X = hls::pow(1.0/(1.0 + hls::exp(-0.5*(VPWR-VPB+VGND-VNB))), 2.0) * and0_out_X_unsigned; The right code snippet is: X = hls::pow(1.0/(1.0 + hls::exp(-0.5*(VPWR-VPB+VGND-VNB))), 2.0) * and0_out_X;
'USE'
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 sky130_fd_sc_hdll__inputiso0n ( bool &X , bool A , bool SLEEP_B, float VPWR , float VGND , float VPB , float VNB...
The right code snippet is: X = hls::pow(1.0/(1.0 + hls::exp(-0.5*(VPWR-VPB+VGND-VNB))), 2.0) * and0_out_X;
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <hls_math.h> void sky130_fd_sc_hdll__inputiso0n ( bool &X , bool A , bool SLEEP_B, float VPWR , float VGND , float VPB ...
The wrong part of the code is: unsigned char and0_out_X_unsigned = and0_out_X; X = hls::pow(1.0/(1.0 + hls::exp(-0.5*(VPWR-VPB+VGND-VNB))), 2.0) * and0_out_X_unsigned; The high-level-synthesis bug type of the code is: 'USE'
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <hls_math.h> void sky130_fd_sc_hdll__inputiso0n ( bool &X , bool A , bool SLEEP_B, float VPWR ...
The wrong part of the code is: unsigned char and0_out_X_unsigned = and0_out_X; X = hls::pow(1.0/(1.0 + hls::exp(-0.5*(VPWR-VPB+VGND-VNB))), 2.0) * and0_out_X_unsigned; The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: X = hls::pow(1.0/(1.0 + hls::exp(-0.5*(VPWR-VPB+...
'USE'