instruction
stringlengths
139
357k
response
stringlengths
36
4.54k
buggy_type
stringclasses
745 values
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=rst_n #pragma HLS INTERFACE ap_ctrl_none port=return typedef unsigned char UINT8; typedef unsigned char UINT4...
The wrong part of the code is: static UINT4 mem[8] = {0}; The right code snippet is: static UINT4 mem[8];
'ZERO'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=rst_n #pragma HLS INTERFACE ap_ctrl_none port=return typedef unsigned char UINT8; typedef unsigned char UINT4; typ...
The right code snippet is: static UINT4 mem[8];
'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=rst_n #pragma HLS INTERFACE ap_ctrl_none port=return typedef unsigned char UINT8; typedef unsigned...
The wrong part of the code is: static UINT4 mem[8] = {0}; The high-level-synthesis bug type of the code is: 'ZERO'
'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=rst_n #pragma HLS INTERFACE ap_ctrl_none port=return typedef ...
The wrong part of the code is: static UINT4 mem[8] = {0}; The high-level-synthesis bug type of the code is: 'ZERO' The right code snippet is: static UINT4 mem[8];
'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=rst_n #pragma HLS INTERFACE ap_ctrl_none port=return typedef unsigned char UINT8; typedef unsigned char UINT4...
The wrong part of the code is: mem[write_addr+4] = write_data; The right code snippet is: mem[write_addr] = write_data;
'BUF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=rst_n #pragma HLS INTERFACE ap_ctrl_none port=return typedef unsigned char UINT8; typedef unsigned char UINT4; typ...
The right code snippet is: mem[write_addr] = write_data;
'BUF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=rst_n #pragma HLS INTERFACE ap_ctrl_none port=return typedef unsigned char UINT8; typedef unsigned...
The wrong part of the code is: mem[write_addr+4] = write_data; The high-level-synthesis bug type of the code is: 'BUF'
'BUF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=rst_n #pragma HLS INTERFACE ap_ctrl_none port=return typedef ...
The wrong part of the code is: mem[write_addr+4] = write_data; The high-level-synthesis bug type of the code is: 'BUF' The right code snippet is: mem[write_addr] = write_data;
'BUF'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=rst_n #pragma HLS INTERFACE ap_ctrl_none port=return typedef unsigned char UINT8; typedef unsigned char UINT4...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=mem cyclic factor=2 dim=1 The right code snippet is: #pragma HLS ARRAY_PARTITION variable=mem complete dim=1
'APT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=rst_n #pragma HLS INTERFACE ap_ctrl_none port=return typedef unsigned char UINT8; typedef unsigned char UINT4; typ...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=mem complete dim=1
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=rst_n #pragma HLS INTERFACE ap_ctrl_none port=return typedef unsigned char UINT8; typedef unsigned...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=mem cyclic factor=2 dim=1 The high-level-synthesis bug type of the code is: 'APT'
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=rst_n #pragma HLS INTERFACE ap_ctrl_none port=return typedef ...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=mem cyclic 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=mem complete dim=1
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=rst_n #pragma HLS INTERFACE ap_ctrl_none port=return typedef unsigned char UINT8; typedef unsigned char UINT4...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=mem cyclic factor=3 dim=1 The right code snippet is: #pragma HLS ARRAY_PARTITION variable=mem complete dim=1
'FND'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=rst_n #pragma HLS INTERFACE ap_ctrl_none port=return typedef unsigned char UINT8; typedef unsigned char UINT4; typ...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=mem complete dim=1
'FND'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=rst_n #pragma HLS INTERFACE ap_ctrl_none port=return typedef unsigned char UINT8; typedef unsigned...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=mem cyclic factor=3 dim=1 The high-level-synthesis bug type of the code is: 'FND'
'FND'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=rst_n #pragma HLS INTERFACE ap_ctrl_none port=return typedef ...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=mem 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=mem complete dim=1
'FND'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=rst_n #pragma HLS INTERFACE ap_ctrl_none port=return typedef unsigned char UINT8; typedef unsigned char UINT4...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=mem cyclic factor=4 dim=1 The right code snippet is: #pragma HLS ARRAY_PARTITION variable=mem complete dim=1
'DID'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=rst_n #pragma HLS INTERFACE ap_ctrl_none port=return typedef unsigned char UINT8; typedef unsigned char UINT4; typ...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=mem complete dim=1
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=rst_n #pragma HLS INTERFACE ap_ctrl_none port=return typedef unsigned char UINT8; typedef unsigned...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=mem cyclic factor=4 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: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=rst_n #pragma HLS INTERFACE ap_ctrl_none port=return typedef ...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=mem cyclic factor=4 dim=1 The high-level-synthesis bug type of the code is: 'DID' The right code snippet is: #pragma HLS ARRAY_PARTITION variable=mem complete dim=1
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=rst_n #pragma HLS INTERFACE ap_ctrl_none port=return typedef unsigned char UINT8; typedef unsigned char UINT4...
The wrong part of the code is: #pragma HLS dataflow void dual_port_RAM(UINT1 clk, UINT1 rst_n, UINT1 write_en, UINT8 write_addr, UINT4 write_data, UINT1 read_en, UINT8 read_addr, UINT4 &read_data) { The right code snippet is: void dual_port_RAM(UINT1 clk, UINT1 rst_n, UINT1 write_en, UINT8 write_addr, ...
'DFP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=rst_n #pragma HLS INTERFACE ap_ctrl_none port=return typedef unsigned char UINT8; typedef unsigned char UINT4; typ...
The right code snippet is: void dual_port_RAM(UINT1 clk, UINT1 rst_n, UINT1 write_en, UINT8 write_addr, UINT4 write_data, UINT1 read_en, UINT8 read_addr, UINT4 &read_data) {
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=rst_n #pragma HLS INTERFACE ap_ctrl_none port=return typedef unsigned char UINT8; typedef unsigned...
The wrong part of the code is: #pragma HLS dataflow void dual_port_RAM(UINT1 clk, UINT1 rst_n, UINT1 write_en, UINT8 write_addr, UINT4 write_data, UINT1 read_en, UINT8 read_addr, UINT4 &read_data) { The high-level-synthesis bug type of the code is: 'DFP'
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=rst_n #pragma HLS INTERFACE ap_ctrl_none port=return typedef ...
The wrong part of the code is: #pragma HLS dataflow void dual_port_RAM(UINT1 clk, UINT1 rst_n, UINT1 write_en, UINT8 write_addr, UINT4 write_data, UINT1 read_en, UINT8 read_addr, UINT4 &read_data) { The high-level-synthesis bug type of the code is: 'DFP' The right code snippet is: void dual_port_RA...
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=rst_n #pragma HLS INTERFACE ap_ctrl_none port=return typedef unsigned char UINT8; typedef unsigned char UINT4...
The wrong part of the code is: #pragma HLS interface ap_none port=read_data void dual_port_RAM(UINT1 clk, UINT1 rst_n, UINT1 write_en, UINT8 write_addr, UINT4 write_data, UINT1 read_en, UINT8 read_addr, UINT4 read_data) { The right code snippet is: void dual_port_RAM(UINT1 clk, UINT1 rst_n, UINT1 write...
'IDAP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=rst_n #pragma HLS INTERFACE ap_ctrl_none port=return typedef unsigned char UINT8; typedef unsigned char UINT4; typ...
The right code snippet is: void dual_port_RAM(UINT1 clk, UINT1 rst_n, UINT1 write_en, UINT8 write_addr, UINT4 write_data, UINT1 read_en, UINT8 read_addr, UINT4 &read_data) {
'IDAP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=rst_n #pragma HLS INTERFACE ap_ctrl_none port=return typedef unsigned char UINT8; typedef unsigned...
The wrong part of the code is: #pragma HLS interface ap_none port=read_data void dual_port_RAM(UINT1 clk, UINT1 rst_n, UINT1 write_en, UINT8 write_addr, UINT4 write_data, UINT1 read_en, UINT8 read_addr, UINT4 read_data) { The high-level-synthesis bug type of the code is: 'IDAP'
'IDAP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=rst_n #pragma HLS INTERFACE ap_ctrl_none port=return typedef ...
The wrong part of the code is: #pragma HLS interface ap_none port=read_data void dual_port_RAM(UINT1 clk, UINT1 rst_n, UINT1 write_en, UINT8 write_addr, UINT4 write_data, UINT1 read_en, UINT8 read_addr, UINT4 read_data) { The high-level-synthesis bug type of the code is: 'IDAP' The right code snippet i...
'IDAP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=rst_n #pragma HLS INTERFACE ap_ctrl_none port=return typedef unsigned char UINT8; typedef unsigned char UINT4...
The wrong part of the code is: #pragma HLS interface m_axi port=mem void dual_port_RAM(UINT1 clk, UINT1 rst_n, UINT1 write_en, UINT8 write_addr, UINT4 write_data, UINT1 read_en, UINT8 read_addr, UINT4 &read_data) { The right code snippet is: void dual_port_RAM(UINT1 clk, UINT1 rst_n, UINT1 write_en, UI...
'RAMB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=rst_n #pragma HLS INTERFACE ap_ctrl_none port=return typedef unsigned char UINT8; typedef unsigned char UINT4; typ...
The right code snippet is: void dual_port_RAM(UINT1 clk, UINT1 rst_n, UINT1 write_en, UINT8 write_addr, UINT4 write_data, UINT1 read_en, UINT8 read_addr, UINT4 &read_data) {
'RAMB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=rst_n #pragma HLS INTERFACE ap_ctrl_none port=return typedef unsigned char UINT8; typedef unsigned...
The wrong part of the code is: #pragma HLS interface m_axi port=mem void dual_port_RAM(UINT1 clk, UINT1 rst_n, UINT1 write_en, UINT8 write_addr, UINT4 write_data, UINT1 read_en, UINT8 read_addr, UINT4 &read_data) { The high-level-synthesis bug type of the code is: 'RAMB'
'RAMB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=rst_n #pragma HLS INTERFACE ap_ctrl_none port=return typedef ...
The wrong part of the code is: #pragma HLS interface m_axi port=mem void dual_port_RAM(UINT1 clk, UINT1 rst_n, UINT1 write_en, UINT8 write_addr, UINT4 write_data, UINT1 read_en, UINT8 read_addr, UINT4 &read_data) { The high-level-synthesis bug type of the code is: 'RAMB' The right code snippet is: ...
'RAMB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=rst_n #pragma HLS INTERFACE ap_ctrl_none port=return typedef unsigned char UINT8; typedef unsigned char UINT4...
The wrong part of the code is: #pragma HLS interface bram port=mem void dual_port_RAM(UINT1 clk, UINT1 rst_n, UINT1 write_en, UINT8 write_addr, UINT4 write_data, UINT1 read_en, UINT8 read_addr, UINT4 &read_data) { The right code snippet is: void dual_port_RAM(UINT1 clk, UINT1 rst_n, UINT1 write_en, UIN...
'SMA'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=rst_n #pragma HLS INTERFACE ap_ctrl_none port=return typedef unsigned char UINT8; typedef unsigned char UINT4; typ...
The right code snippet is: void dual_port_RAM(UINT1 clk, UINT1 rst_n, UINT1 write_en, UINT8 write_addr, UINT4 write_data, UINT1 read_en, UINT8 read_addr, UINT4 &read_data) {
'SMA'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=rst_n #pragma HLS INTERFACE ap_ctrl_none port=return typedef unsigned char UINT8; typedef unsigned...
The wrong part of the code is: #pragma HLS interface bram port=mem void dual_port_RAM(UINT1 clk, UINT1 rst_n, UINT1 write_en, UINT8 write_addr, UINT4 write_data, UINT1 read_en, UINT8 read_addr, UINT4 &read_data) { The high-level-synthesis bug type of the code is: 'SMA'
'SMA'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=rst_n #pragma HLS INTERFACE ap_ctrl_none port=return typedef ...
The wrong part of the code is: #pragma HLS interface bram port=mem void dual_port_RAM(UINT1 clk, UINT1 rst_n, UINT1 write_en, UINT8 write_addr, UINT4 write_data, UINT1 read_en, UINT8 read_addr, UINT4 &read_data) { The high-level-synthesis bug type of the code is: 'SMA' The right code snippet is: vo...
'SMA'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #pragma HLS INTERFACE ap_none port=A #pragma ...
The wrong part of the code is: S[5] = A[5] ^ B[5] ^ Cin; The right code snippet is: S[1] = A[1] ^ B[1] ^ c1;
'OOB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #pragma HLS INTERFACE ap_none port=A #pragma HLS I...
The right code snippet is: S[1] = A[1] ^ B[1] ^ c1;
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #pragma HLS INTERFACE ap_none port=A ...
The wrong part of the code is: S[5] = A[5] ^ B[5] ^ Cin; The high-level-synthesis bug type of the code is: 'OOB'
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #...
The wrong part of the code is: S[5] = A[5] ^ B[5] ^ Cin; The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: S[1] = A[1] ^ B[1] ^ c1;
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #pragma HLS INTERFACE ap_none port=A #pragma ...
The wrong part of the code is: ap_uint<1> c1, c2, c3, c4; The right code snippet is: ap_uint<1> c1, c2, c3;
'INIT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #pragma HLS INTERFACE ap_none port=A #pragma HLS I...
The right code snippet is: ap_uint<1> c1, c2, c3;
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #pragma HLS INTERFACE ap_none port=A ...
The wrong part of the code is: ap_uint<1> c1, c2, c3, c4; The high-level-synthesis bug type of the code is: 'INIT'
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #...
The wrong part of the code is: ap_uint<1> c1, c2, c3, c4; The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: ap_uint<1> c1, c2, c3;
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #pragma HLS INTERFACE ap_none port=A #pragma ...
The wrong part of the code is: S[2] = A[2] << B[2] ^ c1; The right code snippet is: S[2] = A[2] ^ B[2] ^ c1;
'SHFT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #pragma HLS INTERFACE ap_none port=A #pragma HLS I...
The right code snippet is: S[2] = A[2] ^ B[2] ^ c1;
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #pragma HLS INTERFACE ap_none port=A ...
The wrong part of the code is: S[2] = A[2] << B[2] ^ c1; The high-level-synthesis bug type of the code is: 'SHFT'
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #...
The wrong part of the code is: S[2] = A[2] << B[2] ^ c1; The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: S[2] = A[2] ^ B[2] ^ c1;
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #pragma HLS INTERFACE ap_none port=A #pragma ...
The wrong part of the code is: // Fourth bit S[3] = A[3] ^ B[3] ^ c1; c1 = A[3] & B[3]; c2 = A[3] & c1; c3 = B[3] & c1; Cout = c1 | c2 | c3; The right code snippet is: // Fourth bit S[3] = A[3] ^ B[3] ^ c1; c1 = A[3] & B[3]; c2 = A[3] & c1; c3 = B[3] & c1; Cout = c1 | c2 | c3 | Cout;
'INF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #pragma HLS INTERFACE ap_none port=A #pragma HLS I...
The right code snippet is: // Fourth bit S[3] = A[3] ^ B[3] ^ c1; c1 = A[3] & B[3]; c2 = A[3] & c1; c3 = B[3] & c1; Cout = c1 | c2 | c3 | Cout;
'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: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #pragma HLS INTERFACE ap_none port=A ...
The wrong part of the code is: // Fourth bit S[3] = A[3] ^ B[3] ^ c1; c1 = A[3] & B[3]; c2 = A[3] & c1; c3 = B[3] & c1; Cout = c1 | c2 | c3; 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: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #...
The wrong part of the code is: // Fourth bit S[3] = A[3] ^ B[3] ^ c1; c1 = A[3] & B[3]; c2 = A[3] & c1; c3 = B[3] & c1; Cout = c1 | c2 | c3; The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: // Fourth bit S[3] = A[3] ^ B[3] ^ c1; c1 = A[3] & B[3]; c2 = A[3] & c1; c3...
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #pragma HLS INTERFACE ap_none port=A #pragma ...
The wrong part of the code is: int c1, c2, c3; The right code snippet is: ap_uint<1> c1, c2, c3;
'USE'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #pragma HLS INTERFACE ap_none port=A #pragma HLS I...
The right code snippet is: ap_uint<1> c1, c2, c3;
'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: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #pragma HLS INTERFACE ap_none port=A ...
The wrong part of the code is: int c1, c2, c3; 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: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #...
The wrong part of the code is: int c1, c2, c3; The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: ap_uint<1> c1, c2, c3;
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #pragma HLS INTERFACE ap_none port=A #pragma ...
The wrong part of the code is: // Second bit S[1] = A[1] ^ B[1] ^ c1; c1 = A[1] & B[1]; c2 = A[1] & c1; c3 = B[1] & c1; c4 = c2 | c3; The right code snippet is: // Second bit S[1] = A[1] ^ B[1] ^ c1; c1 = A[1] & B[1]; c2 = A[1] & c1; c3 = B[1] & c1; c1 = c2 | c3;
'MLU'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #pragma HLS INTERFACE ap_none port=A #pragma HLS I...
The right code snippet is: // Second bit S[1] = A[1] ^ B[1] ^ c1; c1 = A[1] & B[1]; c2 = A[1] & c1; c3 = B[1] & c1; c1 = c2 | c3;
'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: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #pragma HLS INTERFACE ap_none port=A ...
The wrong part of the code is: // Second bit S[1] = A[1] ^ B[1] ^ c1; c1 = A[1] & B[1]; c2 = A[1] & c1; c3 = B[1] & c1; c4 = c2 | c3; 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: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #...
The wrong part of the code is: // Second bit S[1] = A[1] ^ B[1] ^ c1; c1 = A[1] & B[1]; c2 = A[1] & c1; c3 = B[1] & c1; c4 = c2 | c3; The high-level-synthesis bug type of the code is: 'MLU' The right code snippet is: // Second bit S[1] = A[1] ^ B[1] ^ c1; c1 = A[1] & B[1]; c2 = A[1] & c1; c3 = B[1]...
'MLU'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #pragma HLS INTERFACE ap_none port=A #pragma ...
The wrong part of the code is: ap_uint<1> c1 = 0, c2 = 0, c3 = 0; The right code snippet is: ap_uint<1> c1, c2, c3;
'ZERO'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #pragma HLS INTERFACE ap_none port=A #pragma HLS I...
The right code snippet is: ap_uint<1> c1, c2, c3;
'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: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #pragma HLS INTERFACE ap_none port=A ...
The wrong part of the code is: ap_uint<1> c1 = 0, c2 = 0, c3 = 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: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #...
The wrong part of the code is: ap_uint<1> c1 = 0, c2 = 0, c3 = 0; The high-level-synthesis bug type of the code is: 'ZERO' The right code snippet is: ap_uint<1> c1, c2, c3;
'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #pragma HLS INTERFACE ap_none port=A #pragma ...
The wrong part of the code is: // First bit S[0] = A[0] ^ B[0] ^ Cin; c1 = A[1] & B[1]; c2 = A[1] & Cin; c3 = B[1] & Cin; Cout = c1 | c2 | c3; The right code snippet is: // First bit S[0] = A[0] ^ B[0] ^ Cin; c1 = A[0] & B[0]; c2 = A[0] & Cin; c3 = B[0] & Cin; Cout = c1 | c2 | c3;
'BUF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #pragma HLS INTERFACE ap_none port=A #pragma HLS I...
The right code snippet is: // First bit S[0] = A[0] ^ B[0] ^ Cin; c1 = A[0] & B[0]; c2 = A[0] & Cin; c3 = B[0] & Cin; Cout = c1 | c2 | c3;
'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: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #pragma HLS INTERFACE ap_none port=A ...
The wrong part of the code is: // First bit S[0] = A[0] ^ B[0] ^ Cin; c1 = A[1] & B[1]; c2 = A[1] & Cin; c3 = B[1] & Cin; Cout = c1 | c2 | c3; 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: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #...
The wrong part of the code is: // First bit S[0] = A[0] ^ B[0] ^ Cin; c1 = A[1] & B[1]; c2 = A[1] & Cin; c3 = B[1] & Cin; Cout = c1 | c2 | c3; The high-level-synthesis bug type of the code is: 'BUF' The right code snippet is: // First bit S[0] = A[0] ^ B[0] ^ Cin; c1 = A[0] & B[0]; c2 = A[0] & Cin;...
'BUF'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #pragma HLS INTERFACE ap_none port=A #pragma ...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=S cyclic factor=2 dim=1 The right code snippet is: #pragma HLS INTERFACE ap_none port=S
'APT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #pragma HLS INTERFACE ap_none port=A #pragma HLS I...
The right code snippet is: #pragma HLS INTERFACE ap_none port=S
'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: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #pragma HLS INTERFACE ap_none port=A ...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=S cyclic 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: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=S cyclic factor=2 dim=1 The high-level-synthesis bug type of the code is: 'APT' The right code snippet is: #pragma HLS INTERFACE ap_none port=S
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #pragma HLS INTERFACE ap_none port=A #pragma ...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=S cyclic factor=3 dim=1 The right code snippet is: #pragma HLS ARRAY_PARTITION variable=S 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: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #pragma HLS INTERFACE ap_none port=A #pragma HLS I...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=S 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: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #pragma HLS INTERFACE ap_none port=A ...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=S 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: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=S 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=S 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: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #pragma HLS INTERFACE ap_none port=A #pragma ...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=S cyclic factor=2 dim=2 The right code snippet is: #pragma HLS ARRAY_PARTITION variable=S cyclic factor=2 dim=1
'DID'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #pragma HLS INTERFACE ap_none port=A #pragma HLS I...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=S cyclic factor=2 dim=1
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #pragma HLS INTERFACE ap_none port=A ...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=S cyclic factor=2 dim=2 The high-level-synthesis bug type of the code is: 'DID'
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=S cyclic factor=2 dim=2 The high-level-synthesis bug type of the code is: 'DID' The right code snippet is: #pragma HLS ARRAY_PARTITION variable=S cyclic factor=2 dim=1
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #pragma HLS INTERFACE ap_none port=A #pragma ...
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: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #pragma HLS INTERFACE ap_none port=A #pragma HLS I...
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: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #pragma HLS INTERFACE ap_none port=A ...
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: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #...
The wrong part of the code is: #pragma HLS dataflow region The high-level-synthesis bug type of the code is: 'DFP' The right code snippet is: #pragma HLS dataflow
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #pragma HLS INTERFACE ap_vld port=A #pragma H...
The wrong part of the code is: #pragma HLS INTERFACE ap_vld port=A The right code snippet is: #pragma HLS INTERFACE ap_none port=A
'IDAP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #pragma HLS INTERFACE ap_vld port=A #pragma HLS IN...
The right code snippet is: #pragma HLS INTERFACE ap_none port=A
'IDAP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #pragma HLS INTERFACE ap_vld port=A ...
The wrong part of the code is: #pragma HLS INTERFACE ap_vld port=A The high-level-synthesis bug type of the code is: 'IDAP'
'IDAP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #...
The wrong part of the code is: #pragma HLS INTERFACE ap_vld port=A The high-level-synthesis bug type of the code is: 'IDAP' The right code snippet is: #pragma HLS INTERFACE ap_none port=A
'IDAP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #pragma HLS INTERFACE m_axi port=A #pragma HL...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=A The right code snippet is: #pragma HLS INTERFACE ap_none port=A
'RAMB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #pragma HLS INTERFACE m_axi port=A #pragma HLS INT...
The right code snippet is: #pragma HLS INTERFACE ap_none port=A
'RAMB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #pragma HLS INTERFACE m_axi port=A ...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=A 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: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=A The high-level-synthesis bug type of the code is: 'RAMB' The right code snippet is: #pragma HLS INTERFACE ap_none port=A
'RAMB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #pragma HLS INTERFACE bram port=A #pragma HLS...
The wrong part of the code is: #pragma HLS INTERFACE bram port=A The right code snippet is: #pragma HLS INTERFACE ap_none port=A
'SMA'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #pragma HLS INTERFACE bram port=A #pragma HLS INTE...
The right code snippet is: #pragma HLS INTERFACE ap_none port=A
'SMA'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #pragma HLS INTERFACE bram port=A ...
The wrong part of the code is: #pragma HLS INTERFACE bram port=A The high-level-synthesis bug type of the code is: 'SMA'
'SMA'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` void four_bit_adder ( const ap_uint<4> A, const ap_uint<4> B, const bool Cin, ap_uint<4>& S, bool& Cout ) { #...
The wrong part of the code is: #pragma HLS INTERFACE bram port=A The high-level-synthesis bug type of the code is: 'SMA' The right code snippet is: #pragma HLS INTERFACE ap_none port=A
'SMA'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=douta #pragma HLS INTERFACE s_axilite port=doutb #pragma HLS INTERFACE s_axilite port=clka #pragma H...
The wrong part of the code is: addra_wire = addra + 16385; addrb_wire = addrb - 1; The right code snippet is: addra_wire = addra; addrb_wire = addrb;
'OOB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=douta #pragma HLS INTERFACE s_axilite port=doutb #pragma HLS INTERFACE s_axilite port=clka #pragma HLS IN...
The right code snippet is: addra_wire = addra; addrb_wire = addrb;
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=douta #pragma HLS INTERFACE s_axilite port=doutb #pragma HLS INTERFACE s_axilite port=clk...
The wrong part of the code is: addra_wire = addra + 16385; addrb_wire = addrb - 1; The high-level-synthesis bug type of the code is: 'OOB'
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=douta #pragma HLS INTERFACE s_axilite port=doutb #pr...
The wrong part of the code is: addra_wire = addra + 16385; addrb_wire = addrb - 1; The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: addra_wire = addra; addrb_wire = addrb;
'OOB'