14.08.2013 Views

Xilinx CPLD Libraries Guide

Xilinx CPLD Libraries Guide

Xilinx CPLD Libraries Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Available Attributes<br />

Attribute Type Allowed Values Default Description<br />

About Design Elements<br />

INIT 1-Bit Binary 0 or 1 0 Sets the initial value of Q output after configuration<br />

and on GSR.<br />

VHDL Instantiation Template<br />

Unless they already exist, copy the following two statements and paste them before the entity declaration.<br />

Library UNISIM;<br />

use UNISIM.vcomponents.all;<br />

-- FDRSE: Single Data Rate D Flip-Flop with Synchronous Clear, Set and<br />

-- Clock Enable (posedge clk). All families.<br />

-- <strong>Xilinx</strong> HDL <strong>Libraries</strong> <strong>Guide</strong>, version 10.1.1<br />

FDRSE_inst : FDRSE<br />

generic map (<br />

INIT => ’0’) -- Initial value of register (’0’ or ’1’)<br />

port map (<br />

Q => Q, -- Data output<br />

C => C, -- Clock input<br />

CE => CE, -- Clock enable input<br />

D => D, -- Data input<br />

R => R, -- Synchronous reset input<br />

S => S -- Synchronous set input<br />

);<br />

-- End of FDRSE_inst instantiation<br />

Verilog Instantiation Template<br />

// FDRSE: Single Data Rate D Flip-Flop with Synchronous Clear, Set and<br />

// Clock Enable (posedge clk).<br />

// All families.<br />

// <strong>Xilinx</strong> HDL <strong>Libraries</strong> <strong>Guide</strong>, version 10.1.1<br />

FDRSE #(<br />

.INIT(1’b0) // Initial value of register (1’b0 or 1’b1)<br />

) FDRSE_inst (<br />

.Q(Q), // Data output<br />

.C(C), // Clock input<br />

.CE(CE), // Clock enable input<br />

.D(D), // Data input<br />

.R(R), // Synchronous reset input<br />

.S(S) // Synchronous set input<br />

);<br />

// End of FDRSE_inst instantiation<br />

For More Information<br />

• See the appropriate <strong>CPLD</strong> User <strong>Guide</strong>.<br />

• See the appropriate <strong>CPLD</strong> Data Sheets.<br />

<strong>CPLD</strong> <strong>Libraries</strong> <strong>Guide</strong><br />

362 www.xilinx.com ISE 10.1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!