| 1 |
2 |
olivier.gi |
/*******************************************************************************
|
| 2 |
|
|
* This file is owned and controlled by Xilinx and must be used *
|
| 3 |
|
|
* solely for design, simulation, implementation and creation of *
|
| 4 |
|
|
* design files limited to Xilinx devices or technologies. Use *
|
| 5 |
|
|
* with non-Xilinx devices or technologies is expressly prohibited *
|
| 6 |
|
|
* and immediately terminates your license. *
|
| 7 |
|
|
* *
|
| 8 |
|
|
* XILINX IS PROVIDING THIS DESIGN, CODE, OR INFORMATION "AS IS" *
|
| 9 |
|
|
* SOLELY FOR USE IN DEVELOPING PROGRAMS AND SOLUTIONS FOR *
|
| 10 |
|
|
* XILINX DEVICES. BY PROVIDING THIS DESIGN, CODE, OR INFORMATION *
|
| 11 |
|
|
* AS ONE POSSIBLE IMPLEMENTATION OF THIS FEATURE, APPLICATION *
|
| 12 |
|
|
* OR STANDARD, XILINX IS MAKING NO REPRESENTATION THAT THIS *
|
| 13 |
|
|
* IMPLEMENTATION IS FREE FROM ANY CLAIMS OF INFRINGEMENT, *
|
| 14 |
|
|
* AND YOU ARE RESPONSIBLE FOR OBTAINING ANY RIGHTS YOU MAY REQUIRE *
|
| 15 |
|
|
* FOR YOUR IMPLEMENTATION. XILINX EXPRESSLY DISCLAIMS ANY *
|
| 16 |
|
|
* WARRANTY WHATSOEVER WITH RESPECT TO THE ADEQUACY OF THE *
|
| 17 |
|
|
* IMPLEMENTATION, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OR *
|
| 18 |
|
|
* REPRESENTATIONS THAT THIS IMPLEMENTATION IS FREE FROM CLAIMS OF *
|
| 19 |
|
|
* INFRINGEMENT, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS *
|
| 20 |
|
|
* FOR A PARTICULAR PURPOSE. *
|
| 21 |
|
|
* *
|
| 22 |
|
|
* Xilinx products are not intended for use in life support *
|
| 23 |
|
|
* appliances, devices, or systems. Use in such applications are *
|
| 24 |
|
|
* expressly prohibited. *
|
| 25 |
|
|
* *
|
| 26 |
|
|
* (c) Copyright 1995-2007 Xilinx, Inc. *
|
| 27 |
|
|
* All rights reserved. *
|
| 28 |
|
|
*******************************************************************************/
|
| 29 |
|
|
// The synthesis directives "translate_off/translate_on" specified below are
|
| 30 |
|
|
// supported by Xilinx, Mentor Graphics and Synplicity synthesis
|
| 31 |
|
|
// tools. Ensure they are correct for your synthesis tool(s).
|
| 32 |
|
|
|
| 33 |
|
|
// You must compile the wrapper file rom_8x2k_lo.v when simulating
|
| 34 |
|
|
// the core, rom_8x2k_lo. When compiling the wrapper file, be sure to
|
| 35 |
|
|
// reference the XilinxCoreLib Verilog simulation library. For detailed
|
| 36 |
|
|
// instructions, please refer to the "CORE Generator Help".
|
| 37 |
|
|
|
| 38 |
|
|
`timescale 1ns/1ps
|
| 39 |
|
|
|
| 40 |
|
|
module rom_8x2k_lo(
|
| 41 |
|
|
addr,
|
| 42 |
|
|
clk,
|
| 43 |
|
|
din,
|
| 44 |
|
|
dout,
|
| 45 |
|
|
en,
|
| 46 |
|
|
we);
|
| 47 |
|
|
|
| 48 |
|
|
|
| 49 |
|
|
input [10 : 0] addr;
|
| 50 |
|
|
input clk;
|
| 51 |
|
|
input [7 : 0] din;
|
| 52 |
|
|
output [7 : 0] dout;
|
| 53 |
|
|
input en;
|
| 54 |
|
|
input we;
|
| 55 |
|
|
|
| 56 |
|
|
// synthesis translate_off
|
| 57 |
|
|
|
| 58 |
|
|
BLKMEMSP_V6_2 #(
|
| 59 |
|
|
.c_addr_width(11),
|
| 60 |
|
|
.c_default_data("0"),
|
| 61 |
|
|
.c_depth(2048),
|
| 62 |
|
|
.c_enable_rlocs(0),
|
| 63 |
|
|
.c_has_default_data(1),
|
| 64 |
|
|
.c_has_din(1),
|
| 65 |
|
|
.c_has_en(1),
|
| 66 |
|
|
.c_has_limit_data_pitch(0),
|
| 67 |
|
|
.c_has_nd(0),
|
| 68 |
|
|
.c_has_rdy(0),
|
| 69 |
|
|
.c_has_rfd(0),
|
| 70 |
|
|
.c_has_sinit(0),
|
| 71 |
|
|
.c_has_we(1),
|
| 72 |
|
|
.c_limit_data_pitch(18),
|
| 73 |
|
|
.c_mem_init_file("mif_file_16_1"),
|
| 74 |
|
|
.c_pipe_stages(0),
|
| 75 |
|
|
.c_reg_inputs(0),
|
| 76 |
|
|
.c_sinit_value("0"),
|
| 77 |
|
|
.c_width(8),
|
| 78 |
|
|
.c_write_mode(0),
|
| 79 |
|
|
.c_ybottom_addr("0"),
|
| 80 |
|
|
.c_yclk_is_rising(1),
|
| 81 |
|
|
.c_yen_is_high(0),
|
| 82 |
|
|
.c_yhierarchy("hierarchy1"),
|
| 83 |
|
|
.c_ymake_bmm(0),
|
| 84 |
|
|
.c_yprimitive_type("16kx1"),
|
| 85 |
|
|
.c_ysinit_is_high(1),
|
| 86 |
|
|
.c_ytop_addr("1024"),
|
| 87 |
|
|
.c_yuse_single_primitive(0),
|
| 88 |
|
|
.c_ywe_is_high(0),
|
| 89 |
|
|
.c_yydisable_warnings(1))
|
| 90 |
|
|
inst (
|
| 91 |
|
|
.ADDR(addr),
|
| 92 |
|
|
.CLK(clk),
|
| 93 |
|
|
.DIN(din),
|
| 94 |
|
|
.DOUT(dout),
|
| 95 |
|
|
.EN(en),
|
| 96 |
|
|
.WE(we),
|
| 97 |
|
|
.ND(),
|
| 98 |
|
|
.RFD(),
|
| 99 |
|
|
.RDY(),
|
| 100 |
|
|
.SINIT());
|
| 101 |
|
|
|
| 102 |
|
|
|
| 103 |
|
|
// synthesis translate_on
|
| 104 |
|
|
|
| 105 |
|
|
// XST black box declaration
|
| 106 |
|
|
// box_type "black_box"
|
| 107 |
|
|
// synthesis attribute box_type of rom_8x2k_lo is "black_box"
|
| 108 |
|
|
|
| 109 |
|
|
endmodule
|
| 110 |
|
|
|