cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
1,710 Views
Registered: ‎07-10-2018

UG871 example fail to run on 2018.2

Jump to solution

Hi, 

I was following the ug871 tutorial ch3 lab3 which is a c++ validation example.  But the example fails to pass the C Simulation process. I'm using 2018.2 and the error msg is below. I wonder why this happens.

Thanks,

Yifan

 

In file included from D:/software/vivado/Vivado/2018.2/include/floating_point_v7_0_bitacc_cmodel.h:143:0,
from D:/software/vivado/Vivado/2018.2/include/hls_fpo.h:166,
from D:/software/vivado/Vivado/2018.2/include/hls_half.h:58,
from D:/software/vivado/Vivado/2018.2/include/ap_int_sim.h:73,
from D:/software/vivado/Vivado/2018.2/include/ap_int.h:65,
from ../../../../hamming_window.h:77,
from ../../../../hamming_window_test.cpp:47:
D:/software/vivado/Vivado/2018.2/include/gmp.h:62:0: warning: "__GMP_LIBGMP_DLL" redefined
#define __GMP_LIBGMP_DLL 0

In file included from D:/software/vivado/Vivado/2018.2/include/hls_fpo.h:166:0,
from D:/software/vivado/Vivado/2018.2/include/hls_half.h:58,
from D:/software/vivado/Vivado/2018.2/include/ap_int_sim.h:73,
from D:/software/vivado/Vivado/2018.2/include/ap_int.h:65,
from ../../../../hamming_window.h:77,
from ../../../../hamming_window_test.cpp:47:
D:/software/vivado/Vivado/2018.2/include/floating_point_v7_0_bitacc_cmodel.h:135:0: note: this is the location of the previous definition
#define __GMP_LIBGMP_DLL 1

../../../../hamming_window_test.cpp: In function 'int main(int, char**)':
../../../../hamming_window_test.cpp:78:15: error: no match for 'operator<<' (operand types are 'std::ostream {aka std::basic_ostream<char>}' and 'std::ostream {aka std::basic_ostream<char>}')
cout <<
~~~~~^~
cout << "\n!!! ERROR at i =" << i << "- expected:" << sw_result[i] << "got:" << hw_result[i] << endl;
~~~~
../../../../hamming_window_test.cpp:78:15: note: candidate: operator<<(int, int) <built-in>
../../../../hamming_window_test.cpp:78:15: note: no known conversion for argument 2 from 'std::ostream {aka std::basic_ostream<char>}' to 'int'
In file included from D:/software/vivado/Vivado/2018.2/msys64/mingw64/include/c++/6.2.0/istream:39:0,
from D:/software/vivado/Vivado/2018.2/msys64/mingw64/include/c++/6.2.0/fstream:38,
from ../../../../hamming_window.h:49,
from ../../../../hamming_window_test.cpp:47:
D:/software/vivado/Vivado/2018.2/msys64/mingw64/include/c++/6.2.0/ostream:108:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__ostream_type& (*)(std::basic_ostream<_CharT, _Traits>::__ostream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
operator<<(__ostream_type& (*__pf)(__ostream_type&))
^~~~~~~~
D:/software/vivado/Vivado/2018.2/msys64/mingw64/include/c++/6.2.0/ostream:108:7: note: no known conversion for argument 1 from 'std::ostream {aka std::basic_ostream<char>}' to 'std::basic_ostream<char>::__ostream_type& (*)(std::basic_ostream<char>::__ostream_type&) {aka std::basic_ostream<char>& (*)(std::basic_ostream<char>&)}'
D:/software/vivado/Vivado/2018.2/msys64/mingw64/include/c++/6.2.0/ostream:117:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__ios_type& (*)(std::basic_ostream<_CharT, _Traits>::__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>; std::basic_ostream<_CharT, _Traits>::__ios_type = std::basic_ios<char>]
operator<<(__ios_type& (*__pf)(__ios_type&))
^~~~~~~~
D:/software/vivado/Vivado/2018.2/msys64/mingw64/include/c++/6.2.0/ostream:117:7: note: no known conversion for argument 1 from 'std::ostream {aka std::basic_ostream<char>}' to 'std::basic_ostream<char>::__ios_type& (*)(std::basic_ostream<char>::__ios_type&) {aka std::basic_ios<char>& (*)(std::basic_ios<char>&)}'
D:/software/vivado/Vivado/2018.2/msys64/mingw64/include/c++/6.2.0/ostream:127:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
operator<<(ios_base& (*__pf) (ios_base&))
^~~~~~~~
D:/software/vivado/Vivado/2018.2/msys64/mingw64/include/c++/6.2.0/ostream:127:7: note: no known conversion for argument 1 from 'std::ostream {aka std::basic_ostream<char>}' to 'std::ios_base& (*)(std::ios_base&)'
D:/software/vivado/Vivado/2018.2/msys64/mingw64/include/c++/6.2.0/ostream:166:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
operator<<(long __n)
^~~~~~~~
D:/software/vivado/Vivado/2018.2/msys64/mingw64/include/c++/6.2.0/ostream:166:7: note: no known conversion for argument 1 from 'std::ostream {aka std::basic_ostream<char>}' to 'long int'
D:/software/vivado/Vivado/2018.2/msys64/mingw64/include/c++/6.2.0/ostream:170:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
operator<<(unsigned long __n)
^~~~~~~~
D:/software/vivado/Vivado/2018.2/msys64/mingw64/include/c++/6.2.0/ostream:170:7: note: no known conversion for argument 1 from 'std::ostream {aka std::basic_ostream<char>}' to 'long unsigned int'
D:/software/vivado/Vivado/2018.2/msys64/mingw64/include/c++/6.2.0/ostream:174:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(bool) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
operator<<(bool __n)
^~~~~~~~
D:/software/vivado/Vivado/2018.2/msys64/mingw64/include/c++/6.2.0/ostream:174:7: note: no known conversion for argument 1 from 'std::ostream {aka std::basic_ostream<char>}' to 'bool'
In file included from D:/software/vivado/Vivado/2018.2/msys64/mingw64/include/c++/6.2.0/ostream:638:0,
from D:/software/vivado/Vivado/2018.2/msys64/mingw64/include/c++/6.2.0/istream:39,
from D:/software/vivado/Vivado/2018.2/msys64/mingw64/include/c++/6.2.0/fstream:38,
from ../../../../hamming_window.h:49,
from ../../../../hamming_window_test.cpp:47:
D:/software/vivado/Vivado/2018.2/msys64/mingw64/include/c++/6.2.0/bits/ostream.tcc:91:5: note: candidate: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(short int) [with _CharT = char; _Traits = std::char_traits<char>]
basic_ostream<_CharT, _Traits>::
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:/software/vivado/Vivado/2018.2/msys64/mingw64/include/c++/6.2.0/bits/ostream.tcc:91:5: note: no known conversion for argument 1 from 'std::ostream {aka std::basic_ostream<char>}' to 'short int'
In file included from D:/software/vivado/Vivado/2018.2/msys64/mingw64/include/c++/6.2.0/istream:39:0,
from D:/software/vivado/Vivado/2018.2/msys64/mingw64/include/c++/6.2.0/fstream:38,
from ../../../../hamming_window.h:49,
from ../../../../hamming_window_test.cpp:47:
D:/software/vivado/Vivado/2018.2/msys64/mingw64/include/c++/6.2.0/ostream:181:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(short unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
operator<<(unsigned short __n)
^~~~~~~~
D:/software/vivado/Vivado/2018.2/msys64/mingw64/include/c++/6.2.0/ostream:181:7: note: no known conversion for argument 1 from 'std::ostream {aka std::basic_ostream<char>}' to 'short unsigned int'
In file included from D:/software/vivado/Vivado/2018.2/msys64/mingw64/include/c++/6.2.0/ostream:638:0,
from D:/software/vivado/Vivado/2018.2/msys64/mingw64/include/c++/6.2.0/istream:39,
from D:/software/vivado/Vivado/2018.2/msys64/mingw64/include/c++/6.2.0/fstream:38,
from ../../../../hamming_window.h:49,
from ../../../../hamming_window_test.cpp:47:
D:/software/vivado/Vivado/2018.2/msys64/mingw64/include/c++/6.2.0/bits/ostream.tcc:105:5: note: candidate: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits<char>]
basic_ostream<_CharT, _Traits>::
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:/software/vivado/Vivado/2018.2/msys64/mingw64/include/c++/6.2.0/bits/ostream.tcc:105:5: note: no known conversion for argument 1 from 'std::ostream {aka std::basic_ostream<char>}' to 'int'
In file included from D:/software/vivado/Vivado/2018.2/msys64/mingw64/include/c++/6.2.0/istream:39:0,
from D:/software/vivado/Vivado/2018.2/msys64/mingw64/include/c++/6.2.0/fstream:38,
from ../../../../hamming_window.h:49,
from ../../../../hamming_window_test.cpp:47:
D:/software/vivado/Vivado/2018.2/msys64/mingw64/include/c++/6.2.0/ostream:192:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
operator<<(unsigned int __n)
^~~~~~~~
D:/software/vivado/Vivado/2018.2/msys64/mingw64/include/c++/6.2.0/ostream:192:7: note: no known conversion for argument 1 from 'std::ostream {aka std::basic_ostream<char>}' to 'unsigned int'
D:/software/vivado/Vivado/2018.2/msys64/mingw64/include/c++/6.2.0/ostream:201:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
operator<<(long long __n)
^~~~~~~~
D:/software/vivado/Vivado/2018.2/msys64/mingw64/include/c++/6.2.0/ostream:201:7: note: no known conversion for argument 1 from 'std::ostream {aka std::basic_ostream<char>}' to 'long long int'
D:/software/vivado/Vivado/2018.2/msys64/mingw64/include/c++/6.2.0/ostream:205:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
operator<<(unsigned long long __n)
^~~~~~~~
D:/software/vivado/Vivado/2018.2/msys64/mingw64/include/c++/6.2.0/ostream:205:7: note: no known conversion for argument 1 from 'std::ostream {aka std::basic_ostream<char>}' to 'long long unsigned int'
D:/software/vivado/Vivado/2018.2/msys64/mingw64/include/c++/6.2.0/ostream:220:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(double) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
operator<<(double __f)
^~~~~~~~
D:/software/vivado/Vivado/2018.2/msys64/mingw64/include/c++/6.2.0/ostream:220:7: note: no known conversion for argument 1 from 'std::ostream {aka std::basic_ostream<char>}' to 'double'
D:/software/vivado/Vivado/2018.2/msys64/mingw64/include/c++/6.2.0/ostream:224:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(float) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
operator<<(float __f)
^~~~~~~~
D:/software/vivado/Vivado/2018.2/msys64/mingw64/include/c++/6.2.0/ostream:224:7: note: no known conversion for argument 1 from 'std::ostream {aka std::basic_ostream<char>}' to 'float'
D:/software/vivado/Vivado/2018.2/msys64/mingw64/include/c++/6.2.0/ostream:232:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long double) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
operator<<(long double __f)
^~~~~~~~
D:/software/vivado/Vivado/2018.2/msys64/mingw64/include/c++/6.2.0/ostream:232:7: note: no known conversion for argument 1 from 'std::ostream {aka std::basic_ostream<char>}' to 'long double'
D:/software/vivado/Vivado/2018.2/msys64/mingw64/include/c++/6.2.0/ostream:245:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(const void*) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
operator<<(const void* __p)
^~~~~~~~
D:/software/vivado/Vivado/2018.2/msys64/mingw64/include/c++/6.2.0/ostream:245:7: note: no known conversion for argument 1 from 'std::ostream {aka std::basic_ostream<char>}' to 'const void*'
In file included from D:/software/vivado/Vivado/2018.2/msys64/mingw64/include/c++/6.2.0/ostream:638:0,
from D:/software/vivado/Vivado/2018.2/msys64/mingw64/include/c++/6.2.0/istream:39,
from D:/software/vivado/Vivado/2018.2/msys64/mingw64/include/c++/6.2.0/fstream:38,
from ../../../../hamming_window.h:49,
from ../../../../hamming_window_test.cpp:47:
D:/software/vivado/Vivado/2018.2/msys64/mingw64/include/c++/6.2.0/bits/ostream.tcc:119:5: note: candidate: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__streambuf_type*) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__streambuf_type = std::basic_streambuf<char>]
basic_ostream<_CharT, _Traits>::
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:/software/vivado/Vivado/2018.2/msys64/mingw64/include/c++/6.2.0/bits/ostream.tcc:119:5: note: no known conversion for argument 1 from 'std::ostream {aka std::basic_ostream<char>}' to 'std::basic_ostream<char>::__streambuf_type* {aka std::basic_streambuf<char>*}'
In file included from D:/software/vivado/Vivado/2018.2/include/floating_point_v7_0_bitacc_cmodel.h:143:0,
from D:/software/vivado/Vivado/2018.2/include/hls_fpo.h:166,
from D:/software/vivado/Vivado/2018.2/include/hls_half.h:58,
from D:/software/vivado/Vivado/2018.2/include/ap_int_sim.h:73,
from D:/software/vivado/Vivado/2018.2/include/ap_int.h:65,
from ../../../../hamming_window.h:77,
from ../../../../hamming_window_test.cpp:47:
D:/software/vivado/Vivado/2018.2/include/gmp.h:2328:33: note: candidate: std::ostream& operator<<(std::ostream&, mpz_srcptr)
__GMP_DECLSPEC_XX std::ostream& operator<< (std::ostream &, mpz_srcptr);
^~~~~~~~
D:/software/vivado/Vivado/2018.2/include/gmp.h:2328:33: note: no known conversion for argument 2 from 'std::ostream {aka std::basic_ostream<char>}' to 'mpz_srcptr {aka const __mpz_struct*}'
D:/software/vivado/Vivado/2018.2/include/gmp.h:2329:33: note: candidate: std::ostream& operator<<(std::ostream&, mpq_srcptr)
__GMP_DECLSPEC_XX std::ostream& operator<< (std::ostream &, mpq_srcptr);
^~~~~~~~
D:/software/vivado/Vivado/2018.2/include/gmp.h:2329:33: note: no known conversion for argument 2 from 'std::ostream {aka std::basic_ostream<char>}' to 'mpq_srcptr {aka const __mpq_struct*}'
D:/software/vivado/Vivado/2018.2/include/gmp.h:2330:33: note: candidate: std::ostream& operator<<(std::ostream&, mpf_srcptr)
__GMP_DECLSPEC_XX std::ostream& operator<< (std::ostream &, mpf_srcptr);
^~~~~~~~
D:/software/vivado/Vivado/2018.2/include/gmp.h:2330:33: note: no known conversion for argument 2 from 'std::ostream {aka std::basic_ostream<char>}' to 'mpf_srcptr {aka const __mpf_struct*}'
In file included from D:/software/vivado/Vivado/2018.2/include/ap_int_sim.h:73:0,
from D:/software/vivado/Vivado/2018.2/include/ap_int.h:65,
from ../../../../hamming_window.h:77,
from ../../../../hamming_window_test.cpp:47:
D:/software/vivado/Vivado/2018.2/include/hls_half.h:2377:4: note: candidate: template<class T, class charT, class traits> typename detail::enable<std::basic_ostream<charT, traits>&, T>::type detail::operator<<(std::basic_ostream<charT, traits>&, T)
operator<<(std::basic_ostream<charT,traits> &out, T arg) { return functions::write(out, arg); }
^~~~~~~~
D:/software/vivado/Vivado/2018.2/include/hls_half.h:2377:4: note: template argument deduction/substitution failed:
D:/software/vivado/Vivado/2018.2/include/hls_half.h: In substitution of 'template<class T, class charT, class traits> typename detail::enable<std::basic_ostream<charT, traits>&, T>::type detail::operator<<(std::basic_ostream<charT, traits>&, T) [with T = std::basic_ostream<char>; charT = char; traits = std::char_traits<char>]':
../../../../hamming_window_test.cpp:79:10: required from here
D:/software/vivado/Vivado/2018.2/include/hls_half.h:2377:4: error: no type named 'type' in 'struct detail::enable<std::basic_ostream<char>&, std::basic_ostream<char>, void, void>'
In file included from D:/software/vivado/Vivado/2018.2/include/ap_int_sim.h:170:0,
from D:/software/vivado/Vivado/2018.2/include/ap_int.h:65,
from ../../../../hamming_window.h:77,
from ../../../../hamming_window_test.cpp:47:
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5754:11: note: candidate: template<int _AP_W, bool _AP_S> bool operator<<(bool, const ap_private<_AP_W, _AP_S, false>&)
C_TYPE operator BIN_OP ( C_TYPE i_op, const ap_private<_AP_W,_AP_S, false> &op) { \
^
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5785:5: note: in expansion of macro 'OP_BIN_SHIFT_INT'
OP_BIN_SHIFT_INT(<<, C_TYPE, WI, SI, arg1) \
^~~~~~~~~~~~~~~~
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5805:1: note: in expansion of macro 'OPS_MIX_INT'
OPS_MIX_INT(bool, 1, false)
^~~~~~~~~~~
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5754:11: note: template argument deduction/substitution failed:
C_TYPE operator BIN_OP ( C_TYPE i_op, const ap_private<_AP_W,_AP_S, false> &op) { \
^
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5785:5: note: in expansion of macro 'OP_BIN_SHIFT_INT'
OP_BIN_SHIFT_INT(<<, C_TYPE, WI, SI, arg1) \
^~~~~~~~~~~~~~~~
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5805:1: note: in expansion of macro 'OPS_MIX_INT'
OPS_MIX_INT(bool, 1, false)
^~~~~~~~~~~
../../../../hamming_window_test.cpp:79:10: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'const ap_private<_AP_W, _AP_S, false>'
cout << "\n!!! ERROR at i =" << i << "- expected:" << sw_result[i] << "got:" << hw_result[i] << endl;
^~~~
In file included from D:/software/vivado/Vivado/2018.2/include/ap_int_sim.h:170:0,
from D:/software/vivado/Vivado/2018.2/include/ap_int.h:65,
from ../../../../hamming_window.h:77,
from ../../../../hamming_window_test.cpp:47:
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5759:3: note: candidate: template<int _AP_W, bool _AP_S> typename ap_private<_AP_W, _AP_S>::RType<1, false>::arg1 operator<<(const ap_private<_AP_W, _AP_S>&, bool)
operator BIN_OP ( const ap_private<_AP_W,_AP_S> &op, C_TYPE i_op) { \
^
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5785:5: note: in expansion of macro 'OP_BIN_SHIFT_INT'
OP_BIN_SHIFT_INT(<<, C_TYPE, WI, SI, arg1) \
^~~~~~~~~~~~~~~~
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5805:1: note: in expansion of macro 'OPS_MIX_INT'
OPS_MIX_INT(bool, 1, false)
^~~~~~~~~~~
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5759:3: note: template argument deduction/substitution failed:
operator BIN_OP ( const ap_private<_AP_W,_AP_S> &op, C_TYPE i_op) { \
^
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5785:5: note: in expansion of macro 'OP_BIN_SHIFT_INT'
OP_BIN_SHIFT_INT(<<, C_TYPE, WI, SI, arg1) \
^~~~~~~~~~~~~~~~
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5805:1: note: in expansion of macro 'OPS_MIX_INT'
OPS_MIX_INT(bool, 1, false)
^~~~~~~~~~~
../../../../hamming_window_test.cpp:79:10: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'const ap_private<_AP_W, _AP_S>'
cout << "\n!!! ERROR at i =" << i << "- expected:" << sw_result[i] << "got:" << hw_result[i] << endl;
^~~~
In file included from D:/software/vivado/Vivado/2018.2/include/ap_int_sim.h:170:0,
from D:/software/vivado/Vivado/2018.2/include/ap_int.h:65,
from ../../../../hamming_window.h:77,
from ../../../../hamming_window_test.cpp:47:
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5754:11: note: candidate: template<int _AP_W, bool _AP_S> char operator<<(char, const ap_private<_AP_W, _AP_S, false>&)
C_TYPE operator BIN_OP ( C_TYPE i_op, const ap_private<_AP_W,_AP_S, false> &op) { \
^
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5785:5: note: in expansion of macro 'OP_BIN_SHIFT_INT'
OP_BIN_SHIFT_INT(<<, C_TYPE, WI, SI, arg1) \
^~~~~~~~~~~~~~~~
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5806:1: note: in expansion of macro 'OPS_MIX_INT'
OPS_MIX_INT(char, 8, CHAR_MIN != 0)
^~~~~~~~~~~
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5754:11: note: template argument deduction/substitution failed:
C_TYPE operator BIN_OP ( C_TYPE i_op, const ap_private<_AP_W,_AP_S, false> &op) { \
^
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5785:5: note: in expansion of macro 'OP_BIN_SHIFT_INT'
OP_BIN_SHIFT_INT(<<, C_TYPE, WI, SI, arg1) \
^~~~~~~~~~~~~~~~
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5806:1: note: in expansion of macro 'OPS_MIX_INT'
OPS_MIX_INT(char, 8, CHAR_MIN != 0)
^~~~~~~~~~~
../../../../hamming_window_test.cpp:79:10: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'const ap_private<_AP_W, _AP_S, false>'
cout << "\n!!! ERROR at i =" << i << "- expected:" << sw_result[i] << "got:" << hw_result[i] << endl;
^~~~
In file included from D:/software/vivado/Vivado/2018.2/include/ap_int_sim.h:170:0,
from D:/software/vivado/Vivado/2018.2/include/ap_int.h:65,
from ../../../../hamming_window.h:77,
from ../../../../hamming_window_test.cpp:47:
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5759:3: note: candidate: template<int _AP_W, bool _AP_S> typename ap_private<_AP_W, _AP_S>::RType<8, ((-127 - 1) != 0)>::arg1 operator<<(const ap_private<_AP_W, _AP_S>&, char)
operator BIN_OP ( const ap_private<_AP_W,_AP_S> &op, C_TYPE i_op) { \
^
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5785:5: note: in expansion of macro 'OP_BIN_SHIFT_INT'
OP_BIN_SHIFT_INT(<<, C_TYPE, WI, SI, arg1) \
^~~~~~~~~~~~~~~~
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5806:1: note: in expansion of macro 'OPS_MIX_INT'
OPS_MIX_INT(char, 8, CHAR_MIN != 0)
^~~~~~~~~~~
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5759:3: note: template argument deduction/substitution failed:
operator BIN_OP ( const ap_private<_AP_W,_AP_S> &op, C_TYPE i_op) { \
^
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5785:5: note: in expansion of macro 'OP_BIN_SHIFT_INT'
OP_BIN_SHIFT_INT(<<, C_TYPE, WI, SI, arg1) \
^~~~~~~~~~~~~~~~
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5806:1: note: in expansion of macro 'OPS_MIX_INT'
OPS_MIX_INT(char, 8, CHAR_MIN != 0)
^~~~~~~~~~~
../../../../hamming_window_test.cpp:79:10: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'const ap_private<_AP_W, _AP_S>'
cout << "\n!!! ERROR at i =" << i << "- expected:" << sw_result[i] << "got:" << hw_result[i] << endl;
^~~~
In file included from D:/software/vivado/Vivado/2018.2/include/ap_int_sim.h:170:0,
from D:/software/vivado/Vivado/2018.2/include/ap_int.h:65,
from ../../../../hamming_window.h:77,
from ../../../../hamming_window_test.cpp:47:
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5754:11: note: candidate: template<int _AP_W, bool _AP_S> signed char operator<<(signed char, const ap_private<_AP_W, _AP_S, false>&)
C_TYPE operator BIN_OP ( C_TYPE i_op, const ap_private<_AP_W,_AP_S, false> &op) { \
^
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5785:5: note: in expansion of macro 'OP_BIN_SHIFT_INT'
OP_BIN_SHIFT_INT(<<, C_TYPE, WI, SI, arg1) \
^~~~~~~~~~~~~~~~
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5807:1: note: in expansion of macro 'OPS_MIX_INT'
OPS_MIX_INT(signed char, 8, true)
^~~~~~~~~~~
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5754:11: note: template argument deduction/substitution failed:
C_TYPE operator BIN_OP ( C_TYPE i_op, const ap_private<_AP_W,_AP_S, false> &op) { \
^
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5785:5: note: in expansion of macro 'OP_BIN_SHIFT_INT'
OP_BIN_SHIFT_INT(<<, C_TYPE, WI, SI, arg1) \
^~~~~~~~~~~~~~~~
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5807:1: note: in expansion of macro 'OPS_MIX_INT'
OPS_MIX_INT(signed char, 8, true)
^~~~~~~~~~~
../../../../hamming_window_test.cpp:79:10: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'const ap_private<_AP_W, _AP_S, false>'
cout << "\n!!! ERROR at i =" << i << "- expected:" << sw_result[i] << "got:" << hw_result[i] << endl;
^~~~
In file included from D:/software/vivado/Vivado/2018.2/include/ap_int_sim.h:170:0,
from D:/software/vivado/Vivado/2018.2/include/ap_int.h:65,
from ../../../../hamming_window.h:77,
from ../../../../hamming_window_test.cpp:47:
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5759:3: note: candidate: template<int _AP_W, bool _AP_S> typename ap_private<_AP_W, _AP_S>::RType<8, true>::arg1 operator<<(const ap_private<_AP_W, _AP_S>&, signed char)
operator BIN_OP ( const ap_private<_AP_W,_AP_S> &op, C_TYPE i_op) { \
^
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5785:5: note: in expansion of macro 'OP_BIN_SHIFT_INT'
OP_BIN_SHIFT_INT(<<, C_TYPE, WI, SI, arg1) \
^~~~~~~~~~~~~~~~
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5807:1: note: in expansion of macro 'OPS_MIX_INT'
OPS_MIX_INT(signed char, 8, true)
^~~~~~~~~~~
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5759:3: note: template argument deduction/substitution failed:
operator BIN_OP ( const ap_private<_AP_W,_AP_S> &op, C_TYPE i_op) { \
^
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5785:5: note: in expansion of macro 'OP_BIN_SHIFT_INT'
OP_BIN_SHIFT_INT(<<, C_TYPE, WI, SI, arg1) \
^~~~~~~~~~~~~~~~
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5807:1: note: in expansion of macro 'OPS_MIX_INT'
OPS_MIX_INT(signed char, 8, true)
^~~~~~~~~~~
../../../../hamming_window_test.cpp:79:10: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'const ap_private<_AP_W, _AP_S>'
cout << "\n!!! ERROR at i =" << i << "- expected:" << sw_result[i] << "got:" << hw_result[i] << endl;
^~~~
In file included from D:/software/vivado/Vivado/2018.2/include/ap_int_sim.h:170:0,
from D:/software/vivado/Vivado/2018.2/include/ap_int.h:65,
from ../../../../hamming_window.h:77,
from ../../../../hamming_window_test.cpp:47:
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5754:11: note: candidate: template<int _AP_W, bool _AP_S> unsigned char operator<<(unsigned char, const ap_private<_AP_W, _AP_S, false>&)
C_TYPE operator BIN_OP ( C_TYPE i_op, const ap_private<_AP_W,_AP_S, false> &op) { \
^
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5785:5: note: in expansion of macro 'OP_BIN_SHIFT_INT'
OP_BIN_SHIFT_INT(<<, C_TYPE, WI, SI, arg1) \
^~~~~~~~~~~~~~~~
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5808:1: note: in expansion of macro 'OPS_MIX_INT'
OPS_MIX_INT(unsigned char, 8, false)
^~~~~~~~~~~
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5754:11: note: template argument deduction/substitution failed:
C_TYPE operator BIN_OP ( C_TYPE i_op, const ap_private<_AP_W,_AP_S, false> &op) { \
^
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5785:5: note: in expansion of macro 'OP_BIN_SHIFT_INT'
OP_BIN_SHIFT_INT(<<, C_TYPE, WI, SI, arg1) \
^~~~~~~~~~~~~~~~
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5808:1: note: in expansion of macro 'OPS_MIX_INT'
OPS_MIX_INT(unsigned char, 8, false)
^~~~~~~~~~~
../../../../hamming_window_test.cpp:79:10: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'const ap_private<_AP_W, _AP_S, false>'
cout << "\n!!! ERROR at i =" << i << "- expected:" << sw_result[i] << "got:" << hw_result[i] << endl;
^~~~
In file included from D:/software/vivado/Vivado/2018.2/include/ap_int_sim.h:170:0,
from D:/software/vivado/Vivado/2018.2/include/ap_int.h:65,
from ../../../../hamming_window.h:77,
from ../../../../hamming_window_test.cpp:47:
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5759:3: note: candidate: template<int _AP_W, bool _AP_S> typename ap_private<_AP_W, _AP_S>::RType<8, false>::arg1 operator<<(const ap_private<_AP_W, _AP_S>&, unsigned char)
operator BIN_OP ( const ap_private<_AP_W,_AP_S> &op, C_TYPE i_op) { \
^
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5785:5: note: in expansion of macro 'OP_BIN_SHIFT_INT'
OP_BIN_SHIFT_INT(<<, C_TYPE, WI, SI, arg1) \
^~~~~~~~~~~~~~~~
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5808:1: note: in expansion of macro 'OPS_MIX_INT'
OPS_MIX_INT(unsigned char, 8, false)
^~~~~~~~~~~
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5759:3: note: template argument deduction/substitution failed:
operator BIN_OP ( const ap_private<_AP_W,_AP_S> &op, C_TYPE i_op) { \
^
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5785:5: note: in expansion of macro 'OP_BIN_SHIFT_INT'
OP_BIN_SHIFT_INT(<<, C_TYPE, WI, SI, arg1) \
^~~~~~~~~~~~~~~~
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5808:1: note: in expansion of macro 'OPS_MIX_INT'
OPS_MIX_INT(unsigned char, 8, false)
^~~~~~~~~~~
../../../../hamming_window_test.cpp:79:10: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'const ap_private<_AP_W, _AP_S>'
cout << "\n!!! ERROR at i =" << i << "- expected:" << sw_result[i] << "got:" << hw_result[i] << endl;
^~~~
In file included from D:/software/vivado/Vivado/2018.2/include/ap_int_sim.h:170:0,
from D:/software/vivado/Vivado/2018.2/include/ap_int.h:65,
from ../../../../hamming_window.h:77,
from ../../../../hamming_window_test.cpp:47:
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5754:11: note: candidate: template<int _AP_W, bool _AP_S> short int operator<<(short int, const ap_private<_AP_W, _AP_S, false>&)
C_TYPE operator BIN_OP ( C_TYPE i_op, const ap_private<_AP_W,_AP_S, false> &op) { \
^
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5785:5: note: in expansion of macro 'OP_BIN_SHIFT_INT'
OP_BIN_SHIFT_INT(<<, C_TYPE, WI, SI, arg1) \
^~~~~~~~~~~~~~~~
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5809:1: note: in expansion of macro 'OPS_MIX_INT'
OPS_MIX_INT(short, 16, true)
^~~~~~~~~~~
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5754:11: note: template argument deduction/substitution failed:
C_TYPE operator BIN_OP ( C_TYPE i_op, const ap_private<_AP_W,_AP_S, false> &op) { \
^
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5785:5: note: in expansion of macro 'OP_BIN_SHIFT_INT'
OP_BIN_SHIFT_INT(<<, C_TYPE, WI, SI, arg1) \
^~~~~~~~~~~~~~~~
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5809:1: note: in expansion of macro 'OPS_MIX_INT'
OPS_MIX_INT(short, 16, true)
^~~~~~~~~~~
../../../../hamming_window_test.cpp:79:10: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'const ap_private<_AP_W, _AP_S, false>'
cout << "\n!!! ERROR at i =" << i << "- expected:" << sw_result[i] << "got:" << hw_result[i] << endl;
^~~~
In file included from D:/software/vivado/Vivado/2018.2/include/ap_int_sim.h:170:0,
from D:/software/vivado/Vivado/2018.2/include/ap_int.h:65,
from ../../../../hamming_window.h:77,
from ../../../../hamming_window_test.cpp:47:
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5759:3: note: candidate: template<int _AP_W, bool _AP_S> typename ap_private<_AP_W, _AP_S>::RType<16, true>::arg1 operator<<(const ap_private<_AP_W, _AP_S>&, short int)
operator BIN_OP ( const ap_private<_AP_W,_AP_S> &op, C_TYPE i_op) { \
^
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5785:5: note: in expansion of macro 'OP_BIN_SHIFT_INT'
OP_BIN_SHIFT_INT(<<, C_TYPE, WI, SI, arg1) \
^~~~~~~~~~~~~~~~
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5809:1: note: in expansion of macro 'OPS_MIX_INT'
OPS_MIX_INT(short, 16, true)
^~~~~~~~~~~
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5759:3: note: template argument deduction/substitution failed:
operator BIN_OP ( const ap_private<_AP_W,_AP_S> &op, C_TYPE i_op) { \
^
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5785:5: note: in expansion of macro 'OP_BIN_SHIFT_INT'
OP_BIN_SHIFT_INT(<<, C_TYPE, WI, SI, arg1) \
^~~~~~~~~~~~~~~~
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5809:1: note: in expansion of macro 'OPS_MIX_INT'
OPS_MIX_INT(short, 16, true)
^~~~~~~~~~~
../../../../hamming_window_test.cpp:79:10: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'const ap_private<_AP_W, _AP_S>'
cout << "\n!!! ERROR at i =" << i << "- expected:" << sw_result[i] << "got:" << hw_result[i] << endl;
^~~~
In file included from D:/software/vivado/Vivado/2018.2/include/ap_int_sim.h:170:0,
from D:/software/vivado/Vivado/2018.2/include/ap_int.h:65,
from ../../../../hamming_window.h:77,
from ../../../../hamming_window_test.cpp:47:
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5754:11: note: candidate: template<int _AP_W, bool _AP_S> short unsigned int operator<<(short unsigned int, const ap_private<_AP_W, _AP_S, false>&)
C_TYPE operator BIN_OP ( C_TYPE i_op, const ap_private<_AP_W,_AP_S, false> &op) { \
^
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5785:5: note: in expansion of macro 'OP_BIN_SHIFT_INT'
OP_BIN_SHIFT_INT(<<, C_TYPE, WI, SI, arg1) \
^~~~~~~~~~~~~~~~
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5810:1: note: in expansion of macro 'OPS_MIX_INT'
OPS_MIX_INT(unsigned short, 16, false)
^~~~~~~~~~~
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5754:11: note: template argument deduction/substitution failed:
C_TYPE operator BIN_OP ( C_TYPE i_op, const ap_private<_AP_W,_AP_S, false> &op) { \
^
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5785:5: note: in expansion of macro 'OP_BIN_SHIFT_INT'
OP_BIN_SHIFT_INT(<<, C_TYPE, WI, SI, arg1) \
^~~~~~~~~~~~~~~~
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5810:1: note: in expansion of macro 'OPS_MIX_INT'
OPS_MIX_INT(unsigned short, 16, false)
^~~~~~~~~~~
../../../../hamming_window_test.cpp:79:10: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'const ap_private<_AP_W, _AP_S, false>'
cout << "\n!!! ERROR at i =" << i << "- expected:" << sw_result[i] << "got:" << hw_result[i] << endl;
^~~~
In file included from D:/software/vivado/Vivado/2018.2/include/ap_int_sim.h:170:0,
from D:/software/vivado/Vivado/2018.2/include/ap_int.h:65,
from ../../../../hamming_window.h:77,
from ../../../../hamming_window_test.cpp:47:
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5759:3: note: candidate: template<int _AP_W, bool _AP_S> typename ap_private<_AP_W, _AP_S>::RType<16, false>::arg1 operator<<(const ap_private<_AP_W, _AP_S>&, short unsigned int)
operator BIN_OP ( const ap_private<_AP_W,_AP_S> &op, C_TYPE i_op) { \
^
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5785:5: note: in expansion of macro 'OP_BIN_SHIFT_INT'
OP_BIN_SHIFT_INT(<<, C_TYPE, WI, SI, arg1) \
^~~~~~~~~~~~~~~~
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5810:1: note: in expansion of macro 'OPS_MIX_INT'
OPS_MIX_INT(unsigned short, 16, false)
^~~~~~~~~~~
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5759:3: note: template argument deduction/substitution failed:
operator BIN_OP ( const ap_private<_AP_W,_AP_S> &op, C_TYPE i_op) { \
^
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5785:5: note: in expansion of macro 'OP_BIN_SHIFT_INT'
OP_BIN_SHIFT_INT(<<, C_TYPE, WI, SI, arg1) \
^~~~~~~~~~~~~~~~
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5810:1: note: in expansion of macro 'OPS_MIX_INT'
OPS_MIX_INT(unsigned short, 16, false)
^~~~~~~~~~~
../../../../hamming_window_test.cpp:79:10: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'const ap_private<_AP_W, _AP_S>'
cout << "\n!!! ERROR at i =" << i << "- expected:" << sw_result[i] << "got:" << hw_result[i] << endl;
^~~~
In file included from D:/software/vivado/Vivado/2018.2/include/ap_int_sim.h:170:0,
from D:/software/vivado/Vivado/2018.2/include/ap_int.h:65,
from ../../../../hamming_window.h:77,
from ../../../../hamming_window_test.cpp:47:
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5754:11: note: candidate: template<int _AP_W, bool _AP_S> int operator<<(int, const ap_private<_AP_W, _AP_S, false>&)
C_TYPE operator BIN_OP ( C_TYPE i_op, const ap_private<_AP_W,_AP_S, false> &op) { \
^
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5785:5: note: in expansion of macro 'OP_BIN_SHIFT_INT'
OP_BIN_SHIFT_INT(<<, C_TYPE, WI, SI, arg1) \
^~~~~~~~~~~~~~~~
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5811:1: note: in expansion of macro 'OPS_MIX_INT'
OPS_MIX_INT(int, 32, true)
^~~~~~~~~~~
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5754:11: note: template argument deduction/substitution failed:
C_TYPE operator BIN_OP ( C_TYPE i_op, const ap_private<_AP_W,_AP_S, false> &op) { \
^
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5785:5: note: in expansion of macro 'OP_BIN_SHIFT_INT'
OP_BIN_SHIFT_INT(<<, C_TYPE, WI, SI, arg1) \
^~~~~~~~~~~~~~~~
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5811:1: note: in expansion of macro 'OPS_MIX_INT'
OPS_MIX_INT(int, 32, true)
^~~~~~~~~~~
../../../../hamming_window_test.cpp:79:10: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'const ap_private<_AP_W, _AP_S, false>'
cout << "\n!!! ERROR at i =" << i << "- expected:" << sw_result[i] << "got:" << hw_result[i] << endl;
^~~~
In file included from D:/software/vivado/Vivado/2018.2/include/ap_int_sim.h:170:0,
from D:/software/vivado/Vivado/2018.2/include/ap_int.h:65,
from ../../../../hamming_window.h:77,
from ../../../../hamming_window_test.cpp:47:
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5759:3: note: candidate: template<int _AP_W, bool _AP_S> typename ap_private<_AP_W, _AP_S>::RType<32, true>::arg1 operator<<(const ap_private<_AP_W, _AP_S>&, int)
operator BIN_OP ( const ap_private<_AP_W,_AP_S> &op, C_TYPE i_op) { \
^
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5785:5: note: in expansion of macro 'OP_BIN_SHIFT_INT'
OP_BIN_SHIFT_INT(<<, C_TYPE, WI, SI, arg1) \
^~~~~~~~~~~~~~~~
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5811:1: note: in expansion of macro 'OPS_MIX_INT'
OPS_MIX_INT(int, 32, true)
^~~~~~~~~~~
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5759:3: note: template argument deduction/substitution failed:
operator BIN_OP ( const ap_private<_AP_W,_AP_S> &op, C_TYPE i_op) { \
^
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5785:5: note: in expansion of macro 'OP_BIN_SHIFT_INT'
OP_BIN_SHIFT_INT(<<, C_TYPE, WI, SI, arg1) \
^~~~~~~~~~~~~~~~
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5811:1: note: in expansion of macro 'OPS_MIX_INT'
OPS_MIX_INT(int, 32, true)
^~~~~~~~~~~
../../../../hamming_window_test.cpp:79:10: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'const ap_private<_AP_W, _AP_S>'
cout << "\n!!! ERROR at i =" << i << "- expected:" << sw_result[i] << "got:" << hw_result[i] << endl;
^~~~
In file included from D:/software/vivado/Vivado/2018.2/include/ap_int_sim.h:170:0,
from D:/software/vivado/Vivado/2018.2/include/ap_int.h:65,
from ../../../../hamming_window.h:77,
from ../../../../hamming_window_test.cpp:47:
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5754:11: note: candidate: template<int _AP_W, bool _AP_S> unsigned int operator<<(unsigned int, const ap_private<_AP_W, _AP_S, false>&)
C_TYPE operator BIN_OP ( C_TYPE i_op, const ap_private<_AP_W,_AP_S, false> &op) { \
^
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5785:5: note: in expansion of macro 'OP_BIN_SHIFT_INT'
OP_BIN_SHIFT_INT(<<, C_TYPE, WI, SI, arg1) \
^~~~~~~~~~~~~~~~
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5812:1: note: in expansion of macro 'OPS_MIX_INT'
OPS_MIX_INT(unsigned int, 32, false)
^~~~~~~~~~~
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5754:11: note: template argument deduction/substitution failed:
C_TYPE operator BIN_OP ( C_TYPE i_op, const ap_private<_AP_W,_AP_S, false> &op) { \
^
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5785:5: note: in expansion of macro 'OP_BIN_SHIFT_INT'
OP_BIN_SHIFT_INT(<<, C_TYPE, WI, SI, arg1) \
^~~~~~~~~~~~~~~~
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5812:1: note: in expansion of macro 'OPS_MIX_INT'
OPS_MIX_INT(unsigned int, 32, false)
^~~~~~~~~~~
../../../../hamming_window_test.cpp:79:10: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'const ap_private<_AP_W, _AP_S, false>'
cout << "\n!!! ERROR at i =" << i << "- expected:" << sw_result[i] << "got:" << hw_result[i] << endl;
^~~~
In file included from D:/software/vivado/Vivado/2018.2/include/ap_int_sim.h:170:0,
from D:/software/vivado/Vivado/2018.2/include/ap_int.h:65,
from ../../../../hamming_window.h:77,
from ../../../../hamming_window_test.cpp:47:
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5759:3: note: candidate: template<int _AP_W, bool _AP_S> typename ap_private<_AP_W, _AP_S>::RType<32, false>::arg1 operator<<(const ap_private<_AP_W, _AP_S>&, unsigned int)
operator BIN_OP ( const ap_private<_AP_W,_AP_S> &op, C_TYPE i_op) { \
^
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5785:5: note: in expansion of macro 'OP_BIN_SHIFT_INT'
OP_BIN_SHIFT_INT(<<, C_TYPE, WI, SI, arg1) \
^~~~~~~~~~~~~~~~
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5812:1: note: in expansion of macro 'OPS_MIX_INT'
OPS_MIX_INT(unsigned int, 32, false)
^~~~~~~~~~~
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5759:3: note: template argument deduction/substitution failed:
operator BIN_OP ( const ap_private<_AP_W,_AP_S> &op, C_TYPE i_op) { \
^
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5785:5: note: in expansion of macro 'OP_BIN_SHIFT_INT'
OP_BIN_SHIFT_INT(<<, C_TYPE, WI, SI, arg1) \
^~~~~~~~~~~~~~~~
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5812:1: note: in expansion of macro 'OPS_MIX_INT'
OPS_MIX_INT(unsigned int, 32, false)
^~~~~~~~~~~
../../../../hamming_window_test.cpp:79:10: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'const ap_private<_AP_W, _AP_S>'
cout << "\n!!! ERROR at i =" << i << "- expected:" << sw_result[i] << "got:" << hw_result[i] << endl;
^~~~
In file included from D:/software/vivado/Vivado/2018.2/include/ap_int_sim.h:170:0,
from D:/software/vivado/Vivado/2018.2/include/ap_int.h:65,
from ../../../../hamming_window.h:77,
from ../../../../hamming_window_test.cpp:47:
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5754:11: note: candidate: template<int _AP_W, bool _AP_S> long int operator<<(long int, const ap_private<_AP_W, _AP_S, false>&)
C_TYPE operator BIN_OP ( C_TYPE i_op, const ap_private<_AP_W,_AP_S, false> &op) { \
^
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5785:5: note: in expansion of macro 'OP_BIN_SHIFT_INT'
OP_BIN_SHIFT_INT(<<, C_TYPE, WI, SI, arg1) \
^~~~~~~~~~~~~~~~
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5814:1: note: in expansion of macro 'OPS_MIX_INT'
OPS_MIX_INT(long, 64, true)
^~~~~~~~~~~
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5754:11: note: template argument deduction/substitution failed:
C_TYPE operator BIN_OP ( C_TYPE i_op, const ap_private<_AP_W,_AP_S, false> &op) { \
^
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5785:5: note: in expansion of macro 'OP_BIN_SHIFT_INT'
OP_BIN_SHIFT_INT(<<, C_TYPE, WI, SI, arg1) \
^~~~~~~~~~~~~~~~
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5814:1: note: in expansion of macro 'OPS_MIX_INT'
OPS_MIX_INT(long, 64, true)
^~~~~~~~~~~
../../../../hamming_window_test.cpp:79:10: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'const ap_private<_AP_W, _AP_S, false>'
cout << "\n!!! ERROR at i =" << i << "- expected:" << sw_result[i] << "got:" << hw_result[i] << endl;
^~~~
In file included from D:/software/vivado/Vivado/2018.2/include/ap_int_sim.h:170:0,
from D:/software/vivado/Vivado/2018.2/include/ap_int.h:65,
from ../../../../hamming_window.h:77,
from ../../../../hamming_window_test.cpp:47:
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5759:3: note: candidate: template<int _AP_W, bool _AP_S> typename ap_private<_AP_W, _AP_S>::RType<64, true>::arg1 operator<<(const ap_private<_AP_W, _AP_S>&, long int)
operator BIN_OP ( const ap_private<_AP_W,_AP_S> &op, C_TYPE i_op) { \
^
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5785:5: note: in expansion of macro 'OP_BIN_SHIFT_INT'
OP_BIN_SHIFT_INT(<<, C_TYPE, WI, SI, arg1) \
^~~~~~~~~~~~~~~~
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5814:1: note: in expansion of macro 'OPS_MIX_INT'
OPS_MIX_INT(long, 64, true)
^~~~~~~~~~~
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5759:3: note: template argument deduction/substitution failed:
operator BIN_OP ( const ap_private<_AP_W,_AP_S> &op, C_TYPE i_op) { \
^
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5785:5: note: in expansion of macro 'OP_BIN_SHIFT_INT'
OP_BIN_SHIFT_INT(<<, C_TYPE, WI, SI, arg1) \
^~~~~~~~~~~~~~~~
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5814:1: note: in expansion of macro 'OPS_MIX_INT'
OPS_MIX_INT(long, 64, true)
^~~~~~~~~~~
../../../../hamming_window_test.cpp:79:10: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'const ap_private<_AP_W, _AP_S>'
cout << "\n!!! ERROR at i =" << i << "- expected:" << sw_result[i] << "got:" << hw_result[i] << endl;
^~~~
In file included from D:/software/vivado/Vivado/2018.2/include/ap_int_sim.h:170:0,
from D:/software/vivado/Vivado/2018.2/include/ap_int.h:65,
from ../../../../hamming_window.h:77,
from ../../../../hamming_window_test.cpp:47:
D:/software/vivado/Vivado/2018.2/include/etc/ap_private.h:5754:11: note: candidate: template<int _AP_W, bool _AP_S> long unsigned int operator<<(long unsigned int, const ap_private<_AP_W, _AP_S, false>&)
C_TYPE operator BIN_OP ( C_TYPE i_op, const ap_private<_AP_W,_AP_S, false> &op) { \
^

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Xilinx Employee
Xilinx Employee
1,800 Views
Registered: ‎05-06-2008

Hello @yyfyyf,

 

I have reproduce the issue and I am investigating the issue.

 

Update: Modify hamming_window_test.cpp, line 78 to the following:

  cout << "ERROR - " << err_cnt << endl; //updated issue

 

Then you can continue with the lab.

 

Thanks,
Chris

View solution in original post

0 Kudos
4 Replies
Highlighted
Xilinx Employee
Xilinx Employee
1,801 Views
Registered: ‎05-06-2008

Hello @yyfyyf,

 

I have reproduce the issue and I am investigating the issue.

 

Update: Modify hamming_window_test.cpp, line 78 to the following:

  cout << "ERROR - " << err_cnt << endl; //updated issue

 

Then you can continue with the lab.

 

Thanks,
Chris

View solution in original post

0 Kudos
Highlighted
Visitor
Visitor
1,661 Views
Registered: ‎07-10-2018

Hi Chris,

What a naive bug, cannot believe I didn't notice it. Sorry for taking up your time investigating, I should have looked into the code carefully.

Thanks,

Yifan

0 Kudos
Highlighted
Explorer
Explorer
1,219 Views
Registered: ‎06-21-2013

Thought I should mentions 

 

the  faulty line of C++ code is also in the 2018.3 release of the tutorial files.

 

Regards

 

Walter

0 Kudos
Highlighted
Moderator
Moderator
1,175 Views
Registered: ‎05-31-2017

Hi @wmaguire @yyfyyf ,

As the issue is still reproducible with HLS 2018.3 reference design files too, I have filed a CR and reported this to development for updating the design files.

0 Kudos