cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
246 Views
Registered: ‎07-23-2019

How do I add TLAST to AXI-Stream in HLS?

Jump to solution

When configuring an HLS port as 'axis' it creates the base signals Tvalid, Tready. But what if I also want Tlast?

I know how to do that in Vivado, but is it possible in HLS?

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Voyager
Voyager
223 Views
Registered: ‎06-20-2012

Re: How do I add TLAST to AXI-Stream in HLS?

Jump to solution

@archangel-lightworks 

Use predefined type ap_axiu<32,1,1,1>


template<int D,int U,int TI,int TD>
struct ap_axiu{
ap_uint<D> data;
ap_uint<(D+7)/8> keep;
ap_uint<(D+7)/8> strb;
ap_uint<U> user;
ap_uint<1> last;
ap_uint<TI> id;
ap_uint<TD> dest;
};

== If this was helpful, please feel free to give Kudos, and close if it answers your question ==

View solution in original post

2 Replies
Highlighted
Participant
Participant
237 Views
Registered: ‎05-19-2014

Re: How do I add TLAST to AXI-Stream in HLS?

Jump to solution

Go for a `struct` with the members you would like to see, typically `data`, `keep`, `last`. This `struct` becomes the template argument of your IO `hls::stream`.

Highlighted
Voyager
Voyager
224 Views
Registered: ‎06-20-2012

Re: How do I add TLAST to AXI-Stream in HLS?

Jump to solution

@archangel-lightworks 

Use predefined type ap_axiu<32,1,1,1>


template<int D,int U,int TI,int TD>
struct ap_axiu{
ap_uint<D> data;
ap_uint<(D+7)/8> keep;
ap_uint<(D+7)/8> strb;
ap_uint<U> user;
ap_uint<1> last;
ap_uint<TI> id;
ap_uint<TD> dest;
};

== If this was helpful, please feel free to give Kudos, and close if it answers your question ==

View solution in original post