1 |
2 |
tobil |
/*******************************************************************************
|
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-2009 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 dc_ram_blk.v when simulating
|
34 |
|
|
// the core, dc_ram_blk. 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 dc_ram_sub(
|
41 |
|
|
clka,
|
42 |
|
|
ena,
|
43 |
|
|
wea,
|
44 |
|
|
addra,
|
45 |
|
|
dina,
|
46 |
|
|
clkb,
|
47 |
|
|
addrb,
|
48 |
|
|
doutb);
|
49 |
|
|
|
50 |
|
|
|
51 |
|
|
input clka;
|
52 |
|
|
input ena;
|
53 |
|
|
input [3 : 0] wea;
|
54 |
|
|
input [10 : 0] addra;
|
55 |
|
|
input [31 : 0] dina;
|
56 |
|
|
input clkb;
|
57 |
|
|
input [10 : 0] addrb;
|
58 |
|
|
output [31 : 0] doutb;
|
59 |
|
|
|
60 |
|
|
wire ena_wire;
|
61 |
|
|
wire [3 : 0] wea_wire;
|
62 |
|
|
wire [10 : 0] addra_wire;
|
63 |
|
|
wire [31 : 0] dina_wire;
|
64 |
|
|
wire [10 : 0] addrb_wire;
|
65 |
|
|
|
66 |
|
|
assign ena_wire = ena;
|
67 |
|
|
assign wea_wire = wea;
|
68 |
|
|
assign addra_wire = addra;
|
69 |
|
|
assign dina_wire = dina;
|
70 |
|
|
assign addrb_wire = addrb;
|
71 |
|
|
|
72 |
|
|
dc_ram_blk dc_ram_blki(
|
73 |
|
|
.clka(clka),
|
74 |
|
|
.ena(ena_wire),
|
75 |
|
|
.wea(wea_wire),
|
76 |
|
|
.addra(addra_wire),
|
77 |
|
|
.dina(dina_wire),
|
78 |
|
|
.clkb(clkb),
|
79 |
|
|
.addrb(addrb_wire),
|
80 |
|
|
.doutb(doutb));
|
81 |
|
|
|
82 |
|
|
endmodule
|
83 |
|
|
|