User Profile
User Widgets
Contributions
Re: where is ap_uint or ap_int c++ type defined
Hello Aik, Thanks for the pointers, I did mean the definitions of ap_uint and ap_int, instead ac_uinnt and ac_int, which were apparently derived some sort from the former, anyway I supposed these most likely are the intrinsic datatype specific to i++, in fact, I observed these arbitrary precision datatype from Xilinx git repo one day, perhaps they are very close to what were utilized in Altera HLS. thank you very much anyway, plus I do have another question about Quartus standard edition, which is the single seat pricing? do you have any idea?3KViews0likes0CommentsRe: where is ap_uint or ap_int c++ type defined
Hello, To follow up my own question posted several days ago, I am trying to create a HLS design upon Cyclone V soc (with dual arm cortex A9), it's clear that I can develop HLS IP components to optimize system bottleneck, I would also like the entire design to be run on this soc so ability to communicate between processor core(s) to HLS IP(s) is critical, would you anyone please guide me how to and/or point me the appropriate online design documents? much appreciate -liyen-3.1KViews0likes0Commentswhere is ap_uint or ap_int c++ type defined
hello, Recently I tried to review and understand HLS architecture in Quartus tools, in hls/include/HLS/ac_int.h, there were many instances of ap_uint or ap_int type referenced but I couldn't find any definition about them, would you please help me to confirm that whether if this specific type was intrinsic to i++ (Intel HLS compiler)? if not where can I find the proper definition of it? much appreciate for the guideance -liyen-3.2KViews0likes7CommentsRe: HLS compilation issues
Hi Boon, much appreciate for responding to my questions, in fact, per wonderful know-how folks who were so nice to describe their kindness, these issues are all cleared but left some intrinsic GUI issues of modelsim which were known decades ago, perhaps they didn't think that matter, this is okay. the problem is still strange, that why modelsim looks into a directory under root, / , which wasn't installed by modelsim starter edition installer, for all the required packages? but it behaved properly after clean up several issues of init, config files under my personal home. thank you very much for all endeavors. To be honest to you, the reason I dived into intel FPGA device development was for, complex project work like open-cv, gnu-radio, and adas/ ai types, I'd believe besides intrinsic HDL works, there are also critical HLS development, but I don't find something like xf-opencv from xilinx that was offered by altera/intel? I wonder if you could advise some professional (open source is preferred) HLS project works based upon altera/intel FPGA development packages? thank you -lieyn-1.9KViews0likes0CommentsRe: HLS compilation issues
HI Boon, Much appreciate for the advice, it did solve my problem to launch i++, however, I immediately ran into another issue with, this time, Modelsim starter edition, below is the error prompted either I ran in the terminal or thru Quartus interface, I understood these were emitted from libtcl, the issue is that /mtitcl/vsim wasn't part of Modelsim_ase setup during Quartus installation, and I don't see how/where I can modify this path to lead to correct location (I found pkgIndex.tcl provided uch info), could you please help me on this one as well? much appreciate linux$ vsim Error in startup script: can't find package Msg while executing "package require Msg" invoked from within "ncFyP12 -+" (file "/mtitcl/vsim/vsim" line 1) ** Fatal: Read failure in vlm process (0,0)2KViews0likes0CommentsHLS compilation issues
Hello, I installed Quartus Lite 18.1 and came with HLS compiler 18, I tried to compile the QRD example but encountered following build errors, I think these are related to incompatible glibc version used to build HLS i++ and the one installed on my system, could you please advise how to work around such problems? much appreciate for support g++ --version g++ (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0 Copyright (C) 2017 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is N O warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOS E. Tried to make QRD example project here... make No target specified, defaulting to test-x86-64 Available targets: test-x86-64, test-fpga, test-gpp, clean i++ MGS.cpp QRD_Testbench.cpp TestbenchHelpers.cpp --fpc --fp-relaxed -march=x86-64 -o test-x86-64 In file included from MGS.cpp:1: In file included from ./MGS.h:4: In file included from /mnt/usb-drive1/Altera/Quartus-lite-18.1/hls/includ e/HLS/hls.h:11: In file included from /mnt/usb-drive1/Altera/Quartus-lite-18.1/hls/includ e/HLS/hls_internal.h:10: In file included from /usr/lib/gcc/x86_64-linux-gnu/7.5.0/../../../../inc lude/c++/7.5.0/stdlib.h:36: In file included from /usr/lib/gcc/x86_64-linux-gnu/7.5.0/../../../../inc lude/c++/7.5.0/cstdlib:76: /usr/lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/bits/st d_abs.h:55:26: error: use of undeclared identifier '__builtin_labs' abs(long __i) { return __builtin_labs(__i); } ^ /usr/lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/bits/st d_abs.h:60:31: error: use of undeclared identifier '__builtin_llabs' abs(long long __x) { return __builtin_llabs (__x); } ^ In file included from MGS.cpp:1: In file included from ./MGS.h:5: In file included from /mnt/usb-drive1/Altera/Quartus-lite-18.1/hls/includ e/HLS/ac_int.h:99: In file included from /usr/lib/gcc/x86_64-linux-gnu/7.5.0/../../../../inc lude/c++/7.5.0/iostream:38: In file included from /usr/lib/gcc/x86_64-linux-gnu/7.5.0/../../../../inc lude/c++/7.5.0/ostream:37: In file included from /usr/lib/gcc/x86_64-linux-gnu/7.5.0/../../../../inc lude/c++/7.5.0/ios:41: In file included from /usr/lib/gcc/x86_64-linux-gnu/7.5.0/../../../../inc lude/c++/7.5.0/bits/ios_base.h:38: /usr/lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/ext/ato micity.h:48:45: error: use of undeclared identifier '__ATOMIC_ACQ_REL' { return __atomic_fetch_add(__mem, __val, __ATOMIC_ACQ_REL); } ^ /usr/lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/ext/ato micity.h:52:38: error: use of undeclared identifier '__ATOMIC_ACQ_REL' { __atomic_fetch_add(__mem, __val, __ATOMIC_ACQ_REL); } ^ 4 errors generated. HLS x86-64 compile FAILED. Makefile:40: recipe for target 'test-x86-64' failed make: *** [test-x86-64] Error 1 make test-fpga i++ MGS.cpp QRD_Testbench.cpp TestbenchHelpers.cpp -v --fpc --fp-relaxe d -I/usr/include/x86_64-linux-gnu/c++/7 -march=CycloneV -o test-fpga --fp ga-only -ghdl Target FPGA part name: 5CEFA9F23I7 Target FPGA family name: Cyclone V Target FPGA speed grade: -7 Warning:-o has no effect. Project directory name set during -c compile Analyzing MGS.cpp for testbench generation In file included from MGS.cpp:1: In file included from ./MGS.h:4: In file included from /mnt/usb-drive1/Altera/Quartus-lite-18.1/hls/includ e/HLS/hls.h:11: In file included from /mnt/usb-drive1/Altera/Quartus-lite-18.1/hls/includ e/HLS/hls_internal.h:10: In file included from /usr/lib/gcc/x86_64-linux-gnu/7.5.0/../../../../inc lude/c++/7.5.0/stdlib.h:36: In file included from /usr/lib/gcc/x86_64-linux-gnu/7.5.0/../../../../inc lude/c++/7.5.0/cstdlib:76: /usr/lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/bits/st d_abs.h:55:26: error: use of undeclared identifier '__builtin_labs' abs(long __i) { return __builtin_labs(__i); } ^ /usr/lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/bits/st d_abs.h:60:31: error: use of undeclared identifier '__builtin_llabs' abs(long long __x) { return __builtin_llabs (__x); } ^ In file included from MGS.cpp:1: In file included from ./MGS.h:5: In file included from /mnt/usb-drive1/Altera/Quartus-lite-18.1/hls/includ e/HLS/ac_int.h:99: In file included from /usr/lib/gcc/x86_64-linux-gnu/7.5.0/../../../../inc lude/c++/7.5.0/iostream:38: In file included from /usr/lib/gcc/x86_64-linux-gnu/7.5.0/../../../../inc lude/c++/7.5.0/ostream:37: In file included from /usr/lib/gcc/x86_64-linux-gnu/7.5.0/../../../../inc lude/c++/7.5.0/ios:41: In file included from /usr/lib/gcc/x86_64-linux-gnu/7.5.0/../../../../inc lude/c++/7.5.0/bits/ios_base.h:38: /usr/lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/ext/ato micity.h:48:45: error: use of undeclared identifier '__ATOMIC_ACQ_REL' { return __atomic_fetch_add(__mem, __val, __ATOMIC_ACQ_REL); } ^ /usr/lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/ext/ato micity.h:52:38: error: use of undeclared identifier '__ATOMIC_ACQ_REL' { __atomic_fetch_add(__mem, __val, __ATOMIC_ACQ_REL); } ^ 4 errors generated. HLS Testbench parse FAILED. Makefile:54: recipe for target 'test-fpga' failed make: *** [test-fpga] Error 12.1KViews0likes8Comments