1 |
2 |
tak.sugawa |
// megafunction wizard: %RAM: 2-PORT%
|
2 |
|
|
// GENERATION: STANDARD
|
3 |
|
|
// VERSION: WM1.0
|
4 |
|
|
// MODULE: altsyncram
|
5 |
|
|
|
6 |
|
|
// ============================================================
|
7 |
|
|
// File Name: ram4092x8_0.v
|
8 |
|
|
// Megafunction Name(s):
|
9 |
|
|
// altsyncram
|
10 |
|
|
// ============================================================
|
11 |
|
|
// ************************************************************
|
12 |
|
|
// THIS IS A WIZARD-GENERATED FILE. DO NOT EDIT THIS FILE!
|
13 |
|
|
//
|
14 |
|
|
// 4.2 Build 178 01/19/2005 SP 1 SJ Web Edition
|
15 |
|
|
// ************************************************************
|
16 |
|
|
|
17 |
|
|
|
18 |
|
|
//Copyright (C) 1991-2005 Altera Corporation
|
19 |
|
|
//Any megafunction design, and related netlist (encrypted or decrypted),
|
20 |
|
|
//support information, device programming or simulation file, and any other
|
21 |
|
|
//associated documentation or information provided by Altera or a partner
|
22 |
|
|
//under Altera's Megafunction Partnership Program may be used only
|
23 |
|
|
//to program PLD devices (but not masked PLD devices) from Altera. Any
|
24 |
|
|
//other use of such megafunction design, netlist, support information,
|
25 |
|
|
//device programming or simulation file, or any other related documentation
|
26 |
|
|
//or information is prohibited for any other purpose, including, but not
|
27 |
|
|
//limited to modification, reverse engineering, de-compiling, or use with
|
28 |
|
|
//any other silicon devices, unless such use is explicitly licensed under
|
29 |
|
|
//a separate agreement with Altera or a megafunction partner. Title to the
|
30 |
|
|
//intellectual property, including patents, copyrights, trademarks, trade
|
31 |
|
|
//secrets, or maskworks, embodied in any such megafunction design, netlist,
|
32 |
|
|
//support information, device programming or simulation file, or any other
|
33 |
|
|
//related documentation or information provided by Altera or a megafunction
|
34 |
|
|
//partner, remains with Altera, the megafunction partner, or their respective
|
35 |
|
|
//licensors. No other licenses, including any licenses needed under any third
|
36 |
|
|
//party's intellectual property, are provided herein.
|
37 |
|
|
|
38 |
|
|
|
39 |
|
|
// synopsys translate_off
|
40 |
|
|
`timescale 1 ps / 1 ps
|
41 |
|
|
// synopsys translate_on
|
42 |
|
|
module ram4092x8_0 (
|
43 |
|
|
data_a,
|
44 |
|
|
wren_a,
|
45 |
|
|
address_a,
|
46 |
|
|
data_b,
|
47 |
|
|
address_b,
|
48 |
|
|
wren_b,
|
49 |
|
|
clock,
|
50 |
|
|
q_a,
|
51 |
|
|
q_b);
|
52 |
|
|
|
53 |
|
|
input [7:0] data_a;
|
54 |
|
|
input wren_a;
|
55 |
|
|
input [11:0] address_a;
|
56 |
|
|
input [7:0] data_b;
|
57 |
|
|
input [11:0] address_b;
|
58 |
|
|
input wren_b;
|
59 |
|
|
input clock;
|
60 |
|
|
output [7:0] q_a;
|
61 |
|
|
output [7:0] q_b;
|
62 |
|
|
|
63 |
|
|
wire [7:0] sub_wire0;
|
64 |
|
|
wire [7:0] sub_wire1;
|
65 |
|
|
wire [7:0] q_a = sub_wire0[7:0];
|
66 |
|
|
wire [7:0] q_b = sub_wire1[7:0];
|
67 |
|
|
|
68 |
|
|
altsyncram altsyncram_component (
|
69 |
|
|
.wren_a (wren_a),
|
70 |
|
|
.clock0 (clock),
|
71 |
|
|
.wren_b (wren_b),
|
72 |
|
|
.address_a (address_a),
|
73 |
|
|
.address_b (address_b),
|
74 |
|
|
.data_a (data_a),
|
75 |
|
|
.data_b (data_b),
|
76 |
|
|
.q_a (sub_wire0),
|
77 |
|
|
.q_b (sub_wire1)
|
78 |
|
|
// synopsys translate_off
|
79 |
|
|
,
|
80 |
|
|
.aclr0 (),
|
81 |
|
|
.aclr1 (),
|
82 |
|
|
.addressstall_a (),
|
83 |
|
|
.addressstall_b (),
|
84 |
|
|
.byteena_a (),
|
85 |
|
|
.byteena_b (),
|
86 |
|
|
.clock1 (),
|
87 |
|
|
.clocken0 (),
|
88 |
|
|
.clocken1 (),
|
89 |
|
|
.rden_b ()
|
90 |
|
|
// synopsys translate_on
|
91 |
|
|
);
|
92 |
|
|
defparam
|
93 |
|
|
altsyncram_component.intended_device_family = "Stratix II",
|
94 |
|
|
altsyncram_component.operation_mode = "BIDIR_DUAL_PORT",
|
95 |
|
|
altsyncram_component.width_a = 8,
|
96 |
|
|
altsyncram_component.widthad_a = 12,
|
97 |
|
|
altsyncram_component.numwords_a = 4096,
|
98 |
|
|
altsyncram_component.width_b = 8,
|
99 |
|
|
altsyncram_component.widthad_b = 12,
|
100 |
|
|
altsyncram_component.numwords_b = 4096,
|
101 |
|
|
altsyncram_component.lpm_type = "altsyncram",
|
102 |
|
|
altsyncram_component.width_byteena_a = 1,
|
103 |
|
|
altsyncram_component.width_byteena_b = 1,
|
104 |
|
|
altsyncram_component.outdata_reg_a = "UNREGISTERED",
|
105 |
|
|
altsyncram_component.outdata_aclr_a = "NONE",
|
106 |
|
|
altsyncram_component.outdata_reg_b = "UNREGISTERED",
|
107 |
|
|
altsyncram_component.indata_reg_b = "CLOCK0",
|
108 |
|
|
altsyncram_component.address_reg_b = "CLOCK0",
|
109 |
|
|
altsyncram_component.wrcontrol_wraddress_reg_b = "CLOCK0",
|
110 |
|
|
altsyncram_component.outdata_aclr_b = "NONE",
|
111 |
|
|
altsyncram_component.clock_enable_input_a = "BYPASS",
|
112 |
|
|
altsyncram_component.clock_enable_output_a = "BYPASS",
|
113 |
|
|
altsyncram_component.clock_enable_input_b = "BYPASS",
|
114 |
|
|
altsyncram_component.clock_enable_output_b = "BYPASS",
|
115 |
|
|
altsyncram_component.read_during_write_mode_mixed_ports = "DONT_CARE",
|
116 |
|
|
`ifdef NO_PLI
|
117 |
|
|
altsyncram_component.init_file = "code0.rif"
|
118 |
|
|
`else
|
119 |
|
|
altsyncram_component.init_file = "code0.hex"
|
120 |
|
|
`endif
|
121 |
|
|
;
|
122 |
|
|
|
123 |
|
|
|
124 |
|
|
endmodule
|
125 |
|
|
|
126 |
|
|
// ============================================================
|
127 |
|
|
// CNX file retrieval info
|
128 |
|
|
// ============================================================
|
129 |
|
|
// Retrieval info: PRIVATE: MEM_IN_BITS NUMERIC "0"
|
130 |
|
|
// Retrieval info: PRIVATE: OPERATION_MODE NUMERIC "3"
|
131 |
|
|
// Retrieval info: PRIVATE: UseDPRAM NUMERIC "1"
|
132 |
|
|
// Retrieval info: PRIVATE: VarWidth NUMERIC "0"
|
133 |
|
|
// Retrieval info: PRIVATE: WIDTH_WRITE_A NUMERIC "8"
|
134 |
|
|
// Retrieval info: PRIVATE: WIDTH_WRITE_B NUMERIC "8"
|
135 |
|
|
// Retrieval info: PRIVATE: WIDTH_READ_A NUMERIC "8"
|
136 |
|
|
// Retrieval info: PRIVATE: WIDTH_READ_B NUMERIC "8"
|
137 |
|
|
// Retrieval info: PRIVATE: MEMSIZE NUMERIC "32768"
|
138 |
|
|
// Retrieval info: PRIVATE: Clock NUMERIC "0"
|
139 |
|
|
// Retrieval info: PRIVATE: rden NUMERIC "0"
|
140 |
|
|
// Retrieval info: PRIVATE: BYTE_ENABLE_A NUMERIC "0"
|
141 |
|
|
// Retrieval info: PRIVATE: BYTE_ENABLE_B NUMERIC "0"
|
142 |
|
|
// Retrieval info: PRIVATE: BYTE_SIZE NUMERIC "8"
|
143 |
|
|
// Retrieval info: PRIVATE: Clock_A NUMERIC "0"
|
144 |
|
|
// Retrieval info: PRIVATE: Clock_B NUMERIC "0"
|
145 |
|
|
// Retrieval info: PRIVATE: REGdata NUMERIC "1"
|
146 |
|
|
// Retrieval info: PRIVATE: REGwraddress NUMERIC "1"
|
147 |
|
|
// Retrieval info: PRIVATE: REGwren NUMERIC "1"
|
148 |
|
|
// Retrieval info: PRIVATE: REGrdaddress NUMERIC "0"
|
149 |
|
|
// Retrieval info: PRIVATE: REGrren NUMERIC "0"
|
150 |
|
|
// Retrieval info: PRIVATE: REGq NUMERIC "0"
|
151 |
|
|
// Retrieval info: PRIVATE: INDATA_REG_B NUMERIC "1"
|
152 |
|
|
// Retrieval info: PRIVATE: WRADDR_REG_B NUMERIC "1"
|
153 |
|
|
// Retrieval info: PRIVATE: OUTDATA_REG_B NUMERIC "0"
|
154 |
|
|
// Retrieval info: PRIVATE: CLRdata NUMERIC "0"
|
155 |
|
|
// Retrieval info: PRIVATE: CLRwren NUMERIC "0"
|
156 |
|
|
// Retrieval info: PRIVATE: CLRwraddress NUMERIC "0"
|
157 |
|
|
// Retrieval info: PRIVATE: CLRrdaddress NUMERIC "0"
|
158 |
|
|
// Retrieval info: PRIVATE: CLRrren NUMERIC "0"
|
159 |
|
|
// Retrieval info: PRIVATE: CLRq NUMERIC "0"
|
160 |
|
|
// Retrieval info: PRIVATE: BYTEENA_ACLR_A NUMERIC "0"
|
161 |
|
|
// Retrieval info: PRIVATE: INDATA_ACLR_B NUMERIC "0"
|
162 |
|
|
// Retrieval info: PRIVATE: WRCTRL_ACLR_B NUMERIC "0"
|
163 |
|
|
// Retrieval info: PRIVATE: WRADDR_ACLR_B NUMERIC "0"
|
164 |
|
|
// Retrieval info: PRIVATE: OUTDATA_ACLR_B NUMERIC "0"
|
165 |
|
|
// Retrieval info: PRIVATE: BYTEENA_ACLR_B NUMERIC "0"
|
166 |
|
|
// Retrieval info: PRIVATE: enable NUMERIC "0"
|
167 |
|
|
// Retrieval info: PRIVATE: CLOCK_ENABLE_INPUT_A NUMERIC "0"
|
168 |
|
|
// Retrieval info: PRIVATE: CLOCK_ENABLE_OUTPUT_A NUMERIC "0"
|
169 |
|
|
// Retrieval info: PRIVATE: CLOCK_ENABLE_INPUT_B NUMERIC "0"
|
170 |
|
|
// Retrieval info: PRIVATE: CLOCK_ENABLE_OUTPUT_B NUMERIC "0"
|
171 |
|
|
// Retrieval info: PRIVATE: ADDRESSSTALL_A NUMERIC "0"
|
172 |
|
|
// Retrieval info: PRIVATE: ADDRESSSTALL_B NUMERIC "0"
|
173 |
|
|
// Retrieval info: PRIVATE: READ_DURING_WRITE_MODE_MIXED_PORTS NUMERIC "2"
|
174 |
|
|
// Retrieval info: PRIVATE: BlankMemory NUMERIC "0"
|
175 |
|
|
// Retrieval info: PRIVATE: MIFfilename STRING "code0.hex"
|
176 |
|
|
// Retrieval info: PRIVATE: UseLCs NUMERIC "0"
|
177 |
|
|
// Retrieval info: PRIVATE: RAM_BLOCK_TYPE NUMERIC "0"
|
178 |
|
|
// Retrieval info: PRIVATE: MAXIMUM_DEPTH NUMERIC "0"
|
179 |
|
|
// Retrieval info: PRIVATE: INIT_FILE_LAYOUT STRING "PORT_A"
|
180 |
|
|
// Retrieval info: PRIVATE: JTAG_ENABLED NUMERIC "0"
|
181 |
|
|
// Retrieval info: PRIVATE: JTAG_ID STRING "NONE"
|
182 |
|
|
// Retrieval info: PRIVATE: INTENDED_DEVICE_FAMILY STRING "Stratix II"
|
183 |
|
|
// Retrieval info: CONSTANT: INTENDED_DEVICE_FAMILY STRING "Stratix II"
|
184 |
|
|
// Retrieval info: CONSTANT: OPERATION_MODE STRING "BIDIR_DUAL_PORT"
|
185 |
|
|
// Retrieval info: CONSTANT: WIDTH_A NUMERIC "8"
|
186 |
|
|
// Retrieval info: CONSTANT: WIDTHAD_A NUMERIC "12"
|
187 |
|
|
// Retrieval info: CONSTANT: NUMWORDS_A NUMERIC "4096"
|
188 |
|
|
// Retrieval info: CONSTANT: WIDTH_B NUMERIC "8"
|
189 |
|
|
// Retrieval info: CONSTANT: WIDTHAD_B NUMERIC "12"
|
190 |
|
|
// Retrieval info: CONSTANT: NUMWORDS_B NUMERIC "4096"
|
191 |
|
|
// Retrieval info: CONSTANT: LPM_TYPE STRING "altsyncram"
|
192 |
|
|
// Retrieval info: CONSTANT: WIDTH_BYTEENA_A NUMERIC "1"
|
193 |
|
|
// Retrieval info: CONSTANT: WIDTH_BYTEENA_B NUMERIC "1"
|
194 |
|
|
// Retrieval info: CONSTANT: OUTDATA_REG_A STRING "UNREGISTERED"
|
195 |
|
|
// Retrieval info: CONSTANT: OUTDATA_ACLR_A STRING "NONE"
|
196 |
|
|
// Retrieval info: CONSTANT: OUTDATA_REG_B STRING "UNREGISTERED"
|
197 |
|
|
// Retrieval info: CONSTANT: INDATA_REG_B STRING "CLOCK0"
|
198 |
|
|
// Retrieval info: CONSTANT: ADDRESS_REG_B STRING "CLOCK0"
|
199 |
|
|
// Retrieval info: CONSTANT: WRCONTROL_WRADDRESS_REG_B STRING "CLOCK0"
|
200 |
|
|
// Retrieval info: CONSTANT: OUTDATA_ACLR_B STRING "NONE"
|
201 |
|
|
// Retrieval info: CONSTANT: CLOCK_ENABLE_INPUT_A STRING "BYPASS"
|
202 |
|
|
// Retrieval info: CONSTANT: CLOCK_ENABLE_OUTPUT_A STRING "BYPASS"
|
203 |
|
|
// Retrieval info: CONSTANT: CLOCK_ENABLE_INPUT_B STRING "BYPASS"
|
204 |
|
|
// Retrieval info: CONSTANT: CLOCK_ENABLE_OUTPUT_B STRING "BYPASS"
|
205 |
|
|
// Retrieval info: CONSTANT: READ_DURING_WRITE_MODE_MIXED_PORTS STRING "DONT_CARE"
|
206 |
|
|
// Retrieval info: CONSTANT: INIT_FILE STRING "code0.hex"
|
207 |
|
|
// Retrieval info: USED_PORT: data_a 0 0 8 0 INPUT NODEFVAL data_a[7..0]
|
208 |
|
|
// Retrieval info: USED_PORT: wren_a 0 0 0 0 INPUT VCC wren_a
|
209 |
|
|
// Retrieval info: USED_PORT: q_a 0 0 8 0 OUTPUT NODEFVAL q_a[7..0]
|
210 |
|
|
// Retrieval info: USED_PORT: q_b 0 0 8 0 OUTPUT NODEFVAL q_b[7..0]
|
211 |
|
|
// Retrieval info: USED_PORT: address_a 0 0 12 0 INPUT NODEFVAL address_a[11..0]
|
212 |
|
|
// Retrieval info: USED_PORT: data_b 0 0 8 0 INPUT NODEFVAL data_b[7..0]
|
213 |
|
|
// Retrieval info: USED_PORT: address_b 0 0 12 0 INPUT NODEFVAL address_b[11..0]
|
214 |
|
|
// Retrieval info: USED_PORT: wren_b 0 0 0 0 INPUT VCC wren_b
|
215 |
|
|
// Retrieval info: USED_PORT: clock 0 0 0 0 INPUT NODEFVAL clock
|
216 |
|
|
// Retrieval info: CONNECT: @data_a 0 0 8 0 data_a 0 0 8 0
|
217 |
|
|
// Retrieval info: CONNECT: @wren_a 0 0 0 0 wren_a 0 0 0 0
|
218 |
|
|
// Retrieval info: CONNECT: q_a 0 0 8 0 @q_a 0 0 8 0
|
219 |
|
|
// Retrieval info: CONNECT: q_b 0 0 8 0 @q_b 0 0 8 0
|
220 |
|
|
// Retrieval info: CONNECT: @address_a 0 0 12 0 address_a 0 0 12 0
|
221 |
|
|
// Retrieval info: CONNECT: @data_b 0 0 8 0 data_b 0 0 8 0
|
222 |
|
|
// Retrieval info: CONNECT: @address_b 0 0 12 0 address_b 0 0 12 0
|
223 |
|
|
// Retrieval info: CONNECT: @wren_b 0 0 0 0 wren_b 0 0 0 0
|
224 |
|
|
// Retrieval info: CONNECT: @clock0 0 0 0 0 clock 0 0 0 0
|
225 |
|
|
// Retrieval info: LIBRARY: altera_mf altera_mf.altera_mf_components.all
|
226 |
|
|
// Retrieval info: GEN_FILE: TYPE_NORMAL ram4092x8_0.v TRUE
|
227 |
|
|
// Retrieval info: GEN_FILE: TYPE_NORMAL ram4092x8_0.inc FALSE
|
228 |
|
|
// Retrieval info: GEN_FILE: TYPE_NORMAL ram4092x8_0.cmp FALSE
|
229 |
|
|
// Retrieval info: GEN_FILE: TYPE_NORMAL ram4092x8_0.bsf FALSE
|
230 |
|
|
// Retrieval info: GEN_FILE: TYPE_NORMAL ram4092x8_0_inst.v FALSE
|
231 |
|
|
// Retrieval info: GEN_FILE: TYPE_NORMAL ram4092x8_0_bb.v TRUE
|
232 |
|
|
// Retrieval info: GEN_FILE: TYPE_NORMAL ram4092x8_0_waveforms.html TRUE
|
233 |
|
|
// Retrieval info: GEN_FILE: TYPE_NORMAL ram4092x8_0_wave*.jpg FALSE
|