Commit ec55c20b authored by Maxime Perrotin's avatar Maxime Perrotin

Better handling of interface parameters using macros

parent d87bce93
Pipeline #1926 passed with stage
in 8 minutes and 53 seconds
......@@ -62,17 +62,32 @@ void @_LOWER:Parent_Function_@_@_Name_@
@@END_TABLE@@
@@END_INLINE@@
@@-- determine if we need FPGA dispatching
@@TABLE@@
@@IF@@ @_LOWER:Property_Names_@ = taste_iv_properties::fpga_configurations and @_Property_Values_@ /= ""
@@SET@@ Dispatch_FPGA=TRUE
@@END_IF@@
@@END_TABLE@@
@@MACRO(PARAMETERS)@@
@@INLINE(, )@@
@@TABLE@@
@@IF@@ @_Param_Directions_@ = "PARAM_IN"
&IN_@_UPPER:Param_Names_@
@@ELSE@@
&OUT_@_UPPER:Param_Names_@
@@END_IF@@
@@END_TABLE@@
@@END_INLINE@@
@@END_MACRO@@
// Call user code
@_LOWER:Parent_Function_@_PI_@_Name_@
@@INLINE( \()(,\n )(\);\n)@@
@@TABLE@@
@@IF@@ @_Param_Directions_@ = "PARAM_IN"
&IN_@_UPPER:Param_Names_@
@@ELSE@@
&OUT_@_UPPER:Param_Names_@
@@END_IF@@
@@END_TABLE@@
@@END_INLINE@@
@@IF@@ @_Dispatch_FPGA_@
if(1 == @_LOWER:Parent_Function_@_@_Name_@_FPGA_Dispatch(@_STRIP:PARAMETERS(@_Param_Directions_@, @_Param_Names_@)_@))
@_LOWER:Parent_Function_@_PI_@_Name_@ (@_STRIP:PARAMETERS(@_Param_Directions_@, @_Param_Names_@)_@);
@@ELSE@@
@_LOWER:Parent_Function_@_PI_@_Name_@ (@_STRIP:PARAMETERS(@_Param_Directions_@, @_Param_Names_@)_@);
@@END_IF@@
@@TABLE@@ @@-- encode output parameters
@@IF@@ @_Param_Directions_@ = "PARAM_OUT"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment