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

Subversion Repositories 8051

[/] [8051/] [trunk/] [asm/] [v/] [cast.v] - Blame information for rev 2

Go to most recent revision | 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\cast.hex
7
/// date: 6.6.02
8
/// time: 22:00:40
9
///
10
 
11
module oc8051_rom (rst, clk, addr, ea_int, data1, data2, data3);
12
 
13
parameter INT_ROM_WID= 7;
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'h5E;
37
    buff [16'h00_03] = 8'h8F;
38
    buff [16'h00_04] = 8'h0F;
39
    buff [16'h00_05] = 8'h8E;
40
    buff [16'h00_06] = 8'h0E;
41
    buff [16'h00_07] = 8'h8D;
42
    buff [16'h00_08] = 8'h0D;
43
    buff [16'h00_09] = 8'h8C;
44
    buff [16'h00_0a] = 8'h0C;
45
    buff [16'h00_0b] = 8'h22;
46
    buff [16'h00_0c] = 8'h75;
47
    buff [16'h00_0d] = 8'h0B;
48
    buff [16'h00_0e] = 8'h67;
49
    buff [16'h00_0f] = 8'h75;
50
    buff [16'h00_10] = 8'h0A;
51
    buff [16'h00_11] = 8'h45;
52
    buff [16'h00_12] = 8'h75;
53
    buff [16'h00_13] = 8'h09;
54
    buff [16'h00_14] = 8'h23;
55
    buff [16'h00_15] = 8'h75;
56
    buff [16'h00_16] = 8'h08;
57
    buff [16'h00_17] = 8'h01;
58
    buff [16'h00_18] = 8'hAF;
59
    buff [16'h00_19] = 8'h0B;
60
    buff [16'h00_1a] = 8'hAE;
61
    buff [16'h00_1b] = 8'h0A;
62
    buff [16'h00_1c] = 8'hAD;
63
    buff [16'h00_1d] = 8'h09;
64
    buff [16'h00_1e] = 8'hAC;
65
    buff [16'h00_1f] = 8'h08;
66
    buff [16'h00_20] = 8'h78;
67
    buff [16'h00_21] = 8'h18;
68
    buff [16'h00_22] = 8'h12;
69
    buff [16'h00_23] = 8'h00;
70
    buff [16'h00_24] = 8'h6A;
71
    buff [16'h00_25] = 8'h12;
72
    buff [16'h00_26] = 8'h00;
73
    buff [16'h00_27] = 8'h03;
74
    buff [16'h00_28] = 8'h8F;
75
    buff [16'h00_29] = 8'h80;
76
    buff [16'h00_2a] = 8'hAF;
77
    buff [16'h00_2b] = 8'h0B;
78
    buff [16'h00_2c] = 8'hAE;
79
    buff [16'h00_2d] = 8'h0A;
80
    buff [16'h00_2e] = 8'hAD;
81
    buff [16'h00_2f] = 8'h09;
82
    buff [16'h00_30] = 8'hAC;
83
    buff [16'h00_31] = 8'h08;
84
    buff [16'h00_32] = 8'h78;
85
    buff [16'h00_33] = 8'h10;
86
    buff [16'h00_34] = 8'h12;
87
    buff [16'h00_35] = 8'h00;
88
    buff [16'h00_36] = 8'h6A;
89
    buff [16'h00_37] = 8'h12;
90
    buff [16'h00_38] = 8'h00;
91
    buff [16'h00_39] = 8'h03;
92
    buff [16'h00_3a] = 8'h8F;
93
    buff [16'h00_3b] = 8'h90;
94
    buff [16'h00_3c] = 8'hAF;
95
    buff [16'h00_3d] = 8'h0B;
96
    buff [16'h00_3e] = 8'hAE;
97
    buff [16'h00_3f] = 8'h0A;
98
    buff [16'h00_40] = 8'hAD;
99
    buff [16'h00_41] = 8'h09;
100
    buff [16'h00_42] = 8'hAC;
101
    buff [16'h00_43] = 8'h08;
102
    buff [16'h00_44] = 8'h78;
103
    buff [16'h00_45] = 8'h08;
104
    buff [16'h00_46] = 8'h12;
105
    buff [16'h00_47] = 8'h00;
106
    buff [16'h00_48] = 8'h6A;
107
    buff [16'h00_49] = 8'h12;
108
    buff [16'h00_4a] = 8'h00;
109
    buff [16'h00_4b] = 8'h03;
110
    buff [16'h00_4c] = 8'h8F;
111
    buff [16'h00_4d] = 8'hA0;
112
    buff [16'h00_4e] = 8'hAF;
113
    buff [16'h00_4f] = 8'h0B;
114
    buff [16'h00_50] = 8'hAE;
115
    buff [16'h00_51] = 8'h0A;
116
    buff [16'h00_52] = 8'hAD;
117
    buff [16'h00_53] = 8'h09;
118
    buff [16'h00_54] = 8'hAC;
119
    buff [16'h00_55] = 8'h08;
120
    buff [16'h00_56] = 8'h12;
121
    buff [16'h00_57] = 8'h00;
122
    buff [16'h00_58] = 8'h03;
123
    buff [16'h00_59] = 8'h8F;
124
    buff [16'h00_5a] = 8'h80;
125
    buff [16'h00_5b] = 8'h80;
126
    buff [16'h00_5c] = 8'hFE;
127
    buff [16'h00_5d] = 8'h22;
128
    buff [16'h00_5e] = 8'h78;
129
    buff [16'h00_5f] = 8'h7F;
130
    buff [16'h00_60] = 8'hE4;
131
    buff [16'h00_61] = 8'hF6;
132
    buff [16'h00_62] = 8'hD8;
133
    buff [16'h00_63] = 8'hFD;
134
    buff [16'h00_64] = 8'h75;
135
    buff [16'h00_65] = 8'h81;
136
    buff [16'h00_66] = 8'h0F;
137
    buff [16'h00_67] = 8'h02;
138
    buff [16'h00_68] = 8'h00;
139
    buff [16'h00_69] = 8'h0C;
140
    buff [16'h00_6a] = 8'hE8;
141
    buff [16'h00_6b] = 8'h60;
142
    buff [16'h00_6c] = 8'h0F;
143
    buff [16'h00_6d] = 8'hEC;
144
    buff [16'h00_6e] = 8'hC3;
145
    buff [16'h00_6f] = 8'h13;
146
    buff [16'h00_70] = 8'hFC;
147
    buff [16'h00_71] = 8'hED;
148
    buff [16'h00_72] = 8'h13;
149
    buff [16'h00_73] = 8'hFD;
150
    buff [16'h00_74] = 8'hEE;
151
    buff [16'h00_75] = 8'h13;
152
    buff [16'h00_76] = 8'hFE;
153
    buff [16'h00_77] = 8'hEF;
154
    buff [16'h00_78] = 8'h13;
155
    buff [16'h00_79] = 8'hFF;
156
    buff [16'h00_7a] = 8'hD8;
157
    buff [16'h00_7b] = 8'hF1;
158
    buff [16'h00_7c] = 8'h22;
159
end
160
 
161
always @(posedge clk)
162
begin
163
  data1 <= #1 buff [addr];
164
  data2 <= #1 buff [addr+1];
165
  data3 <= #1 buff [addr+2];
166
end
167
 
168
endmodule

powered by: WebSVN 2.1.0

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