Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

SOPC component Hardware TCl file Error

Hi,

I have made an IP component TCL file for SOPC builder in quartus II version 8.1. Now I am using the same file in quartus II version 9.0, it gives me error while adding a component. In TCL file I have used the callback function to display the message on component editor as per entered parameter. Please see attached screen shot for the error message. Also find the callback function added in TCL file below.

# callouts

set_module_property Validation_Callback validate

# Module parameters

add_parameter "Simulation" "integer" "0" "0 = no simulation; 1 = simulation"

set_parameter_property "Simulation" "display_name" "Enter Simulation Option"

set_parameter_property "Simulation" ALLOWED_RANGES {0 1}

proc validate {} {

set Simualtion [get_parameter_value "Simulation"]

if {$Simulation == 0} {

send_message "info" "Disabling simulation."

} else {

send_message "info" "Enabling simulation."

}

}

Can any one help me in debugging this?

Regards,

Jigar G. Shah

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Try this instead:

    # callouts
    set_module_property VALIDATION_CALLBACK validate
    #  Module parameters
    add_parameter SIMULATION INTEGER "0" ""
    set_parameter_property SIMULATION DISPLAY_NAME "Enter Simulation Option"
    set_parameter_property SIMULATION ALLOWED_RANGES {0:No Simulation 1:Simulation}
    proc validate {} {
      set simulation 
      if {$simulation == 0} {
        send_message "Info "Disabling simulation."
      } else {
        send_message Info "Enabling simulation."
      }
    }

    Jake