Download Xilinx Timing Constraints User Guide
Transcript
R Specifying Timing Constraints in HDL attribute syn_black_box of bbram: component is true; attribute syn_force_seq_prim : boolean attribute syn_force_seq_prim of bbram: component is true; attribute syn_isclock : boolean; attribute syn_isclock of myclk: signal is true; attribute syn_gatedclk_clock_en : string; attribute syn_gatedclk_clock_en of bbram: signal is "ena //Other code syn_gatedclk_clock_en_polarity The syn_gatedclk_clock_en_polarity directive indicates the polarity of the clock enable port on a black box. This allows the synthesis tool to apply the algorithm to fix gated clocks. If you do not set any polarity with this attribute, the synthesis tool assumes a positive polarity by default. syn_gatedclk_clock_en_polarity Verilog Syntax object /* synthesis syn_gatedclk_clock_en_polarity = 1 | 0 */ ; where • object is the module name of the black box. The value can be 1 or 0. A value of 1 indicates positive polarity of the enable signal (active high) and a value of 0 indicates negative polarity (active low). If the attribute is not defined, the synthesis tool assumes a positive polarity by default. syn_gatedclk_clock_en_polarity Verilog Syntax Example module bbe1 (ena, clk, data_in, data_out) /* synthesis syn_black_box */ /* synthesis syn_force_seq_prim=1 */; input clk /* synthesis syn_isclock = 1 */ /* synthesis syn_gatedclk_clock_en="ena" */ /* synthesis syn_gatedclk_clock_en_polarity = 0 */; input data_in,ena; output data_out; endmodule syn_gatedclk_clock_en_polarity VHDL Syntax attribute syn_gatedclk_clock_en_polarity of object: objectType is true | false; syn_gatedclk_clock_en_polarity VHDL Syntax Example library ieee; use ieee.std_logic_1164.all; use ieee.std_logic_arith.all; use ieee.std_logic_unsigned.all; entity bbe1 is port (ena : in std_logic; clk : in std_logic; data_in : in std_logic; data_out : out std_logic ); attribute syn_black_box : boolean; attribute syn_force_seq_prim : boolean; attribute syn_gatedclk_clock_en_polarity : boolean; Timing Constraints User Guide UG612 (v 11.1.1) April 29, 2009 www.xilinx.com 85