TLAST signal not synthesized!

Hello all,

I’m using an axis interface for data in and out (eventually using DMA) but with floating point type. So i need to set the TLAST signal manually, as a million tutorials suggested. But in my case, it doesn’t get synthesized for some reason.
Here is my code:

void fit(hls::stream<axis_t> &in, hls::stream<axis_t> &out, float lambda, float gamma) {

#pragma HLS INTERFACE axis port=in
#pragma HLS INTERFACE axis port=out
#pragma HLS INTERFACE s_axilite port=lambda
#pragma HLS INTERFACE s_axilite port=gamma
#pragma HLS INTERFACE s_axilite port=return


and the data type is defined here:

typedef struct {
	float 		data;
	ap_uint<1>	last; // tried it with bool and ap_int as well!
} axis_t;

//another variation
//struct axis_t {
//	float 		data;
//	ap_uint<1>	last; // tried it with bool and ap_int as well!

the synthesis report shows this with no TLAST signal:

Why the TLAST signal is not getting synthesized, though in all of the tutorials online, it deos?

1 Like

Hi @Yousef_Alnaser,

In Vitis HLS, to use AXI4-Stream with sideband channels, you cannot use a custom structure. You need to use one of the pre-defined templates, such as ap_axis<32,0,0,0>

I recommend you read this tutorial



Hello @marioruiz,

Well, I was looking through these links: from stackoverflow and from this website, and I have many more which all say it could happen.

Maybe I’m missing something or maybe it is changed? using ap_axis, I have to convert to/from float each time i write/read, right?

They and you are right about it if you are using Vivado HLS, but in Vitis HLS if you are not using predefined template as Mario stated, the sidechannels mostly compressed and if not compressed they gave some weird pin outputs. So, if you want to use Vitis HLS, use predefined templates, otherwise open vivado_hls from command prompt, it will work there.

hello @mizan,
Sadly, I’m using Vitis HLS 2021.1 (and 2021.2). I’ll try to do the solution twice, once on Vitis HLS as Mario suggested, and I would like to try it on Vivado HLS! Thank you again.

One thing though, As far as I know vivado_hls is retired, and replaced by vitis_hls, do I need to install an older version? or can i launch it from the already intalled xilinx unified platform?

1 Like

Why do you want to try Vivado HLS? As others mentioned, there are differences between how you do this with Vivado HLS and VItis HLS.
As Vitis HLS is the new version I would recommend you learn how to do it with Vitis HLS and ignore Vivado HLS.



Hi @Yousef_Alnaser,

You are looking at posts that are using Vivado HLS, so what it is mentioned there does not apply, as @mizan mentioned as well.

I do not recommend to use Vivado HLS either.

For 2021.2 look at this example, Vitis-HLS-Introductory-Examples/Interface/Streaming/using_axi_stream_with_struct at master · Xilinx/Vitis-HLS-Introductory-Examples · GitHub

You can define the type of the data as hls::axis<float, 0, 0, 0>



Will do, thanks

I didn’t know this existed, tbh. Newbie here. But thank you very much! this already solved my problem.