Forum Discussion

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

Constraining pin assignments from.pin file

I've compiled a design for a Max II CPLD using Quartus 12.1 and would like to constrain the pinout using the last pin assignments that Quartus automatically assigned during the compile and that are indicated in the .pin file. Is there a way to import the .pin file pin assignments or some other way to constrain the pins without having to manually constrain them in Pin Planner or edit the .qsf file? Seems like a fairly simple problem, but I'm not finding a simple solution.

Thanks,

GMM

3 Replies

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

    You can generate a TCL file that sets the project up as it is (Project -> Generate TCL file for Project).

    This contains the set_location_assignment lines you need to cut and paste into the *.qsf.

    Not completely automated but pretty quick.

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

    The pin assignment editor can import a CSV table of assignments, but you'll need to do some editing to convert the .pin file into a .csv.

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

    Ok, thanks. I was able to do what I wanted by selecting Assignments > Back-Annotate Assignments. Then Selected Pin & device assignments in popup & click OK. This back-annotated pin assignments from .pin file to .qsf file (could only see .qsf file assignments after exiting Quartus).

    GMM