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!

Reply

What does port=return mean?

Accepted Solution Solved
Adventurer
Posts: 78
Registered: ‎02-15-2016
Accepted Solution

What does port=return mean?

Hello,

 

I wondered what port=return mean exactly.

I can't find any explanation in the UG902 document.

 

Could you explain this?

 

Regards,


Accepted Solutions
Teacher
Posts: 5,036
Registered: ‎03-31-2012

Re: What does port=return mean?

@goldchan1394 return is what HLS calls the control interface of the IP block, ie the signals ap_start, ap_done etc.

- Please mark the Answer as "Accept as solution" if information provided is helpful.
Give Kudos to a post which you think is helpful and reply oriented.

View solution in original post


All Replies
Teacher
Posts: 5,036
Registered: ‎03-31-2012

Re: What does port=return mean?

@goldchan1394 return is what HLS calls the control interface of the IP block, ie the signals ap_start, ap_done etc.

- Please mark the Answer as "Accept as solution" if information provided is helpful.
Give Kudos to a post which you think is helpful and reply oriented.
Highlighted
Scholar
Posts: 1,634
Registered: ‎04-26-2015

Re: What does port=return mean?

To add to what @muzaffer has said, "return" is also where the top function's return value goes, if it has one, as well as the AXI Master addresses. For example:

 

int top(int * dataIn) {
#pragma HLS INTERFACE s_axilite port=return
#pragma HLS INTERFACE m_axi port=dataIn offset=slave
int x = *dataIn; return x; }

This will create an AXI-Lite interface that contains:

  • The control signals (ap_start, ap_done, etc).
  • An input that sets the base address for the AXI Master port, dataIn.
  • An output that holds the return value for the function (ie "x").
Adventurer
Posts: 78
Registered: ‎02-15-2016

Re: What does port=return mean?

Thank you for all quick reply.

 

It is much clear now, but the name, 'return' is not fit well though.

And also I hope the UG902 document should add explanation clearly what 'port=return' means.

 

Thanks again.