7161 - Radiant: How are multiple lines of constraints handled in the device constraint editor?
Description:
When handling multiple constraint commands in a constraint files, there might be confusion in which settings are applied. This FAQ will give examples on how device constraint editor handles it. See examples below for ldc_set_sysconfig below:
1. Usecase: Only one line for ldc_set_sysconfig constraint.
In this case, there is no issue as you only have one line for constraint command ldc_set_sysconfig , the device constraint editor should handle it properly. See below:

2.Usecase: Multiple ldc_set_sysconfig constraint for different PARAMETERS. See below for example.

In here multiple ldc_set_sysconfig lines are used but HAVE DIFFERENT PARAMETERS. In this case, there will be no confusion as every line sets a different setting. The only setting affected will be the setting inside { }. See below for the reflected setting in the device constraint editor.
3. Usecase: Different lines with SAME PARAMETERS
See below for example:
Notice from the sample settings above that SLAVE_SPI_PORT has a setting DISABLE on line 1 and SERIAL on line 3. In this case, there might be confusion on user side on which settings will be applied. In scenarios like these, IT IS THE LATER line that is followed. In this example, the device constraint editor will have a SLAVE_SPI_PORT setting of SERIAL and the DISABLE setting from line 1 will not take effect.
IMPLICATIONS:
During multiple lines of same commands in the constraint files. User should make sure that there are no conflicting settings such as the same in usecase 3. Take note that no warning or error will occur if the command has valid format of arguments.
SOLUTION/GENERAL RECOMMENDATIONS:
- Always check the device constraint editor if it reflects the settings intended. To make sure that there are no conflicting parameter settings use Device Constraint editor when setting constraints.
- If editing the .pdc file manually, make sure to always check if the desired setting is reflected in the device constraint editor.