Intel® High Level Synthesis Compiler Pro Edition: Reference Manual

ID 683349
Date 12/19/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

4.1.3. Interface Definition Example: Component Invocation Interface Control Attributes

This example compares two simple components. One component is implemented with simple conduits as its signal interface, while the other component is implemented as an hls_avalon_agent_component.

Consider the following code example for a simple component:
component float myComponent(float a, float b) {
     return a+b;
}

This code example results in a component with the following signals:


You can also implement this component as an hls_avalon_agent_component component with the control signals residing in a register map:
hls_avalon_agent_component
component float myComponent(
hls_avalon_agent_register_arg float a, 
hls_avalon_agent_register_arg float b) {
     return a+b;
}
This code results in a component with the following signals: