Customised IP parameter Problem
- 4 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.