HLS with quartus-compile enabled failed using a library created from an RTL module using VHDL-2008
I have created a VHDL Entity with IEEE.FIXED_PKG and made a library from it to use it in HLS components. I can emulate the component and do also RTL simulation with it. But when I try to invoke the i++ compiler with --quartus-compile flag, the synthesis fails because in the generated QSF file is not the vhdl-2008 version enabled. The result is it cannot find the IEEE.FIXED_PKG library. It uses the standard vhdl-1993 verison. Is there a way to change to the vhdl-2008 version? Synthesis directive in the VHLD file does not help. Here is the command I use, using Qartus 20.4 Pro and also Quartus 21.2 Pro versions:
i++ -march=Arria10 libRTLMod.a --fpga-only -ghdl --quartus-compile -I ./lib -I./hdl test_comp_fpga_qii.o
HLS run Quartus compile failed
The debug.log files reports this:
Error (13785): VHDL Use Clause error at moving_avg.vhd(5): design library "ieee" does not contain primary unit "fixed_pkg" File: ...moving_avg.vhd Line: 5
In the test_comp_fpga_qii/quartus directory is a quartus_compile.qsf file. Here would help setting a global assignment like this:
set_global_assignment -name VHDL_INPUT_VERSION VHDL_2008
Is there a way to guide the compiler to add such a line using the appropriate VHDL version?