Forum Discussion
Customised IP parameter Problem
- 5 years ago
I am using Quartus version 20.1 and I try to add this IP into Platform Designer, it complained first:
Error: set_parameter_value not allowed during GLOBAL while executing the set_parameter_value AWIDTH 31 and so.
and later pop up the error that you mentioned after resolving the first one:
Error: get_parameter_value not allowed during GLOBAL while executing "get_parameter_value MWIDTH_BYTES" invoked from within "expr { [get_parameter_value MWIDTH_BYTES]*8 } " invoked from within "set MWIDTH [ expr { [get_parameter_value MWIDTH_BYTES]*8 } ]"
To solve these errors, you will need to add elaboration callback or validate callback in the _hw.tcl.
set_module_property ELABORATION_CALLBACK validate set_module_property VALIDATION_CALLBACK validateThen you need add callback procedure for set_parameter_value and get_parameter_value. With that, the error should be gone for now.
proc elaborate {} { set_parameter_value get_parameter_value }You may checkout the User Guide below for further details.
- Creating Platform Designer Components on page 89
- Example 6. Sample _hw.tcl Component with User Alterable Expressions on page 100
Else, you can check for the <quartus_installation_directory>/ip/altera for any available _hw.tcl file as a reference.
Thank you so much for your help!
I also found the problem myself.
Indeed the _hw.tcl does not allow get_parameter_value command.
I actually redesign a top level module that contains lsu_ic_top.v and assign the parameter values from qsys level.
Thank you for your help still!
Best wishes,
Mingqiang
Hi Mingqiang,
Great to hear that you are making progress! I’m glad that your question has been addressed, if any answer from the community or Intel support are helpful, please feel free to give Kudos.
With that, I will now transition this thread to community support. If you have a new question, feel free to open a new thread to get the support from Intel experts. Otherwise, the community users will continue to help you on this thread. Thank you.
Best Regards,
Shyan Yew (Richard)