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

Subversion Repositories 8051

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 simont
 
2
///
3
/// created by p8051Rom.exe
4
/// author: Simon Teran (simont@opencores.org)
5
///
6
/// source file: D:\verilog\oc8051\test\fib.hex
7
/// date: 6.6.02
8
/// time: 22:00:50
9
///
10
 
11
module oc8051_rom (rst, clk, addr, ea_int, data1, data2, data3);
12
 
13
parameter INT_ROM_WID= 9;
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'hC2;
37
    buff [16'h00_03] = 8'h8B;
38
    buff [16'h00_04] = 8'h12;
39
    buff [16'h00_05] = 8'h8A;
40
    buff [16'h00_06] = 8'h13;
41
    buff [16'h00_07] = 8'h89;
42
    buff [16'h00_08] = 8'h14;
43
    buff [16'h00_09] = 8'h8D;
44
    buff [16'h00_0a] = 8'h15;
45
    buff [16'h00_0b] = 8'h74;
46
    buff [16'h00_0c] = 8'h01;
47
    buff [16'h00_0d] = 8'h12;
48
    buff [16'h00_0e] = 8'h00;
49
    buff [16'h00_0f] = 8'hFB;
50
    buff [16'h00_10] = 8'hAB;
51
    buff [16'h00_11] = 8'h12;
52
    buff [16'h00_12] = 8'hAA;
53
    buff [16'h00_13] = 8'h13;
54
    buff [16'h00_14] = 8'hA9;
55
    buff [16'h00_15] = 8'h14;
56
    buff [16'h00_16] = 8'hF5;
57
    buff [16'h00_17] = 8'h82;
58
    buff [16'h00_18] = 8'h75;
59
    buff [16'h00_19] = 8'h83;
60
    buff [16'h00_1a] = 8'h00;
61
    buff [16'h00_1b] = 8'h12;
62
    buff [16'h00_1c] = 8'h01;
63
    buff [16'h00_1d] = 8'h0D;
64
    buff [16'h00_1e] = 8'h75;
65
    buff [16'h00_1f] = 8'h16;
66
    buff [16'h00_20] = 8'h02;
67
    buff [16'h00_21] = 8'hAD;
68
    buff [16'h00_22] = 8'h16;
69
    buff [16'h00_23] = 8'hED;
70
    buff [16'h00_24] = 8'h33;
71
    buff [16'h00_25] = 8'h95;
72
    buff [16'h00_26] = 8'hE0;
73
    buff [16'h00_27] = 8'hFC;
74
    buff [16'h00_28] = 8'hC3;
75
    buff [16'h00_29] = 8'hED;
76
    buff [16'h00_2a] = 8'h95;
77
    buff [16'h00_2b] = 8'h15;
78
    buff [16'h00_2c] = 8'h74;
79
    buff [16'h00_2d] = 8'h80;
80
    buff [16'h00_2e] = 8'hF8;
81
    buff [16'h00_2f] = 8'h6C;
82
    buff [16'h00_30] = 8'h98;
83
    buff [16'h00_31] = 8'h50;
84
    buff [16'h00_32] = 8'h3E;
85
    buff [16'h00_33] = 8'hAF;
86
    buff [16'h00_34] = 8'h16;
87
    buff [16'h00_35] = 8'hEF;
88
    buff [16'h00_36] = 8'h33;
89
    buff [16'h00_37] = 8'h95;
90
    buff [16'h00_38] = 8'hE0;
91
    buff [16'h00_39] = 8'hFE;
92
    buff [16'h00_3a] = 8'hEF;
93
    buff [16'h00_3b] = 8'h24;
94
    buff [16'h00_3c] = 8'hFE;
95
    buff [16'h00_3d] = 8'hFD;
96
    buff [16'h00_3e] = 8'hEE;
97
    buff [16'h00_3f] = 8'h34;
98
    buff [16'h00_40] = 8'hFF;
99
    buff [16'h00_41] = 8'hAB;
100
    buff [16'h00_42] = 8'h12;
101
    buff [16'h00_43] = 8'hAA;
102
    buff [16'h00_44] = 8'h13;
103
    buff [16'h00_45] = 8'hA9;
104
    buff [16'h00_46] = 8'h14;
105
    buff [16'h00_47] = 8'h8D;
106
    buff [16'h00_48] = 8'h82;
107
    buff [16'h00_49] = 8'hF5;
108
    buff [16'h00_4a] = 8'h83;
109
    buff [16'h00_4b] = 8'h12;
110
    buff [16'h00_4c] = 8'h00;
111
    buff [16'h00_4d] = 8'hCE;
112
    buff [16'h00_4e] = 8'hFD;
113
    buff [16'h00_4f] = 8'hEF;
114
    buff [16'h00_50] = 8'h24;
115
    buff [16'h00_51] = 8'hFF;
116
    buff [16'h00_52] = 8'hFF;
117
    buff [16'h00_53] = 8'hEE;
118
    buff [16'h00_54] = 8'h34;
119
    buff [16'h00_55] = 8'hFF;
120
    buff [16'h00_56] = 8'h8F;
121
    buff [16'h00_57] = 8'h82;
122
    buff [16'h00_58] = 8'hF5;
123
    buff [16'h00_59] = 8'h83;
124
    buff [16'h00_5a] = 8'h12;
125
    buff [16'h00_5b] = 8'h00;
126
    buff [16'h00_5c] = 8'hCE;
127
    buff [16'h00_5d] = 8'h2D;
128
    buff [16'h00_5e] = 8'hFF;
129
    buff [16'h00_5f] = 8'hE5;
130
    buff [16'h00_60] = 8'h16;
131
    buff [16'h00_61] = 8'hFD;
132
    buff [16'h00_62] = 8'h33;
133
    buff [16'h00_63] = 8'h95;
134
    buff [16'h00_64] = 8'hE0;
135
    buff [16'h00_65] = 8'h8D;
136
    buff [16'h00_66] = 8'h82;
137
    buff [16'h00_67] = 8'hF5;
138
    buff [16'h00_68] = 8'h83;
139
    buff [16'h00_69] = 8'hEF;
140
    buff [16'h00_6a] = 8'h12;
141
    buff [16'h00_6b] = 8'h01;
142
    buff [16'h00_6c] = 8'h0D;
143
    buff [16'h00_6d] = 8'h05;
144
    buff [16'h00_6e] = 8'h16;
145
    buff [16'h00_6f] = 8'h80;
146
    buff [16'h00_70] = 8'hB0;
147
    buff [16'h00_71] = 8'h22;
148
    buff [16'h00_72] = 8'h8B;
149
    buff [16'h00_73] = 8'h12;
150
    buff [16'h00_74] = 8'h8A;
151
    buff [16'h00_75] = 8'h13;
152
    buff [16'h00_76] = 8'h89;
153
    buff [16'h00_77] = 8'h14;
154
    buff [16'h00_78] = 8'h8D;
155
    buff [16'h00_79] = 8'h15;
156
    buff [16'h00_7a] = 8'hE4;
157
    buff [16'h00_7b] = 8'hF5;
158
    buff [16'h00_7c] = 8'h16;
159
    buff [16'h00_7d] = 8'hAD;
160
    buff [16'h00_7e] = 8'h16;
161
    buff [16'h00_7f] = 8'hED;
162
    buff [16'h00_80] = 8'h33;
163
    buff [16'h00_81] = 8'h95;
164
    buff [16'h00_82] = 8'hE0;
165
    buff [16'h00_83] = 8'hFC;
166
    buff [16'h00_84] = 8'hC3;
167
    buff [16'h00_85] = 8'hED;
168
    buff [16'h00_86] = 8'h95;
169
    buff [16'h00_87] = 8'h15;
170
    buff [16'h00_88] = 8'h74;
171
    buff [16'h00_89] = 8'h80;
172
    buff [16'h00_8a] = 8'hF8;
173
    buff [16'h00_8b] = 8'h6C;
174
    buff [16'h00_8c] = 8'h98;
175
    buff [16'h00_8d] = 8'h50;
176
    buff [16'h00_8e] = 8'h19;
177
    buff [16'h00_8f] = 8'hAB;
178
    buff [16'h00_90] = 8'h12;
179
    buff [16'h00_91] = 8'hAA;
180
    buff [16'h00_92] = 8'h13;
181
    buff [16'h00_93] = 8'hA9;
182
    buff [16'h00_94] = 8'h14;
183
    buff [16'h00_95] = 8'hAF;
184
    buff [16'h00_96] = 8'h16;
185
    buff [16'h00_97] = 8'hEF;
186
    buff [16'h00_98] = 8'h33;
187
    buff [16'h00_99] = 8'h95;
188
    buff [16'h00_9a] = 8'hE0;
189
    buff [16'h00_9b] = 8'h8F;
190
    buff [16'h00_9c] = 8'h82;
191
    buff [16'h00_9d] = 8'hF5;
192
    buff [16'h00_9e] = 8'h83;
193
    buff [16'h00_9f] = 8'h12;
194
    buff [16'h00_a0] = 8'h00;
195
    buff [16'h00_a1] = 8'hCE;
196
    buff [16'h00_a2] = 8'hF5;
197
    buff [16'h00_a3] = 8'h80;
198
    buff [16'h00_a4] = 8'h05;
199
    buff [16'h00_a5] = 8'h16;
200
    buff [16'h00_a6] = 8'h80;
201
    buff [16'h00_a7] = 8'hD5;
202
    buff [16'h00_a8] = 8'h22;
203
    buff [16'h00_a9] = 8'h7B;
204
    buff [16'h00_aa] = 8'h00;
205
    buff [16'h00_ab] = 8'h7A;
206
    buff [16'h00_ac] = 8'h00;
207
    buff [16'h00_ad] = 8'h79;
208
    buff [16'h00_ae] = 8'h08;
209
    buff [16'h00_af] = 8'h7D;
210
    buff [16'h00_b0] = 8'h0A;
211
    buff [16'h00_b1] = 8'h12;
212
    buff [16'h00_b2] = 8'h00;
213
    buff [16'h00_b3] = 8'h03;
214
    buff [16'h00_b4] = 8'h7B;
215
    buff [16'h00_b5] = 8'h00;
216
    buff [16'h00_b6] = 8'h7A;
217
    buff [16'h00_b7] = 8'h00;
218
    buff [16'h00_b8] = 8'h79;
219
    buff [16'h00_b9] = 8'h08;
220
    buff [16'h00_ba] = 8'h7D;
221
    buff [16'h00_bb] = 8'h0A;
222
    buff [16'h00_bc] = 8'h12;
223
    buff [16'h00_bd] = 8'h00;
224
    buff [16'h00_be] = 8'h72;
225
    buff [16'h00_bf] = 8'h80;
226
    buff [16'h00_c0] = 8'hFE;
227
    buff [16'h00_c1] = 8'h22;
228
    buff [16'h00_c2] = 8'h78;
229
    buff [16'h00_c3] = 8'h7F;
230
    buff [16'h00_c4] = 8'hE4;
231
    buff [16'h00_c5] = 8'hF6;
232
    buff [16'h00_c6] = 8'hD8;
233
    buff [16'h00_c7] = 8'hFD;
234
    buff [16'h00_c8] = 8'h75;
235
    buff [16'h00_c9] = 8'h81;
236
    buff [16'h00_ca] = 8'h16;
237
    buff [16'h00_cb] = 8'h02;
238
    buff [16'h00_cc] = 8'h00;
239
    buff [16'h00_cd] = 8'hA9;
240
    buff [16'h00_ce] = 8'hBB;
241
    buff [16'h00_cf] = 8'h01;
242
    buff [16'h00_d0] = 8'h0C;
243
    buff [16'h00_d1] = 8'hE5;
244
    buff [16'h00_d2] = 8'h82;
245
    buff [16'h00_d3] = 8'h29;
246
    buff [16'h00_d4] = 8'hF5;
247
    buff [16'h00_d5] = 8'h82;
248
    buff [16'h00_d6] = 8'hE5;
249
    buff [16'h00_d7] = 8'h83;
250
    buff [16'h00_d8] = 8'h3A;
251
    buff [16'h00_d9] = 8'hF5;
252
    buff [16'h00_da] = 8'h83;
253
    buff [16'h00_db] = 8'hE0;
254
    buff [16'h00_dc] = 8'h22;
255
    buff [16'h00_dd] = 8'h50;
256
    buff [16'h00_de] = 8'h06;
257
    buff [16'h00_df] = 8'hE9;
258
    buff [16'h00_e0] = 8'h25;
259
    buff [16'h00_e1] = 8'h82;
260
    buff [16'h00_e2] = 8'hF8;
261
    buff [16'h00_e3] = 8'hE6;
262
    buff [16'h00_e4] = 8'h22;
263
    buff [16'h00_e5] = 8'hBB;
264
    buff [16'h00_e6] = 8'hFE;
265
    buff [16'h00_e7] = 8'h06;
266
    buff [16'h00_e8] = 8'hE9;
267
    buff [16'h00_e9] = 8'h25;
268
    buff [16'h00_ea] = 8'h82;
269
    buff [16'h00_eb] = 8'hF8;
270
    buff [16'h00_ec] = 8'hE2;
271
    buff [16'h00_ed] = 8'h22;
272
    buff [16'h00_ee] = 8'hE5;
273
    buff [16'h00_ef] = 8'h82;
274
    buff [16'h00_f0] = 8'h29;
275
    buff [16'h00_f1] = 8'hF5;
276
    buff [16'h00_f2] = 8'h82;
277
    buff [16'h00_f3] = 8'hE5;
278
    buff [16'h00_f4] = 8'h83;
279
    buff [16'h00_f5] = 8'h3A;
280
    buff [16'h00_f6] = 8'hF5;
281
    buff [16'h00_f7] = 8'h83;
282
    buff [16'h00_f8] = 8'hE4;
283
    buff [16'h00_f9] = 8'h93;
284
    buff [16'h00_fa] = 8'h22;
285
    buff [16'h00_fb] = 8'hBB;
286
    buff [16'h00_fc] = 8'h01;
287
    buff [16'h00_fd] = 8'h06;
288
    buff [16'h00_fe] = 8'h89;
289
    buff [16'h00_ff] = 8'h82;
290
    buff [16'h01_00] = 8'h8A;
291
    buff [16'h01_01] = 8'h83;
292
    buff [16'h01_02] = 8'hF0;
293
    buff [16'h01_03] = 8'h22;
294
    buff [16'h01_04] = 8'h50;
295
    buff [16'h01_05] = 8'h02;
296
    buff [16'h01_06] = 8'hF7;
297
    buff [16'h01_07] = 8'h22;
298
    buff [16'h01_08] = 8'hBB;
299
    buff [16'h01_09] = 8'hFE;
300
    buff [16'h01_0a] = 8'h01;
301
    buff [16'h01_0b] = 8'hF3;
302
    buff [16'h01_0c] = 8'h22;
303
    buff [16'h01_0d] = 8'hF8;
304
    buff [16'h01_0e] = 8'hBB;
305
    buff [16'h01_0f] = 8'h01;
306
    buff [16'h01_10] = 8'h0D;
307
    buff [16'h01_11] = 8'hE5;
308
    buff [16'h01_12] = 8'h82;
309
    buff [16'h01_13] = 8'h29;
310
    buff [16'h01_14] = 8'hF5;
311
    buff [16'h01_15] = 8'h82;
312
    buff [16'h01_16] = 8'hE5;
313
    buff [16'h01_17] = 8'h83;
314
    buff [16'h01_18] = 8'h3A;
315
    buff [16'h01_19] = 8'hF5;
316
    buff [16'h01_1a] = 8'h83;
317
    buff [16'h01_1b] = 8'hE8;
318
    buff [16'h01_1c] = 8'hF0;
319
    buff [16'h01_1d] = 8'h22;
320
    buff [16'h01_1e] = 8'h50;
321
    buff [16'h01_1f] = 8'h06;
322
    buff [16'h01_20] = 8'hE9;
323
    buff [16'h01_21] = 8'h25;
324
    buff [16'h01_22] = 8'h82;
325
    buff [16'h01_23] = 8'hC8;
326
    buff [16'h01_24] = 8'hF6;
327
    buff [16'h01_25] = 8'h22;
328
    buff [16'h01_26] = 8'hBB;
329
    buff [16'h01_27] = 8'hFE;
330
    buff [16'h01_28] = 8'h05;
331
    buff [16'h01_29] = 8'hE9;
332
    buff [16'h01_2a] = 8'h25;
333
    buff [16'h01_2b] = 8'h82;
334
    buff [16'h01_2c] = 8'hC8;
335
    buff [16'h01_2d] = 8'hF2;
336
    buff [16'h01_2e] = 8'h22;
337
end
338
 
339
always @(posedge clk)
340
begin
341
  data1 <= #1 buff [addr];
342
  data2 <= #1 buff [addr+1];
343
  data3 <= #1 buff [addr+2];
344
end
345
 
346
endmodule

powered by: WebSVN 2.1.0

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