I am using HWLib on SoC EDS v13.1, but when I call the setting API of ACP ID Mapper, the result is always an error (ALT_E_BAD_ARG). Please tell me the cause and countermeasure.

SoC EDS/DS-5 SoC FPGA

<対象API>
alt_acp_id_map_fixed_read_set()

Tool: SoC EDS
Tool version: 13.1
Device: Cyclone V


This issue is a bug in HWLib.
It is scheduled to be fixed in the future, but since it is not fixed in the latest HWLib (included in SoC EDS v14.0 official version), please modify the argument check judgment statement at the beginning of the API as follows. I need you.

[Incorrect] if (input_id > ALT_ACP_ID_OUT_DYNAM_ID_7 || output_id == ALT_ACP_ID_MAX_OUTPUT_ID)
[Correct] if (input_id >= ALT_ACP_ID_MAX_OUTPUT_ID) (*define should also be ALT_ACP_ID_MAX_INPUT_ID)


Experienced FAE
Free consultation is available.

From specific product specifications to parts selection, the Company FAE will answer your technical concerns free of charge. Please feel free to contact us.