Download Xilinx UG331 Spartan-3 Generation FPGA User Guide
Transcript
R Chapter 6: Using Look-Up Tables as Distributed RAM Library UNISIM; use UNISIM.vcomponents.all; -- <-----Cut code below this line and paste into architecture body----> -- RAM16X1S: 16 x 1 posedge write distributed -- Xilinx HDL Language Template => Distributed RAM RAM16X1S_inst : RAM16X1S generic map ( INIT => X"0000") port map ( O => O, -- RAM output A0 => A0, -- RAM address[0] input A1 => A1, -- RAM address[1] input A2 => A2, -- RAM address[2] input A3 => A3, -- RAM address[3] input D => D, -- RAM data input WCLK => WCLK, -- Write clock input WE => WE -- Write enable input ); -- End of RAM16X1S_inst instantiation Verilog Instantiation Template Example // RAM16X1S : In order to incorporate this function into the design, // Verilog : the following instance declaration needs to be placed // instance : in the body of the design code. The instance name // declaration : (RAM16X1S_inst) and/or the port declarations within // code : the parenthesis may be changed to properly reference and // : connect this function to the design. All inputs // : and outputs must be connected. // <-----Cut code below this line----> // RAM16X1S: 16 x 1 posedge write distributed (LUT) RAM // Xilinx HDL Language Template RAM16X1S #( .INIT(16'h0000) ) RAM16X1S_inst ( .O(O), // .A0(A0), // .A1(A1), // .A2(A2), // .A3(A3), // .D(D), // .WCLK(WCLK), // .WE(WE) // ); // Initial contents of RAM RAM output RAM address[0] input RAM address[1] input RAM address[2] input RAM address[3] input RAM data input Write clock input Write enable input // End of RAM16X1S_inst instantiation 222 www.xilinx.com Spartan-3 Generation FPGA User Guide UG331 (v1.3) February 14, 2008
Related documents
Xilinx UG331 Spartan-3 Generation FPGA User Guide
Xilinx UG331 Spartan-3 Generation FPGA User Guide
Autonomous Computing Systems - Digital Library and Archives
XuLA Board V1.0 User Manual
capítulo 2 modelado matemático del pendubot
TE0320 Series User Manual
MERRICK1 User Manual Issue – 1.0
UG070 Virtex-4 User Guide
Xilinx Virtex-4 User Guide
EFM32-G8XX-DK User Manual - Digi-Key