10.07.2015 Views

Xilinx Virtex-6 Libraries Guide for HDL Designs

Xilinx Virtex-6 Libraries Guide for HDL Designs

Xilinx Virtex-6 Libraries Guide for HDL Designs

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.

Chapter 4: About Design ElementsV<strong>HDL</strong> Instantiation TemplateUnless they already exist, copy the following two statements and paste them be<strong>for</strong>e the entity declaration.Library UNISIM;use UNISIM.vcomponents.all;-- CARRY4: Fast Carry Logic Component-- <strong>Virtex</strong>-5/6, Spartan-6-- <strong>Xilinx</strong> <strong>HDL</strong> <strong>Libraries</strong> <strong>Guide</strong>, version 11.2CARRY4_inst : CARRY4port map (CO => CO,-- 4-bit carry outO => O,-- 4-bit carry chain XOR data outCI => CI,-- 1-bit carry cascade inputCYINIT => CYINIT, -- 1-bit carry initializationDI => DI,-- 4-bit carry-MUX data inS => S-- 4-bit carry-MUX select input);-- End of CARRY4_inst instantiationVerilog Instantiation Template// CARRY4: Fast Carry Logic Component// <strong>Virtex</strong>-5, Virext-5, Spartan-6// <strong>Xilinx</strong> <strong>HDL</strong> <strong>Libraries</strong> <strong>Guide</strong>, version 11.2CARRY4 CARRY4_inst (.CO(CO),// 4-bit carry out.O(O),// 4-bit carry chain XOR data out.CI(CI),// 1-bit carry cascade input.CYINIT(CYINIT), // 1-bit carry initialization.DI(DI),// 4-bit carry-MUX data in.S(S)// 4-bit carry-MUX select input);// End of CARRY4_inst instantiationFor More In<strong>for</strong>mationSee the <strong>Virtex</strong>-6 FPGA User Documentation (User <strong>Guide</strong>s and Data Sheets).<strong>Virtex</strong>-6 <strong>Libraries</strong> <strong>Guide</strong> <strong>for</strong> <strong>HDL</strong> <strong>Designs</strong>UG623 (v 11.4) December 2, 2009 www.xilinx.com 113

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

Saved successfully!

Ooh no, something went wrong!