Download Xilinx Timing Constraints User Guide

Transcript
R
Specifying Timing Constraints in HDL
attribute black_box_tri_pins : string;
attribute black_box_tri_pins of BBDLHS : component is "PAD";
end package my_components;
Multiple pins on the same component can be specified as a list:
attribute black_box_tri_pins of bb1 : component is "tri,tri2,tri3";
To apply this directive to a port that is a bus, specify all the bits on the bus:
attribute black_box_tri_pins of bb1 : component is "bus1[7:0]";
syn_force_seq_prim
The syn_force_seq_prim directive iindicates that gated clocks should be fixed for this
black box, and the fix gated clocks algorithm can be applied to the associated primitive.
The syn_force_seq_prim directive is available only in Synplify Pro and Synplify
Premier.
To use the syn_force_seq_prim directive with a black box, you must also identify the
clock signal with the syn_isclock directive and the enable signal with the
syn_gatedclk_clock_en directive. The data type is Boolean.
syn_force_seq_prim Verilog Syntax
object /* synthesis syn_force_seq_prim = 1 */ ;
where
•
object is the module name of the black box
syn_force_seq_prim Verilog Syntax Example
module bbe (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" */;
input data_in,ena;
output data_out;
endmodule
syn_force_seq_prim VHDL Syntax
attribute syn_force_seq_prim of object: objectType is true ;
where
•
object is the entity name of the black box.
syn_force_seq_primVHDL Syntax Example
library ieee;
use ieee.std_logic_1164.all;
entity bbram is
port (addr: IN std_logic_VECTOR(6 downto 0);
din: IN std_logic_VECTOR(7 downto 0);
dout: OUT std_logic_VECTOR(7 downto 0);
clk: IN std_logic;
en: IN std_logic;
we: IN std_logic);
Timing Constraints User Guide
UG612 (v 11.1.1) April 29, 2009
www.xilinx.com
83