Forum Discussion

cosx's avatar
cosx
Icon for Occasional Contributor rankOccasional Contributor
4 years ago
Solved

Customised IP parameter Problem

Hi everyone, I came across a strange problem when using Quartus 15.1 standard edition to run a customised IP created myself. I have attached the IP file for your reference in .txt form. This ip...
  • RichardT_altera's avatar
    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 validate

    Then 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.

    https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/ug/ug-qpp-platform-designer.pdf

    - 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.