Examples of Assignment Syntax and Formatting in the Quartus® Prime Settings File

If you are converting assignments created with the Quartus® Prime software version 3.0 or earlier and you receive an error that states that you must correct any assignment errors, the following table provides a guide for the proper BNF format to use for the assignment.

Format

Example

Equivalent Quartus® Prime Settings File (.qsf) Command

<keyword>=<setting>

MAX7000_ENABLE_JTAG_BST_SUPPORT = ON

set_global_assignment -name MAX7000_ENABLE_JTAG_BST_SUPPORT ON

|<name> : <keyword>=<setting>

"auto_max:auto" : LOCATION = Pin_41 chiptrip : RESERVE_PIN = "AS INPUT TRI-STATED"

set_location_assignment PIN_41 -to "auto_max:auto" set_instance_assignment -name RESERVE_PIN "AS INPUT TRI-STATED" -to chiptrip

|<source name> -> |< destination name> : <keyword>=<setting>

accel -> "auto_max:auto" : MULTICYCLE = 2;

set_instance_assignment -name MULTICYCLE 2 -from accel -to "automax:auto"

For point-to-point assignments, any setting that contains one or more of the following characters requires double quotation marks around the entire setting name in order for the setting to be valid.

Illegal Characters

Examples

tab character

space character

DEVICE="R1664RC540-3"

STATE_MACHINE_PROCESSING="ONE-HOT"

RESERVE_PIN="AS INPUT TRI-STATED"

REVISION_CONTROL_DIR = "d:\qdesigns\fir_filter"

{

}

(

)

!

;

,

=

<

>

-

"

\

Only one statement of the format <keyword>=<setting> is permitted for any one keyword.

In contrast, you can use multiple statements of the format <name> : <keyword>=<setting>, but, you cannot repeat the same |<name> :.

You can use multiple statements of the format |<source name> -> |< destination name> : <keyword>=<setting>, but, you cannot repeat the same |<source name> -> |<destination name> :.