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=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
const int n = 8;
const int m = 1;
const int w = 8;
const char* t = ... |
The wrong part of the code is:
#pragma HLS DATAFLOW
The right code snippet is:
N/A (code snippet is already correct) | 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=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
const int n = 8;
const int m = 1;
const int w = 8;
const char* t = "mask... |
The right code snippet is:
N/A (code snippet is already correct) | 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=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
const int n = 8;
const int m = 1;
const int w = 8;
const... |
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:
#pragma HLS INTERFACE s_axilite port=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
const int n = 8;
co... |
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:
N/A (code snippet is already correct) | 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=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
const int n = 8;
const int m = 1;
const int w = 8;
const char* t = ... |
The wrong part of the code is:
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=addr bundle=CTRL_BUS
The right code snippet is:
N/A (code snippet is already correct) | 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=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
const int n = 8;
const int m = 1;
const int w = 8;
const char* t = "mask... |
The right code snippet is:
N/A (code snippet is already correct) | 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=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
const int n = 8;
const int m = 1;
const int w = 8;
const... |
The wrong part of the code is:
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=addr bundle=CTRL_BUS
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=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
const int n = 8;
co... |
The wrong part of the code is:
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=addr bundle=CTRL_BUS
The high-level-synthesis bug type of the code is: IDAP
The right code snippet is:
N/A (code snippet is already correct) | 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=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
const int n = 8;
const int m = 1;
const int w = 8;
const char* t = ... |
The wrong part of the code is:
unsigned char memory[1 << n] = {0};
The right code snippet is:
unsigned char memory[1 << n] = {0x00, 0x01, 0x02, /*...*/, 0xFF}; | 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=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
const int n = 8;
const int m = 1;
const int w = 8;
const char* t = "mask... |
The right code snippet is:
unsigned char memory[1 << n] = {0x00, 0x01, 0x02, /*...*/, 0xFF}; | 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=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
const int n = 8;
const int m = 1;
const int w = 8;
const... |
The wrong part of the code is:
unsigned char memory[1 << n] = {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=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
const int n = 8;
co... |
The wrong part of the code is:
unsigned char memory[1 << n] = {0};
The high-level-synthesis bug type of the code is: ZERO
The right code snippet is:
unsigned char memory[1 << n] = {0x00, 0x01, 0x02, /*...*/, 0xFF}; | 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=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
const int n = 8;
const int m = 1;
const int w = 8;
const char* t = ... |
The wrong part of the code is:
short memory[1 << n] = {0x00, 0x01, 0x02, /*...*/, 0xFF};
The right code snippet is:
unsigned char memory[1 << n] = {0x00, 0x01, 0x02, /*...*/, 0xFF}; | USE |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE s_axilite port=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
const int n = 8;
const int m = 1;
const int w = 8;
const char* t = "mask... |
The right code snippet is:
unsigned char memory[1 << n] = {0x00, 0x01, 0x02, /*...*/, 0xFF}; | USE |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE s_axilite port=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
const int n = 8;
const int m = 1;
const int w = 8;
const... |
The wrong part of the code is:
short memory[1 << n] = {0x00, 0x01, 0x02, /*...*/, 0xFF};
The high-level-synthesis bug type of the code is: USE | USE |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
const int n = 8;
co... |
The wrong part of the code is:
short memory[1 << n] = {0x00, 0x01, 0x02, /*...*/, 0xFF};
The high-level-synthesis bug type of the code is: USE
The right code snippet is:
unsigned char memory[1 << n] = {0x00, 0x01, 0x02, /*...*/, 0xFF}; | USE |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
const int n = 8;
const int m = 1;
const int w = 8;
const char* t = ... |
The wrong part of the code is:
unsigned char a = 0x01;
a = a << 10;
The right code snippet is:
N/A (code snippet is already correct) | 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=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
const int n = 8;
const int m = 1;
const int w = 8;
const char* t = "mask... |
The right code snippet is:
N/A (code snippet is already correct) | 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=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
const int n = 8;
const int m = 1;
const int w = 8;
const... |
The wrong part of the code is:
unsigned char a = 0x01;
a = a << 10;
The high-level-synthesis bug type of the code is: SHFT | SHFT |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
const int n = 8;
co... |
The wrong part of the code is:
unsigned char a = 0x01;
a = a << 10;
The high-level-synthesis bug type of the code is: SHFT
The right code snippet is:
N/A (code snippet is already correct) | 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=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
const int n = 8;
const int m = 1;
const int w = 8;
const char* t = ... |
The wrong part of the code is:
unsigned char buffer[1 << n];
memcpy(buffer, memory + (1 << n) / 2, (1 << n) / 2);
The right code snippet is:
N/A (code snippet is already correct) | 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=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
const int n = 8;
const int m = 1;
const int w = 8;
const char* t = "mask... |
The right code snippet is:
N/A (code snippet is already correct) | 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=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
const int n = 8;
const int m = 1;
const int w = 8;
const... |
The wrong part of the code is:
unsigned char buffer[1 << n];
memcpy(buffer, memory + (1 << n) / 2, (1 << n) / 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:
#pragma HLS INTERFACE s_axilite port=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
const int n = 8;
co... |
The wrong part of the code is:
unsigned char buffer[1 << n];
memcpy(buffer, memory + (1 << n) / 2, (1 << n) / 2);
The high-level-synthesis bug type of the code is: BUF
The right code snippet is:
N/A (code snippet is already correct) | 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=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
const int n = 8;
const int m = 1;
const int w = 8;
const char* t = ... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=memory cyclic factor=0
The right code snippet is:
N/A (code snippet is already correct) | 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=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
const int n = 8;
const int m = 1;
const int w = 8;
const char* t = "mask... |
The right code snippet is:
N/A (code snippet is already correct) | 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=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
const int n = 8;
const int m = 1;
const int w = 8;
const... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=memory cyclic factor=0
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=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
const int n = 8;
co... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=memory cyclic factor=0
The high-level-synthesis bug type of the code is: APT
The right code snippet is:
N/A (code snippet is already correct) | 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=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
const int n = 8;
const int m = 1;
const int w = 8;
const char* t = ... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=memory cyclic factor=3 dim=1
The right code snippet is:
N/A (code snippet is already correct) | 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=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
const int n = 8;
const int m = 1;
const int w = 8;
const char* t = "mask... |
The right code snippet is:
N/A (code snippet is already correct) | 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=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
const int n = 8;
const int m = 1;
const int w = 8;
const... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=memory 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 s_axilite port=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
const int n = 8;
co... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=memory cyclic factor=3 dim=1
The high-level-synthesis bug type of the code is: FND
The right code snippet is:
N/A (code snippet is already correct) | 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=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
const int n = 8;
const int m = 1;
const int w = 8;
const char* t = ... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=memory cyclic factor=3 dim=2
The right code snippet is:
N/A (code snippet is already correct) | 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=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
const int n = 8;
const int m = 1;
const int w = 8;
const char* t = "mask... |
The right code snippet is:
N/A (code snippet is already correct) | 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=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
const int n = 8;
const int m = 1;
const int w = 8;
const... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=memory cyclic factor=3 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 s_axilite port=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
const int n = 8;
co... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=memory cyclic factor=3 dim=2
The high-level-synthesis bug type of the code is: DID
The right code snippet is:
N/A (code snippet is already correct) | 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=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
const int n = 8;
const int m = 1;
const int w = 8;
const char* t = ... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi port=memory depth=256 offset=direct
The right code snippet is:
N/A (code snippet is already correct) | 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=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
const int n = 8;
const int m = 1;
const int w = 8;
const char* t = "mask... |
The right code snippet is:
N/A (code snippet is already correct) | 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=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
const int n = 8;
const int m = 1;
const int w = 8;
const... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi port=memory depth=256 offset=direct
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=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
const int n = 8;
co... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi port=memory depth=256 offset=direct
The high-level-synthesis bug type of the code is: RAMB
The right code snippet is:
N/A (code snippet is already correct) | 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=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
const int n = 8;
const int m = 1;
const int w = 8;
const char* t = ... |
The wrong part of the code is:
#pragma HLS INTERFACE axis port=memory
The right code snippet is:
N/A (code snippet is already correct) | 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=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
const int n = 8;
const int m = 1;
const int w = 8;
const char* t = "mask... |
The right code snippet is:
N/A (code snippet is already correct) | 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=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
const int n = 8;
const int m = 1;
const int w = 8;
const... |
The wrong part of the code is:
#pragma HLS INTERFACE axis port=memory
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=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
const int n = 8;
co... |
The wrong part of the code is:
#pragma HLS INTERFACE axis port=memory
The high-level-synthesis bug type of the code is: SMA
The right code snippet is:
N/A (code snippet is already correct) | 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=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
const int n = 8;
const int m = 1;
const int w = 8;
const char* t = ... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_none port=memory
The right code snippet is:
N/A (code snippet is already correct) | 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=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
const int n = 8;
const int m = 1;
const int w = 8;
const char* t = "mask... |
The right code snippet is:
N/A (code snippet is already correct) | 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=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
const int n = 8;
const int m = 1;
const int w = 8;
const... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_none port=memory
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=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
const int n = 8;
co... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_none port=memory
The high-level-synthesis bug type of the code is: AMS
The right code snippet is:
N/A (code snippet is already correct) | 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=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
const int n = 8;
const int m = 1;
const int w = 8;
const char* t = ... |
The wrong part of the code is:
#pragma HLS PIPELINE II=2
The right code snippet is:
N/A (code snippet is already correct) | 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=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
const int n = 8;
const int m = 1;
const int w = 8;
const char* t = "mask... |
The right code snippet is:
N/A (code snippet is already correct) | 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=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
const int n = 8;
const int m = 1;
const int w = 8;
const... |
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 s_axilite port=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
const int n = 8;
co... |
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:
N/A (code snippet is already correct) | 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=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
const int n = 8;
const int m = 1;
const int w = 8;
const char* t = ... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=memory cyclic dim=3
The right code snippet is:
N/A (code snippet is already correct) | 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=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
const int n = 8;
const int m = 1;
const int w = 8;
const char* t = "mask... |
The right code snippet is:
N/A (code snippet is already correct) | 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=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
const int n = 8;
const int m = 1;
const int w = 8;
const... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=memory cyclic dim=3
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=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=data bundle=CTRL_BUS
const int n = 8;
co... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=memory cyclic dim=3
The high-level-synthesis bug type of the code is: DID
The right code snippet is:
N/A (code snippet is already correct) | 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=data_in bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=seg_out bundle=CTRL_BUS
#pragma HLS INTERFACE ap_ctrl_none port=return
reg [3:0] stag... |
The wrong part of the code is:
case 4'b1010: seg_out = 7'b1111011; // 10
The right code snippet is:
case 4'b1001: seg_out = 7'b1111011; // 9 | 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 s_axilite port=data_in bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=seg_out bundle=CTRL_BUS
#pragma HLS INTERFACE ap_ctrl_none port=return
reg [3:0] stage1_ou... |
The right code snippet is:
case 4'b1001: seg_out = 7'b1111011; // 9 | 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 s_axilite port=data_in bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=seg_out bundle=CTRL_BUS
#pragma HLS INTERFACE ap_ctrl_none port=return
reg... |
The wrong part of the code is:
case 4'b1010: seg_out = 7'b1111011; // 10
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 s_axilite port=data_in bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=seg_out bundle=CTRL_BUS
#pragma HLS IN... |
The wrong part of the code is:
case 4'b1010: seg_out = 7'b1111011; // 10
The high-level-synthesis bug type of the code is: OOB
The right code snippet is:
case 4'b1001: seg_out = 7'b1111011; // 9 | 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 s_axilite port=data_in bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=seg_out bundle=CTRL_BUS
#pragma HLS INTERFACE ap_ctrl_none port=return
reg [3:0] stag... |
The wrong part of the code is:
reg [3:0] stage1_out = 4'bxxxx;
The right code snippet is:
reg [3:0] stage1_out; | 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=data_in bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=seg_out bundle=CTRL_BUS
#pragma HLS INTERFACE ap_ctrl_none port=return
reg [3:0] stage1_ou... |
The right code snippet is:
reg [3:0] stage1_out; | 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=data_in bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=seg_out bundle=CTRL_BUS
#pragma HLS INTERFACE ap_ctrl_none port=return
reg... |
The wrong part of the code is:
reg [3:0] stage1_out = 4'bxxxx;
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=data_in bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=seg_out bundle=CTRL_BUS
#pragma HLS IN... |
The wrong part of the code is:
reg [3:0] stage1_out = 4'bxxxx;
The high-level-synthesis bug type of the code is: INIT
The right code snippet is:
reg [3:0] stage1_out; | 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=data_in bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=seg_out bundle=CTRL_BUS
#pragma HLS INTERFACE ap_ctrl_none port=return
reg [3:0] stag... |
The wrong part of the code is:
default: while(1) {} // infinite loop
The right code snippet is:
default: seg_out = 7'b0000000; // invalid input | 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=data_in bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=seg_out bundle=CTRL_BUS
#pragma HLS INTERFACE ap_ctrl_none port=return
reg [3:0] stage1_ou... |
The right code snippet is:
default: seg_out = 7'b0000000; // invalid input | 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=data_in bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=seg_out bundle=CTRL_BUS
#pragma HLS INTERFACE ap_ctrl_none port=return
reg... |
The wrong part of the code is:
default: while(1) {} // infinite loop
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 s_axilite port=data_in bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=seg_out bundle=CTRL_BUS
#pragma HLS IN... |
The wrong part of the code is:
default: while(1) {} // infinite loop
The high-level-synthesis bug type of the code is: INF
The right code snippet is:
default: seg_out = 7'b0000000; // invalid input | 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=data_in bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=seg_out bundle=CTRL_BUS
#pragma HLS INTERFACE ap_ctrl_none port=return
reg [3:0] stag... |
The wrong part of the code is:
stage2_out = stage1_out;
stage2_out = stage1_out;
The right code snippet is:
stage2_out = stage1_out; | 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=data_in bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=seg_out bundle=CTRL_BUS
#pragma HLS INTERFACE ap_ctrl_none port=return
reg [3:0] stage1_ou... |
The right code snippet is:
stage2_out = stage1_out; | 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=data_in bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=seg_out bundle=CTRL_BUS
#pragma HLS INTERFACE ap_ctrl_none port=return
reg... |
The wrong part of the code is:
stage2_out = stage1_out;
stage2_out = stage1_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:
#pragma HLS INTERFACE s_axilite port=data_in bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=seg_out bundle=CTRL_BUS
#pragma HLS IN... |
The wrong part of the code is:
stage2_out = stage1_out;
stage2_out = stage1_out;
The high-level-synthesis bug type of the code is: MLU
The right code snippet is:
stage2_out = stage1_out; | 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=data_in bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=seg_out bundle=CTRL_BUS
#pragma HLS INTERFACE ap_ctrl_none port=return
reg [3:0] stag... |
The wrong part of the code is:
stage1_out = data_in_2;
The right code snippet is:
stage1_out = data_in; | 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=data_in bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=seg_out bundle=CTRL_BUS
#pragma HLS INTERFACE ap_ctrl_none port=return
reg [3:0] stage1_ou... |
The right code snippet is:
stage1_out = data_in; | 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=data_in bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=seg_out bundle=CTRL_BUS
#pragma HLS INTERFACE ap_ctrl_none port=return
reg... |
The wrong part of the code is:
stage1_out = data_in_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:
#pragma HLS INTERFACE s_axilite port=data_in bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=seg_out bundle=CTRL_BUS
#pragma HLS IN... |
The wrong part of the code is:
stage1_out = data_in_2;
The high-level-synthesis bug type of the code is: BUF
The right code snippet is:
stage1_out = data_in; | 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=data_in bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=seg_out bundle=CTRL_BUS
#pragma HLS INTERFACE ap_ctrl_none port=return
reg [3:0] stag... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=stage1_out block factor=2 dim=1
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=stage1_out 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 s_axilite port=data_in bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=seg_out bundle=CTRL_BUS
#pragma HLS INTERFACE ap_ctrl_none port=return
reg [3:0] stage1_ou... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=stage1_out 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 s_axilite port=data_in bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=seg_out bundle=CTRL_BUS
#pragma HLS INTERFACE ap_ctrl_none port=return
reg... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=stage1_out 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 s_axilite port=data_in bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=seg_out bundle=CTRL_BUS
#pragma HLS IN... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=stage1_out 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=stage1_out 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 s_axilite port=data_in bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=seg_out bundle=CTRL_BUS
#pragma HLS INTERFACE ap_ctrl_none port=return
reg [3:0] stag... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=stage1_out cyclic factor=3 dim=1
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=stage1_out 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 s_axilite port=data_in bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=seg_out bundle=CTRL_BUS
#pragma HLS INTERFACE ap_ctrl_none port=return
reg [3:0] stage1_ou... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=stage1_out 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 s_axilite port=data_in bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=seg_out bundle=CTRL_BUS
#pragma HLS INTERFACE ap_ctrl_none port=return
reg... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=stage1_out 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 s_axilite port=data_in bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=seg_out bundle=CTRL_BUS
#pragma HLS IN... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=stage1_out 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=stage1_out 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 s_axilite port=data_in bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=seg_out bundle=CTRL_BUS
#pragma HLS INTERFACE ap_ctrl_none port=return
reg [3:0] stag... |
The wrong part of the code is:
#pragma HLS DATAFLOW wait=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 s_axilite port=data_in bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=seg_out bundle=CTRL_BUS
#pragma HLS INTERFACE ap_ctrl_none port=return
reg [3:0] stage1_ou... |
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 s_axilite port=data_in bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=seg_out bundle=CTRL_BUS
#pragma HLS INTERFACE ap_ctrl_none port=return
reg... |
The wrong part of the code is:
#pragma HLS DATAFLOW wait=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 s_axilite port=data_in bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=seg_out bundle=CTRL_BUS
#pragma HLS IN... |
The wrong part of the code is:
#pragma HLS DATAFLOW wait=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 m_axilite port=data_in bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=seg_out bundle=CTRL_BUS
#pragma HLS INTERFACE ap_ctrl_none port=return
reg [3:0] stag... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axilite port=data_in bundle=CTRL_BUS
The right code snippet is:
#pragma HLS INTERFACE s_axilite port=data_in bundle=CTRL_BUS | 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 m_axilite port=data_in bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=seg_out bundle=CTRL_BUS
#pragma HLS INTERFACE ap_ctrl_none port=return
reg [3:0] stage1_ou... |
The right code snippet is:
#pragma HLS INTERFACE s_axilite port=data_in bundle=CTRL_BUS | 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 m_axilite port=data_in bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=seg_out bundle=CTRL_BUS
#pragma HLS INTERFACE ap_ctrl_none port=return
reg... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axilite port=data_in bundle=CTRL_BUS
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 m_axilite port=data_in bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=seg_out bundle=CTRL_BUS
#pragma HLS IN... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axilite port=data_in bundle=CTRL_BUS
The high-level-synthesis bug type of the code is: IDAP
The right code snippet is:
#pragma HLS INTERFACE s_axilite port=data_in bundle=CTRL_BUS | 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 m_axi port=data_in bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=seg_out bundle=CTRL_BUS
#pragma HLS INTERFACE ap_ctrl_none port=return
reg [3:0] stage1_o... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi port=data_in bundle=CTRL_BUS
The right code snippet is:
#pragma HLS INTERFACE s_axilite port=data_in bundle=CTRL_BUS | 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 m_axi port=data_in bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=seg_out bundle=CTRL_BUS
#pragma HLS INTERFACE ap_ctrl_none port=return
reg [3:0] stage1_out;
r... |
The right code snippet is:
#pragma HLS INTERFACE s_axilite port=data_in bundle=CTRL_BUS | 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 m_axi port=data_in bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=seg_out bundle=CTRL_BUS
#pragma HLS INTERFACE ap_ctrl_none port=return
reg [3:... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi port=data_in bundle=CTRL_BUS
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 m_axi port=data_in bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=seg_out bundle=CTRL_BUS
#pragma HLS INTERF... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi port=data_in bundle=CTRL_BUS
The high-level-synthesis bug type of the code is: RAMB
The right code snippet is:
#pragma HLS INTERFACE s_axilite port=data_in bundle=CTRL_BUS | 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=data_in bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=seg_out bundle=CTRL_BUS
#pragma HLS INTERFACE ap_ctrl_none port=return
reg [3:0] stage1_ou... |
The wrong part of the code is:
#pragma HLS INTERFACE bram port=data_in bundle=CTRL_BUS
The right code snippet is:
#pragma HLS INTERFACE s_axilite port=data_in bundle=CTRL_BUS | 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=data_in bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=seg_out bundle=CTRL_BUS
#pragma HLS INTERFACE ap_ctrl_none port=return
reg [3:0] stage1_out;
re... |
The right code snippet is:
#pragma HLS INTERFACE s_axilite port=data_in bundle=CTRL_BUS | 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=data_in bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=seg_out bundle=CTRL_BUS
#pragma HLS INTERFACE ap_ctrl_none port=return
reg [3:0... |
The wrong part of the code is:
#pragma HLS INTERFACE bram port=data_in bundle=CTRL_BUS
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=data_in bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=seg_out bundle=CTRL_BUS
#pragma HLS INTERFA... |
The wrong part of the code is:
#pragma HLS INTERFACE bram port=data_in bundle=CTRL_BUS
The high-level-synthesis bug type of the code is: SMA
The right code snippet is:
#pragma HLS INTERFACE s_axilite port=data_in bundle=CTRL_BUS | SMA |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.