Forum Discussion

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

Problem with --set=<argument=value> in case the value has spaces in between

Hi all,

I have a question, I am trying to set Timing optimization to extra effort for Quartus fitter through command line switches so I wrote

execute_module -tool fit -args {--set=optimize_timing="EXTRA EFFORT"}

But Quartus fitter errors out with

Error: Unknown argument "EFFORT". Refer to --help for legal arguments.

I face same problem with any option which accept values with spaces in between

I knew that this option can be set through QSF command but I need to set it through commandline switches

Any suggestions?

3 Replies

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

    You're in a script already? I've never done it this way but within a script just do something like:

    project_open proj_name

    set_global_assignment ...

    project_close

    That way all the assignments are the same format as the .qsf.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi Rysc,

    Yes, I knew that it can be set through "set_global_assignment" in .qsf file but, I want to pass it a quartus_fit executable through --set switch. I have no problem doing so with options which has no spaces in supported values, problems appeared with option values with spaces in between

    Thanks,

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

    I'm not saying do it in the .qsf, but to do it in your script:

    project_open proj_name

    set_global_assignment ...

    execute_module -tool fit...

    project_close

    I don't ever see args being passed directly to the command, but instead see it done the way I just mentioned.