05.07.2013 Views

Xilinx Synthesis Technology User Guide

Xilinx Synthesis Technology User Guide

Xilinx Synthesis Technology User Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

XST <strong>User</strong> <strong>Guide</strong><br />

Verilog example:<br />

module testkeep (in1, in2, out1);<br />

input in1;<br />

input in2;<br />

output out1;<br />

wire aux1;<br />

wire aux2;<br />

// synthesis attribute keep of aux1 is "true"<br />

// synthesis attribute keep of aux2 is "true"<br />

assign aux1 = in1;<br />

assign aux2 = in2;<br />

assign out1 = aux1 & aux2;<br />

endmodule<br />

The KEEP constraint can also be applied through the separate<br />

synthesis constraint file:<br />

XCF Example Syntax:<br />

BEGIN MODEL testkeep<br />

NET aux1 KEEP=true;<br />

END;<br />

Example of Old Syntax:<br />

attribute keep of aux1 : signal is "true";<br />

These are the only two ways of preserving a signal/net in an HDL<br />

design and preventing optimization on the signal or net during<br />

synthesis.<br />

5-54 <strong>Xilinx</strong> Development System

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

Saved successfully!

Ooh no, something went wrong!