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.

HDL Coding Techniques<br />

Verilog<br />

Following is the Verilog code for a Division By Constant 2 divider.<br />

module divider(DI, DO);<br />

input [7:0] DI;<br />

output [7:0] DO;<br />

assign DO = DI / 2;<br />

endmodule<br />

Resource Sharing<br />

The goal of resource sharing (also known as folding) is to minimize<br />

the number of operators and the subsequent logic in the synthesized<br />

design. This optimization is based on the principle that two similar<br />

arithmetic resources may be implemented as one single arithmetic<br />

operator if they are never used at the same time. XST performs both<br />

resource sharing and, if required, reduces of the number of<br />

multiplexers that are created in the process.<br />

XST supports resource sharing for adders, subtractors, adders/<br />

subtractors and multipliers.<br />

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

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

Saved successfully!

Ooh no, something went wrong!