Forum Discussion

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

Quartus Settings File

Hi,

I want to maintain a folder for constraints. I am using quartus in tcl mode. Is there any option in tcl, mentioning the exact path for constraints.

For Example :-

I have this directory structure like

RTL -> For all RTL Files

Constraints -> Contains all the constraints

Program -> Contains all the .sof and -.pof files.

I like to mention in .tcl file that the constraints are available in Constraints folder.. How do I do that,,,, Is there a solution for that ??/

Plz let me know...

Waiting for an early response.

Thanks,

Sri.

3 Replies

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

    Hope I've understood the question.

    I think you need to do the following...

    set_global_assignment -name SDC_FILE Constraints/my_constraints.sdc
    export_assignments
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi,

    Thanks a lot for the reply...

    But What I need is .....

    Can I read the settings file from a directory ??? ......

    Let us say.....

    If I write all the settings in a file named constraints.qsf which in a directory named Constraints /......

    Now from the .tcl file can I intimate the tool to take the constraints.qsf file from the Constraints directory ....

    Please let me know..

    Thanks,

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

    You may wish to consider breaking a bit from your traditional approach. What I have typically done is keep all the Quartus project files in one folder:

    my_project

    |

    ---rtl (source code)

    ---altera (.qsf,.qpf,.sdc)

    ---generated (files generated by Quartus during compilation), you can specify this in the project assignments

    Jake