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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE m_axi port=in offset=slave bundle=DATA_BUS
void... |
The wrong part of the code is:
int priority = 0;
The right code snippet is:
int priority; | 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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE m_axi port=in offset=slave bundle=DATA_BUS
void mux_... |
The right code snippet is:
int priority; | 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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE m_axi port=in offset=slave bundle=DAT... |
The wrong part of the code is:
int priority = 0;
The high-level-synthesis bug type of the code is: INIT | INIT |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE ... |
The wrong part of the code is:
int priority = 0;
The high-level-synthesis bug type of the code is: INIT
The right code snippet is:
int priority; | 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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE m_axi port=in offset=slave bundle=DATA_BUS
void... |
The wrong part of the code is:
out = in[(priority*4)+3] | (in[(priority*4)+2] << 10) | (in[(priority*4)+1] << 16) | (in[priority*4] << 24);
The right code snippet is:
out = in[(priority*4)+3] | (in[(priority*4)+2] << 8) | (in[(priority*4)+1] << 16) | (in[priority*4] << 24); | 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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE m_axi port=in offset=slave bundle=DATA_BUS
void mux_... |
The right code snippet is:
out = in[(priority*4)+3] | (in[(priority*4)+2] << 8) | (in[(priority*4)+1] << 16) | (in[priority*4] << 24); | 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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE m_axi port=in offset=slave bundle=DAT... |
The wrong part of the code is:
out = in[(priority*4)+3] | (in[(priority*4)+2] << 10) | (in[(priority*4)+1] << 16) | (in[priority*4] << 24);
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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE ... |
The wrong part of the code is:
out = in[(priority*4)+3] | (in[(priority*4)+2] << 10) | (in[(priority*4)+1] << 16) | (in[priority*4] << 24);
The high-level-synthesis bug type of the code is: SHFT
The right code snippet is:
out = in[(priority*4)+3] | (in[(priority*4)+2] << 8) | (in[(priority*4)+1] <<... | SHFT |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE m_axi port=in offset=slave bundle=DATA_BUS
void... |
The wrong part of the code is:
switch(sel) {
case 0: priority = 0x80; break;
case 1: priority = 0x40; break;
case 2: priority = 0x20; break;
case 3: priority = 0x10; break;
case 4: priority = 0x08; break;
case 5: priority = 0x04; break;
case 6: priority =... | 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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE m_axi port=in offset=slave bundle=DATA_BUS
void mux_... |
The right code snippet is:
switch(sel) {
case 0: priority = 0x80; break;
case 1: priority = 0x40; break;
case 2: priority = 0x20; break;
case 3: priority = 0x10; break;
case 4: priority = 0x08; break;
case 5: priority = 0x04; break;
case 6: priority = 0x0... | 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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE m_axi port=in offset=slave bundle=DAT... |
The wrong part of the code is:
switch(sel) {
case 0: priority = 0x80; break;
case 1: priority = 0x40; break;
case 2: priority = 0x20; break;
case 3: priority = 0x10; break;
case 4: priority = 0x08; break;
case 5: priority = 0x04; break;
case 6: priority =... | 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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE ... |
The wrong part of the code is:
switch(sel) {
case 0: priority = 0x80; break;
case 1: priority = 0x40; break;
case 2: priority = 0x20; break;
case 3: priority = 0x10; break;
case 4: priority = 0x08; break;
case 5: priority = 0x04; break;
case 6: priority =... | 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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE m_axi port=in offset=slave bundle=DATA_BUS
void... |
The wrong part of the code is:
unsigned int priority;
The right code snippet is:
int priority; | 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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE m_axi port=in offset=slave bundle=DATA_BUS
void mux_... |
The right code snippet is:
int priority; | 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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE m_axi port=in offset=slave bundle=DAT... |
The wrong part of the code is:
unsigned int priority;
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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE ... |
The wrong part of the code is:
unsigned int priority;
The high-level-synthesis bug type of the code is: USE
The right code snippet is:
int priority; | 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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE m_axi port=in offset=slave bundle=DATA_BUS
void... |
The wrong part of the code is:
None
The right code snippet is:
None | 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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE m_axi port=in offset=slave bundle=DATA_BUS
void mux_... |
The right code snippet is:
None | 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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE m_axi port=in offset=slave bundle=DAT... |
The wrong part of the code is:
None
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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE ... |
The wrong part of the code is:
None
The high-level-synthesis bug type of the code is: MLU
The right code snippet is:
None | 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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE m_axi port=in offset=slave bundle=DATA_BUS
void... |
The wrong part of the code is:
int priority = 0;
The right code snippet is:
int priority; | 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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE m_axi port=in offset=slave bundle=DATA_BUS
void mux_... |
The right code snippet is:
int priority; | 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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE m_axi port=in offset=slave bundle=DAT... |
The wrong part of the code is:
int priority = 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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE ... |
The wrong part of the code is:
int priority = 0;
The high-level-synthesis bug type of the code is: ZERO
The right code snippet is:
int priority; | 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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE m_axi port=in offset=slave bundle=DATA_BUS
void... |
The wrong part of the code is:
out = in[(priority*4)+3] | (in[(priority*4)+1] << 8) | (in[(priority*4)+2] << 16) | (in[priority*4] << 24);
The right code snippet is:
out = in[(priority*4)+3] | (in[(priority*4)+2] << 8) | (in[(priority*4)+1] << 16) | (in[priority*4] << 24); | 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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE m_axi port=in offset=slave bundle=DATA_BUS
void mux_... |
The right code snippet is:
out = in[(priority*4)+3] | (in[(priority*4)+2] << 8) | (in[(priority*4)+1] << 16) | (in[priority*4] << 24); | 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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE m_axi port=in offset=slave bundle=DAT... |
The wrong part of the code is:
out = in[(priority*4)+3] | (in[(priority*4)+1] << 8) | (in[(priority*4)+2] << 16) | (in[priority*4] << 24);
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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE ... |
The wrong part of the code is:
out = in[(priority*4)+3] | (in[(priority*4)+1] << 8) | (in[(priority*4)+2] << 16) | (in[priority*4] << 24);
The high-level-synthesis bug type of the code is: BUF
The right code snippet is:
out = in[(priority*4)+3] | (in[(priority*4)+2] << 8) | (in[(priority*4)+1] << 1... | 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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE m_axi port=in offset=slave bundle=DATA_BUS
void... |
The wrong part of the code is:
None
The right code snippet is:
None | 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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE m_axi port=in offset=slave bundle=DATA_BUS
void mux_... |
The right code snippet is:
None | 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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE m_axi port=in offset=slave bundle=DAT... |
The wrong part of the code is:
None
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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE ... |
The wrong part of the code is:
None
The high-level-synthesis bug type of the code is: APT
The right code snippet is:
None | 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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE m_axi port=in offset=slave bundle=DATA_BUS
void... |
The wrong part of the code is:
None
The right code snippet is:
None | 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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE m_axi port=in offset=slave bundle=DATA_BUS
void mux_... |
The right code snippet is:
None | 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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE m_axi port=in offset=slave bundle=DAT... |
The wrong part of the code is:
None
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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE ... |
The wrong part of the code is:
None
The high-level-synthesis bug type of the code is: FND
The right code snippet is:
None | 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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE m_axi port=in offset=slave bundle=DATA_BUS
void... |
The wrong part of the code is:
None
The right code snippet is:
None | 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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE m_axi port=in offset=slave bundle=DATA_BUS
void mux_... |
The right code snippet is:
None | 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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE m_axi port=in offset=slave bundle=DAT... |
The wrong part of the code is:
None
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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE ... |
The wrong part of the code is:
None
The high-level-synthesis bug type of the code is: DID
The right code snippet is:
None | 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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE m_axi port=in offset=slave bundle=DATA_BUS
void... |
The wrong part of the code is:
None
The right code snippet is:
None | 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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE m_axi port=in offset=slave bundle=DATA_BUS
void mux_... |
The right code snippet is:
None | 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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE m_axi port=in offset=slave bundle=DAT... |
The wrong part of the code is:
None
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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE ... |
The wrong part of the code is:
None
The high-level-synthesis bug type of the code is: DFP
The right code snippet is:
None | 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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE m_axi port=in offset=slave bundle=DATA_BUS
void... |
The wrong part of the code is:
None
The right code snippet is:
None | 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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE m_axi port=in offset=slave bundle=DATA_BUS
void mux_... |
The right code snippet is:
None | 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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE m_axi port=in offset=slave bundle=DAT... |
The wrong part of the code is:
None
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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE ... |
The wrong part of the code is:
None
The high-level-synthesis bug type of the code is: IDAP
The right code snippet is:
None | 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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE m_axi port=in offset=slave bundle=DATA_BUS
void... |
The wrong part of the code is:
None
The right code snippet is:
None | 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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE m_axi port=in offset=slave bundle=DATA_BUS
void mux_... |
The right code snippet is:
None | 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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE m_axi port=in offset=slave bundle=DAT... |
The wrong part of the code is:
None
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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE ... |
The wrong part of the code is:
None
The high-level-synthesis bug type of the code is: RAMB
The right code snippet is:
None | 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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE m_axi port=in offset=slave bundle=DATA_BUS
void... |
The wrong part of the code is:
None
The right code snippet is:
None | 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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE m_axi port=in offset=slave bundle=DATA_BUS
void mux_... |
The right code snippet is:
None | 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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE m_axi port=in offset=slave bundle=DAT... |
The wrong part of the code is:
None
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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE ... |
The wrong part of the code is:
None
The high-level-synthesis bug type of the code is: SMA
The right code snippet is:
None | 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=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE m_axi port=in offset=slave bundle=DATA_BUS
void... |
The wrong part of the code is:
None
The right code snippet is:
None | 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=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE m_axi port=in offset=slave bundle=DATA_BUS
void mux_... |
The right code snippet is:
None | 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=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE m_axi port=in offset=slave bundle=DAT... |
The wrong part of the code is:
None
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=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE ... |
The wrong part of the code is:
None
The high-level-synthesis bug type of the code is: AMS
The right code snippet is:
None | 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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE m_axi port=in offset=slave bundle=DATA_BUS
void... |
The wrong part of the code is:
None
The right code snippet is:
None | 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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE m_axi port=in offset=slave bundle=DATA_BUS
void mux_... |
The right code snippet is:
None | 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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE m_axi port=in offset=slave bundle=DAT... |
The wrong part of the code is:
None
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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE ... |
The wrong part of the code is:
None
The high-level-synthesis bug type of the code is: MLP
The right code snippet is:
None | 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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE m_axi port=in offset=slave bundle=DATA_BUS
void... |
The wrong part of the code is:
None
The right code snippet is:
None | 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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE m_axi port=in offset=slave bundle=DATA_BUS
void mux_... |
The right code snippet is:
None | 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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE m_axi port=in offset=slave bundle=DAT... |
The wrong part of the code is:
None
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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE ... |
The wrong part of the code is:
None
The high-level-synthesis bug type of the code is: ILNU
The right code snippet is:
None | 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 test_sky130_fd_sc_ms__a32o(bool A1, bool A2, bool A3, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB, bool &X) {
// Test case 1: all inputs... |
The wrong part of the code is:
if (X) {
The right code snippet is:
if (X != 0) { | '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 test_sky130_fd_sc_ms__a32o(bool A1, bool A2, bool A3, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB, bool &X) {
// Test case 1: all inputs are ... |
The right code snippet is:
if (X != 0) { | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#include <hls_math.h>
void test_sky130_fd_sc_ms__a32o(bool A1, bool A2, bool A3, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB, bool &X) {
// Test case 1:... |
The wrong part of the code is:
if (X) {
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 test_sky130_fd_sc_ms__a32o(bool A1, bool A2, bool A3, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool... |
The wrong part of the code is:
if (X) {
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
if (X != 0) { | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <hls_math.h>
void test_sky130_fd_sc_ms__a32o(bool A1, bool A2, bool A3, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB, bool &X) {
// Test case 1: all inputs... |
The wrong part of the code is:
A3 = -1;
The right code snippet is:
A3 = 0; | '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 test_sky130_fd_sc_ms__a32o(bool A1, bool A2, bool A3, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB, bool &X) {
// Test case 1: all inputs are ... |
The right code snippet is:
A3 = 0; | '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 test_sky130_fd_sc_ms__a32o(bool A1, bool A2, bool A3, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB, bool &X) {
// Test case 1:... |
The wrong part of the code is:
A3 = -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:
#include <hls_math.h>
void test_sky130_fd_sc_ms__a32o(bool A1, bool A2, bool A3, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool... |
The wrong part of the code is:
A3 = -1;
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
A3 = 0; | '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 test_sky130_fd_sc_ms__a32o(bool A1, bool A2, bool A3, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB, bool &X) {
// Test case 1: all inputs... |
The wrong part of the code is:
while (true) {}
The right code snippet is:
hls::wait(10); | '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 test_sky130_fd_sc_ms__a32o(bool A1, bool A2, bool A3, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB, bool &X) {
// Test case 1: all inputs are ... |
The right code snippet is:
hls::wait(10); | '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 test_sky130_fd_sc_ms__a32o(bool A1, bool A2, bool A3, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB, bool &X) {
// Test case 1:... |
The wrong part of the code is:
while (true) {}
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 test_sky130_fd_sc_ms__a32o(bool A1, bool A2, bool A3, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool... |
The wrong part of the code is:
while (true) {}
The high-level-synthesis bug type of the code is: 'INF'
The right code snippet is:
hls::wait(10); | '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 test_sky130_fd_sc_ms__a32o(bool A1, bool A2, bool A3, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB, bool &X) {
// Test case 1: all inputs... |
The wrong part of the code is:
if (X != -1) {
The right code snippet is:
if (X != 1) { | '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 test_sky130_fd_sc_ms__a32o(bool A1, bool A2, bool A3, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB, bool &X) {
// Test case 1: all inputs are ... |
The right code snippet is:
if (X != 1) { | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#include <hls_math.h>
void test_sky130_fd_sc_ms__a32o(bool A1, bool A2, bool A3, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB, bool &X) {
// Test case 1:... |
The wrong part of the code is:
if (X != -1) {
The high-level-synthesis bug type of the code is: 'USE' | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#include <hls_math.h>
void test_sky130_fd_sc_ms__a32o(bool A1, bool A2, bool A3, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool... |
The wrong part of the code is:
if (X != -1) {
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
if (X != 1) { | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <hls_math.h>
void test_sky130_fd_sc_ms__a32o(bool A1, bool A2, bool A3, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB, bool &X) {
// Test case 1: all inputs... |
The wrong part of the code is:
B2 = 0;
The right code snippet is:
B2 = 1; | 'BUF' |
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 test_sky130_fd_sc_ms__a32o(bool A1, bool A2, bool A3, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB, bool &X) {
// Test case 1: all inputs are ... |
The right code snippet is:
B2 = 1; | '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:
#include <hls_math.h>
void test_sky130_fd_sc_ms__a32o(bool A1, bool A2, bool A3, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB, bool &X) {
// Test case 1:... |
The wrong part of the code is:
B2 = 0;
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:
#include <hls_math.h>
void test_sky130_fd_sc_ms__a32o(bool A1, bool A2, bool A3, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool... |
The wrong part of the code is:
B2 = 0;
The high-level-synthesis bug type of the code is: 'BUF'
The right code snippet is:
B2 = 1; | 'BUF' |
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 test_sky130_fd_sc_ms__a32o(bool A1, bool A2, bool A3, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB, bool &X) {
// Test case 1: all inputs... |
The wrong part of the code is:
#pragma HLS array_partition variable=A1 block factor=3
The right code snippet is:
#pragma HLS array_partition variable=A1 cyclic factor=3 | 'APT' |
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 test_sky130_fd_sc_ms__a32o(bool A1, bool A2, bool A3, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB, bool &X) {
// Test case 1: all inputs are ... |
The right code snippet is:
#pragma HLS array_partition variable=A1 cyclic factor=3 | '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:
#include <hls_math.h>
void test_sky130_fd_sc_ms__a32o(bool A1, bool A2, bool A3, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB, bool &X) {
// Test case 1:... |
The wrong part of the code is:
#pragma HLS array_partition variable=A1 block factor=3
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:
#include <hls_math.h>
void test_sky130_fd_sc_ms__a32o(bool A1, bool A2, bool A3, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool... |
The wrong part of the code is:
#pragma HLS array_partition variable=A1 block factor=3
The high-level-synthesis bug type of the code is: 'APT'
The right code snippet is:
#pragma HLS array_partition variable=A1 cyclic factor=3 | 'APT' |
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 test_sky130_fd_sc_ms__a32o(bool A1, bool A2, bool A3, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB, bool &X) {
// Test case 1: all inputs... |
The wrong part of the code is:
#pragma HLS array_partition variable=A1 cyclic factor=3 dim=1
The right code snippet is:
#pragma HLS array_partition variable=A1 cyclic factor=3 dim=2 | 'DID' |
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 test_sky130_fd_sc_ms__a32o(bool A1, bool A2, bool A3, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB, bool &X) {
// Test case 1: all inputs are ... |
The right code snippet is:
#pragma HLS array_partition variable=A1 cyclic factor=3 dim=2 | '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:
#include <hls_math.h>
void test_sky130_fd_sc_ms__a32o(bool A1, bool A2, bool A3, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB, bool &X) {
// Test case 1:... |
The wrong part of the code is:
#pragma HLS array_partition variable=A1 cyclic factor=3 dim=1
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:
#include <hls_math.h>
void test_sky130_fd_sc_ms__a32o(bool A1, bool A2, bool A3, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool... |
The wrong part of the code is:
#pragma HLS array_partition variable=A1 cyclic factor=3 dim=1
The high-level-synthesis bug type of the code is: 'DID'
The right code snippet is:
#pragma HLS array_partition variable=A1 cyclic factor=3 dim=2 | 'DID' |
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 test_sky130_fd_sc_ms__a32o(bool A1, bool A2, bool A3, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB, bool &X) {
// Test case 1: all inputs... |
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:
#include <hls_math.h>
void test_sky130_fd_sc_ms__a32o(bool A1, bool A2, bool A3, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB, bool &X) {
// Test case 1: all inputs are ... |
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:
#include <hls_math.h>
void test_sky130_fd_sc_ms__a32o(bool A1, bool A2, bool A3, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB, bool &X) {
// Test case 1:... |
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:
#include <hls_math.h>
void test_sky130_fd_sc_ms__a32o(bool A1, bool A2, bool A3, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool... |
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' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.