OpenCores
URL https://opencores.org/ocsvn/8051/8051/trunk

Subversion Repositories 8051

[/] [8051/] [trunk/] [asm/] [v/] [xram_m.v] - Blame information for rev 186

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 simont
 
2
///
3
/// created by oc8051 rom maker
4
/// author: Simon Teran (simont@opencores.org)
5
///
6
/// source file: D:\tmp\asm\TEMP\Xram_m.ihx
7
/// date: 11.7.02
8
/// time: 9:14:31
9
///
10
 
11
module oc8051_rom (rst, clk, addr, ea_int, data1, data2, data3);
12
 
13
parameter INT_ROM_WID= 8;
14
 
15
input rst, clk;
16
input [15:0] addr;
17
output ea_int;
18
output [7:0] data1, data2, data3;
19
reg [7:0] data1, data2, data3;
20
reg [7:0] buff [65535:0];
21
integer i;
22
 
23
wire ea;
24
 
25
assign ea = | addr[15:INT_ROM_WID];
26
assign ea_int = ! ea;
27
 
28
initial
29
begin
30
    for (i=0; i<65536; i=i+1)
31
      buff [i] = 8'h00;
32
#2
33
 
34
    buff [16'h00_00] = 8'h02;
35
    buff [16'h00_01] = 8'h00;
36
    buff [16'h00_02] = 8'hD6;
37
    buff [16'h00_03] = 8'h32;
38
    buff [16'h00_04] = 8'h00;
39
    buff [16'h00_05] = 8'h00;
40
    buff [16'h00_06] = 8'h00;
41
    buff [16'h00_07] = 8'h00;
42
    buff [16'h00_08] = 8'h00;
43
    buff [16'h00_09] = 8'h00;
44
    buff [16'h00_0a] = 8'h00;
45
    buff [16'h00_0b] = 8'h32;
46
    buff [16'h00_0c] = 8'h00;
47
    buff [16'h00_0d] = 8'h00;
48
    buff [16'h00_0e] = 8'h00;
49
    buff [16'h00_0f] = 8'h00;
50
    buff [16'h00_10] = 8'h00;
51
    buff [16'h00_11] = 8'h00;
52
    buff [16'h00_12] = 8'h00;
53
    buff [16'h00_13] = 8'h32;
54
    buff [16'h00_14] = 8'h00;
55
    buff [16'h00_15] = 8'h00;
56
    buff [16'h00_16] = 8'h00;
57
    buff [16'h00_17] = 8'h00;
58
    buff [16'h00_18] = 8'h00;
59
    buff [16'h00_19] = 8'h00;
60
    buff [16'h00_1a] = 8'h00;
61
    buff [16'h00_1b] = 8'h32;
62
    buff [16'h00_1c] = 8'h00;
63
    buff [16'h00_1d] = 8'h00;
64
    buff [16'h00_1e] = 8'h00;
65
    buff [16'h00_1f] = 8'h00;
66
    buff [16'h00_20] = 8'h00;
67
    buff [16'h00_21] = 8'h00;
68
    buff [16'h00_22] = 8'h00;
69
    buff [16'h00_23] = 8'h32;
70
    buff [16'h00_24] = 8'h00;
71
    buff [16'h00_25] = 8'h00;
72
    buff [16'h00_26] = 8'h00;
73
    buff [16'h00_27] = 8'h00;
74
    buff [16'h00_28] = 8'h00;
75
    buff [16'h00_29] = 8'h00;
76
    buff [16'h00_2a] = 8'h00;
77
    buff [16'h00_2b] = 8'h32;
78
    buff [16'h00_2c] = 8'h00;
79
    buff [16'h00_2d] = 8'h00;
80
    buff [16'h00_2e] = 8'h00;
81
    buff [16'h00_2f] = 8'h00;
82
    buff [16'h00_30] = 8'h00;
83
    buff [16'h00_31] = 8'h00;
84
    buff [16'h00_32] = 8'h00;
85
    buff [16'h00_33] = 8'h12;
86
    buff [16'h00_34] = 8'h00;
87
    buff [16'h00_35] = 8'h38;
88
    buff [16'h00_36] = 8'h80;
89
    buff [16'h00_37] = 8'hFE;
90
    buff [16'h00_38] = 8'h90;
91
    buff [16'h00_39] = 8'h00;
92
    buff [16'h00_3a] = 8'hFF;
93
    buff [16'h00_3b] = 8'h74;
94
    buff [16'h00_3c] = 8'hFF;
95
    buff [16'h00_3d] = 8'hF0;
96
    buff [16'h00_3e] = 8'h7A;
97
    buff [16'h00_3f] = 8'h01;
98
    buff [16'h00_40] = 8'h7B;
99
    buff [16'h00_41] = 8'h00;
100
    buff [16'h00_42] = 8'hC3;
101
    buff [16'h00_43] = 8'hEA;
102
    buff [16'h00_44] = 8'h94;
103
    buff [16'h00_45] = 8'h0A;
104
    buff [16'h00_46] = 8'hEB;
105
    buff [16'h00_47] = 8'h94;
106
    buff [16'h00_48] = 8'h00;
107
    buff [16'h00_49] = 8'h40;
108
    buff [16'h00_4a] = 8'h03;
109
    buff [16'h00_4b] = 8'h02;
110
    buff [16'h00_4c] = 8'h00;
111
    buff [16'h00_4d] = 8'hCC;
112
    buff [16'h00_4e] = 8'h8A;
113
    buff [16'h00_4f] = 8'h05;
114
    buff [16'h00_50] = 8'h7C;
115
    buff [16'h00_51] = 8'h00;
116
    buff [16'h00_52] = 8'h7E;
117
    buff [16'h00_53] = 8'h01;
118
    buff [16'h00_54] = 8'h7F;
119
    buff [16'h00_55] = 8'h00;
120
    buff [16'h00_56] = 8'hC3;
121
    buff [16'h00_57] = 8'hEE;
122
    buff [16'h00_58] = 8'h94;
123
    buff [16'h00_59] = 8'h00;
124
    buff [16'h00_5a] = 8'hEF;
125
    buff [16'h00_5b] = 8'h94;
126
    buff [16'h00_5c] = 8'h01;
127
    buff [16'h00_5d] = 8'hE4;
128
    buff [16'h00_5e] = 8'h33;
129
    buff [16'h00_5f] = 8'hF8;
130
    buff [16'h00_60] = 8'h60;
131
    buff [16'h00_61] = 8'h43;
132
    buff [16'h00_62] = 8'hEE;
133
    buff [16'h00_63] = 8'h2C;
134
    buff [16'h00_64] = 8'hF5;
135
    buff [16'h00_65] = 8'h30;
136
    buff [16'h00_66] = 8'hEF;
137
    buff [16'h00_67] = 8'h3D;
138
    buff [16'h00_68] = 8'hF5;
139
    buff [16'h00_69] = 8'h31;
140
    buff [16'h00_6a] = 8'hE5;
141
    buff [16'h00_6b] = 8'h30;
142
    buff [16'h00_6c] = 8'h24;
143
    buff [16'h00_6d] = 8'h00;
144
    buff [16'h00_6e] = 8'hF5;
145
    buff [16'h00_6f] = 8'h32;
146
    buff [16'h00_70] = 8'hE5;
147
    buff [16'h00_71] = 8'h31;
148
    buff [16'h00_72] = 8'h34;
149
    buff [16'h00_73] = 8'h00;
150
    buff [16'h00_74] = 8'hF5;
151
    buff [16'h00_75] = 8'h33;
152
    buff [16'h00_76] = 8'hE5;
153
    buff [16'h00_77] = 8'h30;
154
    buff [16'h00_78] = 8'h24;
155
    buff [16'h00_79] = 8'hFF;
156
    buff [16'h00_7a] = 8'hF5;
157
    buff [16'h00_7b] = 8'h34;
158
    buff [16'h00_7c] = 8'hE5;
159
    buff [16'h00_7d] = 8'h31;
160
    buff [16'h00_7e] = 8'h34;
161
    buff [16'h00_7f] = 8'hFF;
162
    buff [16'h00_80] = 8'hF5;
163
    buff [16'h00_81] = 8'h35;
164
    buff [16'h00_82] = 8'hE5;
165
    buff [16'h00_83] = 8'h34;
166
    buff [16'h00_84] = 8'h24;
167
    buff [16'h00_85] = 8'h00;
168
    buff [16'h00_86] = 8'hF5;
169
    buff [16'h00_87] = 8'h82;
170
    buff [16'h00_88] = 8'hE5;
171
    buff [16'h00_89] = 8'h35;
172
    buff [16'h00_8a] = 8'h34;
173
    buff [16'h00_8b] = 8'h00;
174
    buff [16'h00_8c] = 8'hF5;
175
    buff [16'h00_8d] = 8'h83;
176
    buff [16'h00_8e] = 8'hE0;
177
    buff [16'h00_8f] = 8'hF9;
178
    buff [16'h00_90] = 8'h24;
179
    buff [16'h00_91] = 8'h01;
180
    buff [16'h00_92] = 8'hF5;
181
    buff [16'h00_93] = 8'h36;
182
    buff [16'h00_94] = 8'h85;
183
    buff [16'h00_95] = 8'h32;
184
    buff [16'h00_96] = 8'h82;
185
    buff [16'h00_97] = 8'h85;
186
    buff [16'h00_98] = 8'h33;
187
    buff [16'h00_99] = 8'h83;
188
    buff [16'h00_9a] = 8'hE5;
189
    buff [16'h00_9b] = 8'h36;
190
    buff [16'h00_9c] = 8'hF0;
191
    buff [16'h00_9d] = 8'h0E;
192
    buff [16'h00_9e] = 8'hBE;
193
    buff [16'h00_9f] = 8'h00;
194
    buff [16'h00_a0] = 8'hB5;
195
    buff [16'h00_a1] = 8'h0F;
196
    buff [16'h00_a2] = 8'h02;
197
    buff [16'h00_a3] = 8'h00;
198
    buff [16'h00_a4] = 8'h56;
199
    buff [16'h00_a5] = 8'h74;
200
    buff [16'h00_a6] = 8'hFF;
201
    buff [16'h00_a7] = 8'h2C;
202
    buff [16'h00_a8] = 8'hFC;
203
    buff [16'h00_a9] = 8'hE4;
204
    buff [16'h00_aa] = 8'h3D;
205
    buff [16'h00_ab] = 8'hFD;
206
    buff [16'h00_ac] = 8'hEC;
207
    buff [16'h00_ad] = 8'h24;
208
    buff [16'h00_ae] = 8'h00;
209
    buff [16'h00_af] = 8'hF5;
210
    buff [16'h00_b0] = 8'h82;
211
    buff [16'h00_b1] = 8'hED;
212
    buff [16'h00_b2] = 8'h34;
213
    buff [16'h00_b3] = 8'h00;
214
    buff [16'h00_b4] = 8'hF5;
215
    buff [16'h00_b5] = 8'h83;
216
    buff [16'h00_b6] = 8'hE0;
217
    buff [16'h00_b7] = 8'hFC;
218
    buff [16'h00_b8] = 8'h7D;
219
    buff [16'h00_b9] = 8'h00;
220
    buff [16'h00_ba] = 8'hBC;
221
    buff [16'h00_bb] = 8'hFF;
222
    buff [16'h00_bc] = 8'h05;
223
    buff [16'h00_bd] = 8'hBD;
224
    buff [16'h00_be] = 8'h00;
225
    buff [16'h00_bf] = 8'h02;
226
    buff [16'h00_c0] = 8'h80;
227
    buff [16'h00_c1] = 8'h02;
228
    buff [16'h00_c2] = 8'h8A;
229
    buff [16'h00_c3] = 8'h90;
230
    buff [16'h00_c4] = 8'h0A;
231
    buff [16'h00_c5] = 8'hBA;
232
    buff [16'h00_c6] = 8'h00;
233
    buff [16'h00_c7] = 8'h01;
234
    buff [16'h00_c8] = 8'h0B;
235
    buff [16'h00_c9] = 8'h02;
236
    buff [16'h00_ca] = 8'h00;
237
    buff [16'h00_cb] = 8'h42;
238
    buff [16'h00_cc] = 8'h75;
239
    buff [16'h00_cd] = 8'h80;
240
    buff [16'h00_ce] = 8'h01;
241
    buff [16'h00_cf] = 8'h80;
242
    buff [16'h00_d0] = 8'hFE;
243
    buff [16'h00_d1] = 8'h22;
244
    buff [16'h00_d2] = 8'h75;
245
    buff [16'h00_d3] = 8'h82;
246
    buff [16'h00_d4] = 8'h00;
247
    buff [16'h00_d5] = 8'h22;
248
    buff [16'h00_d6] = 8'h75;
249
    buff [16'h00_d7] = 8'h81;
250
    buff [16'h00_d8] = 8'h07;
251
    buff [16'h00_d9] = 8'h12;
252
    buff [16'h00_da] = 8'h00;
253
    buff [16'h00_db] = 8'hD2;
254
    buff [16'h00_dc] = 8'hE5;
255
    buff [16'h00_dd] = 8'h82;
256
    buff [16'h00_de] = 8'h60;
257
    buff [16'h00_df] = 8'h03;
258
    buff [16'h00_e0] = 8'h02;
259
    buff [16'h00_e1] = 8'h00;
260
    buff [16'h00_e2] = 8'h33;
261
    buff [16'h00_e3] = 8'h02;
262
    buff [16'h00_e4] = 8'h00;
263
    buff [16'h00_e5] = 8'h33;
264
end
265
 
266
always @(posedge clk)
267
begin
268
  data1 <= #1 buff [addr];
269
  data2 <= #1 buff [addr+1];
270
  data3 <= #1 buff [addr+2];
271
end
272
 
273
endmodule

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.