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

Create successful ePaper yourself

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

Chapter 2: About UnimacrosVerilog Instantiation Template// FIFO_SYNC_MACRO: Synchronous First-In, First-Out (FIFO) RAM Buffer// <strong>Virtex</strong>-5, <strong>Virtex</strong>-6// <strong>Xilinx</strong> <strong>HDL</strong> <strong>Libraries</strong> <strong>Guide</strong>, version 11.2FIFO_SYNC_MACRO #(.DEVICE("VIRTEX5"), // Target Device: "VIRTEX5".ALMOST_EMPTY_OFFSET(9’h080), // Sets the almost empty threshold.ALMOST_FULL_OFFSET(9’h080), // Sets almost full threshold.DATA_WIDTH(0), // Valid values are 1-72 (37-72 only valid when FIFO_SIZE="36Kb").DEVICE("VIRTEX5"), // Target device: "VIRTEX5", "VIRTEX6".DO_REG(0), // Optional output register (0 or 1).FIFO_SIZE ("18Kb"), // Target BRAM: "18Kb" or "36Kb".SIM_MODE("SAFE") // Simulation: "SAFE" vs. "FAST", see "Synthesis and Simulation Design <strong>Guide</strong>" <strong>for</strong> details) FIFO_SYNC_MACRO_inst (.ALMOSTEMPTY(ALMOSTEMPTY), // Output almost empty.ALMOSTFULL(ALMOSTFULL), // Output almost full.DO(DO),// Output data.EMPTY(EMPTY),// Output empty.FULL(FULL),// Output full.RDCOUNT(RDCOUNT),// Output read count.RDERR(RDERR),// Output read error.WRCOUNT(WRCOUNT),// Output write count.WRERR(WRERR),// Output write error.CLK(CLK),// Input clock.DI(DI),// Input data.RDEN(RDEN),// Input read enable.RST(RST),// Input reset.WREN(WREN)// Input write enable);// End of FIFO_SYNC_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 53

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

Saved successfully!

Ooh no, something went wrong!