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 2: About Unimacros);LOAD => LOAD, -- 1-bit active high input load accumulator enableLOAD_DATA => LOAD_DATA, -- Load accumulator input data,-- width determined by WIDTH_P genericRST => RST -- 1-bit input active high reset-- End of MACC_MACRO_inst instantiationVerilog Instantiation Template// MACC_MACRO: Multiply Accumulate Function implemented in a DSP48E// <strong>Virtex</strong>-5, <strong>Virtex</strong>-6, Spartan-6// <strong>Xilinx</strong> <strong>HDL</strong> <strong>Libraries</strong> <strong>Guide</strong>, version 11.2MACC_MACRO #(.DEVICE("VIRTEX5"), // Target Device: "VIRTEX5", "VIRTEX6", "SPARTAN6".LATENCY(3), // Desired clock cycle latency, 1-4.WIDTH_A(25), // Multiplier A-input bus width, 1-25.WIDTH_B(18), // Multiplier B-input bus width, 1-18.WIDTH_P(48) // Accumulator output bus width, 1-48) MACC_MACRO (.P(P), // MACC output bus, width determined by WIDTH_P parameter.A(A), // MACC input A bus, width determined by WIDTH_A parameter.ADDSUB(ADDSUB), // 1-bit add/sub input, high selects add, low selects subtract.B(B), // MACC input B bus, width determined by WIDTH_B parameter.CARRYIN(CARRYIN), // 1-bit carry-in input to accumulator.CE(CE), // 1-bit active high input clock enable.CLK(CLK), // 1-bit positive edge clock input.LOAD(LOAD), // 1-bit active high input load accumulator enable.LOAD_DATA(LOAD_DATA), // Load accumulator input data, width determined by WIDTH_P parameter.RST(RST) // 1-bit input active high reset);// End of MACC_MACRO_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 71

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

Saved successfully!

Ooh no, something went wrong!