05.07.2013 Views

Xilinx Synthesis Technology User Guide

Xilinx Synthesis Technology User Guide

Xilinx Synthesis Technology User 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.

neither Full nor Parallel<br />

module notfull_notparallel<br />

(sel1, sel2, i1, i2, o1);<br />

input [1:0] sel1, sel2;<br />

input [1:0] i1, i2;<br />

output [1:0] o1;<br />

reg [1:0] o1;<br />

always @(sel1 or sel2)<br />

begin<br />

case (2'b00)<br />

sel1: o1 = i1;<br />

sel2: o1 = i2;<br />

endcase<br />

end<br />

endmodule<br />

HDL Coding Techniques<br />

XST automatically determines the characteristics of the Case<br />

statements and generates logic using multiplexers, priority encoders<br />

and latches that best implement the exact behavior of the Case<br />

statement.<br />

This characterization of the Case statements can be guided or<br />

modified by using the Case Implementation Style parameter. Please<br />

refer to the “Design Constraints” chapter for more details. Accepted<br />

values for this parameter are default, full, parallel and<br />

full-parallel.<br />

• If the default is used, XST will implement the exact behavior of<br />

the Case statements.<br />

• If full is used, XST will consider that Case statements are<br />

complete and will avoid latch creation.<br />

• If parallel is used, XST will consider that the branches cannot<br />

occur in parallel and will not use a priority encoder.<br />

• If full-parallel is used, XST will consider that Case statements are<br />

complete and that the branches cannot occur in parallel, therefore<br />

saving latches and priority encoders.<br />

XST <strong>User</strong> <strong>Guide</strong> 2-75

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

Saved successfully!

Ooh no, something went wrong!