instruction stringlengths 139 357k | response stringlengths 36 4.54k | buggy_type stringclasses 745
values |
|---|---|---|
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
void delay_module (bool A, bool &X) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis p... |
The wrong part of the code is:
#pragma HLS interface ap_ctrl_none port=return
#pragma HLS interface ap_vld port=A
#pragma HLS interface ap_vld port=X
The right code snippet is:
#pragma HLS interface ap_ctrl_none port=return
#pragma HLS interface axis port=A
#pragma HLS interface axis port=X | 'AMS' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <ap_int.h>
void delay_module (bool A, bool &X) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis port=X... |
The right code snippet is:
#pragma HLS interface ap_ctrl_none port=return
#pragma HLS interface axis port=A
#pragma HLS interface axis port=X | 'AMS' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
#include <ap_int.h>
void delay_module (bool A, bool &X) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTER... |
The wrong part of the code is:
#pragma HLS interface ap_ctrl_none port=return
#pragma HLS interface ap_vld port=A
#pragma HLS interface ap_vld port=X
The high-level-synthesis bug type of the code is: 'AMS' | 'AMS' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
void delay_module (bool A, bool &X) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERF... |
The wrong part of the code is:
#pragma HLS interface ap_ctrl_none port=return
#pragma HLS interface ap_vld port=A
#pragma HLS interface ap_vld port=X
The high-level-synthesis bug type of the code is: 'AMS'
The right code snippet is:
#pragma HLS interface ap_ctrl_none port=return
#pragma HLS interfa... | '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 delay_module (bool A, bool &X) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis p... |
The wrong part of the code is:
#pragma HLS pipeline II=2
The right code snippet is:
#pragma HLS pipeline II=1 | '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 delay_module (bool A, bool &X) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis port=X... |
The right code snippet is:
#pragma HLS pipeline II=1 | '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 delay_module (bool A, bool &X) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTER... |
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:
```
#include <ap_int.h>
void delay_module (bool A, bool &X) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERF... |
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 II=1 | 'MLP' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
void delay_module (bool A, bool &X) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis p... |
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:
```
#include <ap_int.h>
void delay_module (bool A, bool &X) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis port=X... |
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:
```
#include <ap_int.h>
void delay_module (bool A, bool &X) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTER... |
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:
```
#include <ap_int.h>
void delay_module (bool A, bool &X) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERF... |
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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
bool VPWR,
bool VGND,
bool VPB ,
b... |
The wrong part of the code is:
or0_out_X = A || B || C || not0_out || D_N[-1];
The right code snippet is:
or0_out_X = A || B || C || not0_out; | 'OOB' |
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 sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
bool VPWR,
bool VGND,
bool VPB ,
bool V... |
The right code snippet is:
or0_out_X = A || B || C || not0_out; | '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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
bool VPWR,
bool VGND,
bool ... |
The wrong part of the code is:
or0_out_X = A || B || C || not0_out || D_N[-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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
... |
The wrong part of the code is:
or0_out_X = A || B || C || not0_out || D_N[-1];
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
or0_out_X = A || B || C || not0_out; | 'OOB' |
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 sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
bool VPWR,
bool VGND,
bool VPB ,
b... |
The wrong part of the code is:
bool or0_out_X;
or0_out_X = or0_out_X || true;
The right code snippet is:
bool or0_out_X ; | '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 sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
bool VPWR,
bool VGND,
bool VPB ,
bool V... |
The right code snippet is:
bool or0_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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
bool VPWR,
bool VGND,
bool ... |
The wrong part of the code is:
bool or0_out_X;
or0_out_X = or0_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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
... |
The wrong part of the code is:
bool or0_out_X;
or0_out_X = or0_out_X || true;
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
bool or0_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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
bool VPWR,
bool VGND,
bool VPB ,
b... |
The wrong part of the code is:
not0_out = D_N << 2;
The right code snippet is:
not0_out = !D_N; | '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 sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
bool VPWR,
bool VGND,
bool VPB ,
bool V... |
The right code snippet is:
not0_out = !D_N; | '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 sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
bool VPWR,
bool VGND,
bool ... |
The wrong part of the code is:
not0_out = D_N << 2;
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 sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
... |
The wrong part of the code is:
not0_out = D_N << 2;
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
not0_out = !D_N; | '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 sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
bool VPWR,
bool VGND,
bool VPB ,
b... |
The wrong part of the code is:
while(1){}
The right code snippet is:
//No infinite loop | '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 sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
bool VPWR,
bool VGND,
bool VPB ,
bool V... |
The right code snippet is:
//No infinite loop | '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 sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
bool VPWR,
bool VGND,
bool ... |
The wrong part of the code is:
while(1){}
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 sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
... |
The wrong part of the code is:
while(1){}
The high-level-synthesis bug type of the code is: 'INF'
The right code snippet is:
//No infinite loop | '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 sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
bool VPWR,
bool VGND,
bool VPB ,
b... |
The wrong part of the code is:
bool not0_out = D_N;
not0_out = (int8_t)not0_out;
The right code snippet is:
//No variable initialization | '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 sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
bool VPWR,
bool VGND,
bool VPB ,
bool V... |
The right code snippet is:
//No variable initialization | '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 sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
bool VPWR,
bool VGND,
bool ... |
The wrong part of the code is:
bool not0_out = D_N;
not0_out = (int8_t)not0_out;
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 sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
... |
The wrong part of the code is:
bool not0_out = D_N;
not0_out = (int8_t)not0_out;
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
//No variable initialization | '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 sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
bool VPWR,
bool VGND,
bool VPB ,
b... |
The wrong part of the code is:
for(int i=0;i<2;i++){
or0_out_X = A || B || C || not0_out;
}
The right code snippet is:
//No manual loop unrolling | 'MLU' |
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 sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
bool VPWR,
bool VGND,
bool VPB ,
bool V... |
The right code snippet is:
//No manual loop unrolling | '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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
bool VPWR,
bool VGND,
bool ... |
The wrong part of the code is:
for(int i=0;i<2;i++){
or0_out_X = A || B || C || not0_out;
}
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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
... |
The wrong part of the code is:
for(int i=0;i<2;i++){
or0_out_X = A || B || C || not0_out;
}
The high-level-synthesis bug type of the code is: 'MLU'
The right code snippet is:
//No manual loop unrolling | 'MLU' |
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 sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
bool VPWR,
bool VGND,
bool VPB ,
b... |
The wrong part of the code is:
bool not0_out = 0;
The right code snippet is:
bool not0_out ; | 'ZERO' |
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 sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
bool VPWR,
bool VGND,
bool VPB ,
bool V... |
The right code snippet is:
bool not0_out ; | '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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
bool VPWR,
bool VGND,
bool ... |
The wrong part of the code is:
bool not0_out = 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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
... |
The wrong part of the code is:
bool not0_out = 0;
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
bool not0_out ; | 'ZERO' |
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 sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
bool VPWR,
bool VGND,
bool VPB ,
b... |
The wrong part of the code is:
memcpy(&X, &VPWR, sizeof(bool)*2);
The right code snippet is:
//No buffer splitting | '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 sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
bool VPWR,
bool VGND,
bool VPB ,
bool V... |
The right code snippet is:
//No buffer splitting | '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 sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
bool VPWR,
bool VGND,
bool ... |
The wrong part of the code is:
memcpy(&X, &VPWR, sizeof(bool)*2);
The high-level-synthesis bug type of the code is: 'BUF' | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
... |
The wrong part of the code is:
memcpy(&X, &VPWR, sizeof(bool)*2);
The high-level-synthesis bug type of the code is: 'BUF'
The right code snippet is:
//No buffer splitting | '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 sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
bool VPWR,
bool VGND,
bool VPB ,
b... |
The wrong part of the code is:
#pragma HLS array_partition variable=not0_out cyclic factor=2
The right code snippet is:
//No array partitioning | '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 sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
bool VPWR,
bool VGND,
bool VPB ,
bool V... |
The right code snippet is:
//No array partitioning | '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 sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
bool VPWR,
bool VGND,
bool ... |
The wrong part of the code is:
#pragma HLS array_partition variable=not0_out cyclic factor=2
The high-level-synthesis bug type of the code is: 'APT' | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
... |
The wrong part of the code is:
#pragma HLS array_partition variable=not0_out cyclic factor=2
The high-level-synthesis bug type of the code is: 'APT'
The right code snippet is:
//No array partitioning | '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 sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
bool VPWR,
bool VGND,
bool VPB ,
b... |
The wrong part of the code is:
#pragma HLS array_partition variable=not0_out cyclic factor=3
The right code snippet is:
//No array partitioning | '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 sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
bool VPWR,
bool VGND,
bool VPB ,
bool V... |
The right code snippet is:
//No array partitioning | '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 sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
bool VPWR,
bool VGND,
bool ... |
The wrong part of the code is:
#pragma HLS array_partition variable=not0_out 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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
... |
The wrong part of the code is:
#pragma HLS array_partition variable=not0_out cyclic factor=3
The high-level-synthesis bug type of the code is: 'FND'
The right code snippet is:
//No array partitioning | '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 sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
bool VPWR,
bool VGND,
bool VPB ,
b... |
The wrong part of the code is:
#pragma HLS array_partition variable=not0_out dim=0
The right code snippet is:
//No array partitioning | '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 sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
bool VPWR,
bool VGND,
bool VPB ,
bool V... |
The right code snippet is:
//No array partitioning | '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 sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
bool VPWR,
bool VGND,
bool ... |
The wrong part of the code is:
#pragma HLS array_partition variable=not0_out dim=0
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 sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
... |
The wrong part of the code is:
#pragma HLS array_partition variable=not0_out dim=0
The high-level-synthesis bug type of the code is: 'DID'
The right code snippet is:
//No array partitioning | '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 sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
bool VPWR,
bool VGND,
bool VPB ,
b... |
The wrong part of the code is:
#pragma HLS dataflow
The right code snippet is:
//No dataflow pragma | '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 sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
bool VPWR,
bool VGND,
bool VPB ,
bool V... |
The right code snippet is:
//No dataflow pragma | '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 sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
bool VPWR,
bool VGND,
bool ... |
The wrong part of the code is:
#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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
... |
The wrong part of the code is:
#pragma HLS dataflow
The high-level-synthesis bug type of the code is: 'DFP'
The right code snippet is:
//No dataflow pragma | '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 sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
bool VPWR,
bool VGND,
bool VPB ,
b... |
The wrong part of the code is:
#pragma HLS interface ap_none port=not0_out
The right code snippet is:
//No interface pragma | '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 sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
bool VPWR,
bool VGND,
bool VPB ,
bool V... |
The right code snippet is:
//No interface pragma | '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 sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
bool VPWR,
bool VGND,
bool ... |
The wrong part of the code is:
#pragma HLS interface ap_none port=not0_out
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 sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
... |
The wrong part of the code is:
#pragma HLS interface ap_none port=not0_out
The high-level-synthesis bug type of the code is: 'IDAP'
The right code snippet is:
//No interface pragma | '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 sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
bool VPWR,
bool VGND,
bool VPB ,
b... |
The wrong part of the code is:
#pragma HLS interface m_axi port=not0_out offset=slave bundle=gmem
The right code snippet is:
//No m_axi interface | '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 sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
bool VPWR,
bool VGND,
bool VPB ,
bool V... |
The right code snippet is:
//No m_axi interface | '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 sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
bool VPWR,
bool VGND,
bool ... |
The wrong part of the code is:
#pragma HLS interface m_axi port=not0_out offset=slave bundle=gmem
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 sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
... |
The wrong part of the code is:
#pragma HLS interface m_axi port=not0_out offset=slave bundle=gmem
The high-level-synthesis bug type of the code is: 'RAMB'
The right code snippet is:
//No m_axi interface | '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 sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
bool VPWR,
bool VGND,
bool VPB ,
b... |
The wrong part of the code is:
#pragma HLS interface s_axilite port=not0_out bundle=control
The right code snippet is:
//No scalar interface | '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 sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
bool VPWR,
bool VGND,
bool VPB ,
bool V... |
The right code snippet is:
//No scalar interface | '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 sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
bool VPWR,
bool VGND,
bool ... |
The wrong part of the code is:
#pragma HLS interface s_axilite port=not0_out bundle=control
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 sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
... |
The wrong part of the code is:
#pragma HLS interface s_axilite port=not0_out bundle=control
The high-level-synthesis bug type of the code is: 'SMA'
The right code snippet is:
//No scalar interface | 'SMA' |
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 sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
bool VPWR,
bool VGND,
bool VPB ,
b... |
The wrong part of the code is:
#pragma HLS interface ap_fifo port=not0_out
The right code snippet is:
//No array interface | 'AMS' |
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 sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
bool VPWR,
bool VGND,
bool VPB ,
bool V... |
The right code snippet is:
//No array interface | '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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
bool VPWR,
bool VGND,
bool ... |
The wrong part of the code is:
#pragma HLS interface ap_fifo port=not0_out
The high-level-synthesis bug type of the code is: 'AMS' | 'AMS' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
... |
The wrong part of the code is:
#pragma HLS interface ap_fifo port=not0_out
The high-level-synthesis bug type of the code is: 'AMS'
The right code snippet is:
//No array interface | 'AMS' |
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 sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
bool VPWR,
bool VGND,
bool VPB ,
b... |
The wrong part of the code is:
#pragma HLS pipeline II=2
The right code snippet is:
//No pipelining pragma | 'MLP' |
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 sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
bool VPWR,
bool VGND,
bool VPB ,
bool V... |
The right code snippet is:
//No pipelining pragma | '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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
bool VPWR,
bool VGND,
bool ... |
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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
... |
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:
//No pipelining pragma | '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 sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
bool VPWR,
bool VGND,
bool VPB ,
b... |
The wrong part of the code is:
#pragma HLS unroll factor=2
The right code snippet is:
//No unrolling pragma | '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 sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
bool VPWR,
bool VGND,
bool VPB ,
bool V... |
The right code snippet is:
//No unrolling pragma | '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 sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
bool VPWR,
bool VGND,
bool ... |
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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__or4b(
bool &X ,
bool A ,
bool B ,
bool C ,
bool D_N ,
... |
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:
//No unrolling pragma | 'ILNU' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
void sky130_fd_sc_lp__nand3(bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
... |
The wrong part of the code is:
Y = ~(A[0] & B[1] & C[2]);
The right code snippet is:
Y = ~(A & B & C); | '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 sky130_fd_sc_lp__nand3(bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pr... |
The right code snippet is:
Y = ~(A & B & C); | '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 sky130_fd_sc_lp__nand3(bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none por... |
The wrong part of the code is:
Y = ~(A[0] & B[1] & C[2]);
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 sky130_fd_sc_lp__nand3(bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y) {
#... |
The wrong part of the code is:
Y = ~(A[0] & B[1] & C[2]);
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
Y = ~(A & B & C); | '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 sky130_fd_sc_lp__nand3(bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool Y;) {
#pragma HLS INTERFACE ap_ctrl_none port=return
... |
The wrong part of the code is:
bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool Y;
The right code snippet is:
bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y | '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 sky130_fd_sc_lp__nand3(bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool Y;) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pr... |
The right code snippet is:
bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y | '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 sky130_fd_sc_lp__nand3(bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool Y;) {
#pragma HLS INTERFACE ap_ctrl_none por... |
The wrong part of the code is:
bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool Y;
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 sky130_fd_sc_lp__nand3(bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool Y;) {
#... |
The wrong part of the code is:
bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool Y;
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y | '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 sky130_fd_sc_lp__nand3(bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
... |
The wrong part of the code is:
Y = ~(A << 4 & B << 2 & C);
The right code snippet is:
Y = ~(A & B & C); | 'SHFT' |
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 sky130_fd_sc_lp__nand3(bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pr... |
The right code snippet is:
Y = ~(A & B & C); | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
#include <ap_int.h>
void sky130_fd_sc_lp__nand3(bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none por... |
The wrong part of the code is:
Y = ~(A << 4 & B << 2 & C);
The high-level-synthesis bug type of the code is: 'SHFT' | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
void sky130_fd_sc_lp__nand3(bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y) {
#... |
The wrong part of the code is:
Y = ~(A << 4 & B << 2 & C);
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
Y = ~(A & B & C); | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
void sky130_fd_sc_lp__nand3(bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
... |
The wrong part of the code is:
while(true){
Y = ~(A & B & C);
}
The right code snippet is:
Y = ~(A & B & C); | '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 sky130_fd_sc_lp__nand3(bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pr... |
The right code snippet is:
Y = ~(A & B & C); | '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 sky130_fd_sc_lp__nand3(bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none por... |
The wrong part of the code is:
while(true){
Y = ~(A & B & C);
}
The high-level-synthesis bug type of the code is: 'INF' | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
void sky130_fd_sc_lp__nand3(bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y) {
#... |
The wrong part of the code is:
while(true){
Y = ~(A & B & C);
}
The high-level-synthesis bug type of the code is: 'INF'
The right code snippet is:
Y = ~(A & B & C); | 'INF' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.