Some XST constraints can beapplied not only globally but also specifically tocertain modules,instances or signals within the RTL code. Followingisa general description of the constraints syntax applied in RTL code.
Constraints can be specified in VHDL code with VHDL attributes. It consists of two parts, attributes declaration and attributes specification.
attribute constraint_name : string;
attribute constraint_name of object_name :{component|label|entity|signal|variable} is constraint_value;
Examples:
Entity example1 is
port (......);
attributekeep_hierarchy string;
attributekeep_hierarchyofexample1 : entity isyes;
end example1;
architecturearch1 ofexample1 is
......
attribute keep string;
attributekeepofsignal1 :signal istrue;
attribute keep_hierarchy of component1 : component is yes;
begin
......
end arch1;
Verilog attributes are bounded by brackets and asterisks.
(* attribute_name = "attribute_value" *)
Examples:
(*keep_hierarchy = "yes"*)
module top (......);
......
(*keep = "true"*) reg [1:0] a_reg;
......
endmodule
For more informationabout any XST constraints syntax in RTL code, please refer to UG627/687-XST User Guide (Xilinx Answer 38931).
For more information of Constraints entry method in VHDL and Verilog code, please refer to "Chapter 2-Entry Strategies for Xilinx Constraints" in UG625-Constraints Guide.
Answer Number | 问答标题 | 问题版本 | 已解决问题的版本 |
---|---|---|---|
38927 | 面向 XST 的 Xilinx 解决方案中心 | N/A | N/A |
Answer Number | 问答标题 | 问题版本 | 已解决问题的版本 |
---|---|---|---|
39749 | Design Assistant for XST - Help with XST Options/Constraints/Attributes | N/A | N/A |
AR# 39649 | |
---|---|
日期 | 12/15/2012 |
状态 | Active |
Type | 综合文章 |