Quartus® Prime Pro Edition User Guide: Platform Designer

ID 683609
Date 9/30/2024
Public
Document Table of Contents

1.6.3.2.2. Defining Preset Pin Assignments in a Pin File

Alternatively, you can specify the pin assignments in a Pin Constraints File (.tcl), which can be more efficient for projects with many ports. You specify this .tcl file as the Pin Constraint File on the Pin Assignments tab, and then click Load Pin. The Pin Location and IO Standard update per the loaded pin assignments.

Figure 46. Loading Pin Assignments from Tcl File


The following shows the contents of an example Pin Constraints File (.tcl):

set_instance_assignment -to "led_export[0]" -name IO_STANDARD "1.2 V" 
set_location_assignment -to "led_export[0]" "PIN_B31" 
set_instance_assignment -to "led_export[1]" -name IO_STANDARD "1.2 V" 
set_location_assignment -to "led_export[1]" "PIN_D31" 
set_instance_assignment -to "led_export[2]" -name IO_STANDARD "1.2 V" 
set_location_assignment -to "led_export[2]" "PIN_A30" 
set_instance_assignment -to "led_export[3]" -name IO_STANDARD "1.2 V" 
set_location_assignment -to "led_export[3]" "PIN_C30"