Return to previous page Advance to next page

Parameter/Attribute Conflicts

Since parameters and attributes can be applied to both instances and modules in your Verilog code, and attributes can also be specified in a constraints file, from time to time, conflicts will arise. To resolve these conflicts, XST uses the following rules of precedence.

  1. Whatever is specified on an instance (lower level) takes precedence over what is specified on a module (higher level).
  2. If a parameter and an attribute are specified on either the same instance or the same module, the parameter takes precedence, and XST issues a message warning of the conflict.
  3. An attribute specified in the XCF file will always take precedence over attributes or parameters specified in your Verilog code.

Note: When an attribute specified on an instance overrides a parameter specified on a module in XST, it is possible that your simulation tool may nevertheless use the parameter. This may cause the simulation results to not match the synthesis results.

 
Parameter on an Instance
Parameter on a Module
Attribute
on an Instance
Apply Parameter
(XST issues warning message)
Apply Attribute
(possible simulation mismatch)
Attribute
on a Module
Apply Parameter
Apply Parameter
(XST issues warning message)
Attribute in XCF
Apply Attribute
(XST issues warning message)
Apply Attribute

Use the following matrix as a guide in determining precedence.

Note: Security attributes on the module definition always have higher precedence than any other attribute or parameter.

Return to previous page Advance to next page

www.xilinx.com