Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
20710 Discussions

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

Altera_Forum
Honored Contributor II
1,336 Views

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?
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
457 Views

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.
0 Kudos
Altera_Forum
Honored Contributor II
457 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
457 Views

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.
0 Kudos
Reply