Simple Scalar Interface

A scalar argument with a simple interface type becomes an input port of the top-level RTL module. Valid argument values should be provided on these input ports when the HLS module starts (i.e., when start signal is asserted, or when the MyTopFunc_start() driver function is called). If the input port can be held valid and unchanged throughout the whole iteration of the execution, a stable option can be specified using the following pragma to inform SmartHLS and potentially save register usage in the generated module.

As shown in the table below, each scalar argument corresponds to an input port of the top-level module.

Port NameDirectionDescription
<ARGUMENT_NAME>INThe input value of the scalar argument. This input port is sampled by the SmartHLS module when both start and ready signals are 1.