UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Visitor xiaopengyou
Visitor
301 Views
Registered: ‎08-04-2019

hls sobel C synthesis error

Jump to solution

ERROR: [HLS 200-70] Compilation errors found: Pragma processor failed: In file included from sobel/src/Top.cpp:1:
In file included from sobel/src/Top.cpp:1:
sobel/src/top.h:15:40: error: use of undeclared identifier 'AXI_STREAM'
typedef hls::stream<ap_axiu<16,1,1,1>> AXI_STREAM;
                                       ^
sobel/src/top.h:15:50: error: type name requires a specifier or qualifier
typedef hls::stream<ap_axiu<16,1,1,1>> AXI_STREAM;
                                                 ^
sobel/src/top.h:19:6: error: variable has incomplete type 'void'
void hls_sobel(AXI_STREAM& src_axi,AXI_STREAM& dst_axi,int rows, int cols);
     ^
sobel/src/top.h:19:16: error: use of undeclared identifier 'AXI_STREAM'
void hls_sobel(AXI_STREAM& src_axi,AXI_STREAM& dst_axi,int rows, int cols);
               ^
sobel/src/top.h:19:28: error: use of undeclared identifier 'src_axi'
void hls_sobel(AXI_STREAM& src_axi,AXI_STREAM& dst_axi,int rows, int cols);
                           ^
In file included from sobel/src/Top.cpp:1:
sobel/src/Top.cpp:3:6: error: variable has incomplete type 'void'
void hls_sobel(AXI_STREAM& video_in,AXI_STREAM& video_out,int rows, int cols)
     ^
sobel/src/Top.cpp:3:16: error: use of undeclared identifier 'AXI_STREAM'
void hls_sobel(AXI_STREAM& video_in,AXI_STREAM& video_out,int rows, int cols)
               ^
sobel/src/Top.cpp:3:28: error: use of undeclared identifier 'video_in'
void hls_sobel(AXI_STREAM& video_in,AXI_STREAM& video_out,int rows, int cols)
                           ^
sobel/src/Top.cpp:3:78: error: expected ';' after top level declarator
void hls_sobel(AXI_STREAM& video_in,AXI_STREAM& video_out,int rows, int cols)
                                                                             ^
                                                                             ;
9 errors generated.
Failed checking during preprocessing.
    while executing
"source H:/PYNQ-Z2/hls_example_data/sobel/sobel/solution1/csynth.tcl"
    invoked from within
"hls::main H:/PYNQ-Z2/hls_example_data/sobel/sobel/solution1/csynth.tcl"
    ("uplevel" body line 1)
    invoked from within
"uplevel 1 hls::main {*}$args"
    (procedure "hls_proc" line 5)
    invoked from within
"hls_proc $argv"
Finished C synthesis.

0 Kudos
1 Solution

Accepted Solutions
Visitor xiaopengyou
Visitor
286 Views
Registered: ‎08-04-2019

Re: hls sobel C synthesis error

Jump to solution

The answer is

typedef hls::stream<ap_axiu<16,1,1,1>(There's a space here) >            AXI_STREAM;

View solution in original post

0 Kudos
1 Reply
Visitor xiaopengyou
Visitor
287 Views
Registered: ‎08-04-2019

Re: hls sobel C synthesis error

Jump to solution

The answer is

typedef hls::stream<ap_axiu<16,1,1,1>(There's a space here) >            AXI_STREAM;

View solution in original post

0 Kudos