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

Subversion Repositories aemb

[/] [aemb/] [branches/] [AEMB2_712/] [rtl/] [verilog/] [aeMB_edk32.v] - Blame information for rev 41

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 41 sybreon
// $Id: aeMB_edk32.v,v 1.1 2007-11-02 03:25:40 sybreon Exp $
2
//
3
// AEMB EDK 3.2 Compatible Core
4
//
5
// Copyright (C) 2004-2007 Shawn Tan Ser Ngiap <shawn.tan@aeste.net>
6
//  
7
// This library is free software; you can redistribute it and/or
8
// modify it under the terms of the GNU Lesser General Public License
9
// as published by the Free Software Foundation; either version 2.1 of
10
// the License, or (at your option) any later version.
11
//
12
// This library is distributed in the hope that it will be useful, but
13
// WITHOUT ANY WARRANTY; without even the implied warranty of
14
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
// Lesser General Public License for more details.
16
//  
17
// You should have received a copy of the GNU Lesser General Public
18
// License along with this library; if not, write to the Free Software
19
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
20
// USA
21
//
22
// $Log: not supported by cvs2svn $
23
 
24
module aeMB_edk32 (/*AUTOARG*/
25
   // Outputs
26
   iwb_stb_o, iwb_adr_o, dwb_wre_o, dwb_stb_o, dwb_sel_o, dwb_dat_o,
27
   dwb_adr_o,
28
   // Inputs
29
   sys_rst_i, sys_int_i, sys_clk_i, iwb_dat_i, iwb_ack_i, dwb_dat_i,
30
   dwb_ack_i
31
   );
32
 
33
   parameter IW = 32;
34
   parameter DW = 32;
35
 
36
   /*AUTOOUTPUT*/
37
   // Beginning of automatic outputs (from unused autoinst outputs)
38
   output [DW-1:2]      dwb_adr_o;              // From xecu of aeMB_xecu.v
39
   output [31:0] dwb_dat_o;              // From regf of aeMB_regf.v
40
   output [3:0]          dwb_sel_o;              // From xecu of aeMB_xecu.v
41
   output               dwb_stb_o;              // From ctrl of aeMB_ctrl.v
42
   output               dwb_wre_o;              // From ctrl of aeMB_ctrl.v
43
   output [IW-1:2]      iwb_adr_o;              // From bpcu of aeMB_bpcu.v
44
   output               iwb_stb_o;              // From ibuf of aeMB_ibuf.v
45
   // End of automatics
46
   /*AUTOINPUT*/
47
   // Beginning of automatic inputs (from unused autoinst inputs)
48
   input                dwb_ack_i;              // To scon of aeMB_scon.v
49
   input [31:0]          dwb_dat_i;              // To regf of aeMB_regf.v
50
   input                iwb_ack_i;              // To scon of aeMB_scon.v, ...
51
   input [31:0]          iwb_dat_i;              // To ibuf of aeMB_ibuf.v
52
   input                sys_clk_i;              // To scon of aeMB_scon.v
53
   input                sys_int_i;              // To scon of aeMB_scon.v, ...
54
   input                sys_rst_i;              // To scon of aeMB_scon.v
55
   // End of automatics
56
   /*AUTOWIRE*/
57
   // Beginning of automatic wires (for undeclared instantiated-module outputs)
58
   wire                 gclk;                   // From scon of aeMB_scon.v
59
   wire                 gena;                   // From scon of aeMB_scon.v
60
   wire                 grst;                   // From scon of aeMB_scon.v
61
   wire [10:0]           rALT;                   // From ibuf of aeMB_ibuf.v
62
   wire                 rBRA;                   // From bpcu of aeMB_bpcu.v
63
   wire                 rDLY;                   // From bpcu of aeMB_bpcu.v
64
   wire [31:0]           rDWBDI;                 // From regf of aeMB_regf.v
65
   wire [3:0]            rDWBSEL;                // From xecu of aeMB_xecu.v
66
   wire                 rDWBSTB;                // From ctrl of aeMB_ctrl.v
67
   wire [15:0]           rIMM;                   // From ibuf of aeMB_ibuf.v
68
   wire                 rMSR_IE;                // From xecu of aeMB_xecu.v
69
   wire [1:0]            rMXALT;                 // From ctrl of aeMB_ctrl.v
70
   wire [2:0]            rMXALU;                 // From ctrl of aeMB_ctrl.v
71
   wire [1:0]            rMXDST;                 // From ctrl of aeMB_ctrl.v
72
   wire [1:0]            rMXSRC;                 // From ctrl of aeMB_ctrl.v
73
   wire [1:0]            rMXTGT;                 // From ctrl of aeMB_ctrl.v
74
   wire [5:0]            rOPC;                   // From ibuf of aeMB_ibuf.v
75
   wire [31:2]          rPC;                    // From bpcu of aeMB_bpcu.v
76
   wire [31:2]          rPCLNK;                 // From bpcu of aeMB_bpcu.v
77
   wire [4:0]            rRA;                    // From ibuf of aeMB_ibuf.v
78
   wire [4:0]            rRB;                    // From ibuf of aeMB_ibuf.v
79
   wire [4:0]            rRD;                    // From ibuf of aeMB_ibuf.v
80
   wire [31:0]           rREGA;                  // From regf of aeMB_regf.v
81
   wire [31:0]           rREGB;                  // From regf of aeMB_regf.v
82
   wire [31:0]           rRESULT;                // From xecu of aeMB_xecu.v
83
   wire [4:0]            rRW;                    // From ctrl of aeMB_ctrl.v
84
   wire [31:0]           rSIMM;                  // From ibuf of aeMB_ibuf.v
85
   wire [1:0]            rXCE;                   // From ctrl of aeMB_ctrl.v
86
   // End of automatics
87
 
88
   wire [31:0]           rOPA, rOPB;
89
   wire [31:0]           rRES_MUL, rRES_BSF;
90
 
91
   /*
92
   aeMB_mult
93
     mult (
94
           // Outputs
95
           .rRES_MUL                    (rRES_MUL[31:0]),
96
           // Inputs
97
           .rOPA                        (rOPA[31:0]),
98
           .rOPB                        (rOPB[31:0]));
99
    */
100
   aeMB_bsft
101
     bsft (
102
           // Outputs
103
           .rRES_BSF                    (rRES_BSF[31:0]),
104
           // Inputs
105
           .rOPA                        (rOPA[31:0]),
106
           .rOPB                        (rOPB[31:0]),
107
           .rALT                        (rALT[10:0]));
108
 
109
 
110
   // --- NON-OPTIONAL COMPONENTS -------------------------------
111
 
112
   aeMB_scon
113
     scon (/*AUTOINST*/
114
           // Outputs
115
           .grst                        (grst),
116
           .gclk                        (gclk),
117
           .gena                        (gena),
118
           // Inputs
119
           .rOPC                        (rOPC[5:0]),
120
           .rDWBSTB                     (rDWBSTB),
121
           .dwb_ack_i                   (dwb_ack_i),
122
           .iwb_ack_i                   (iwb_ack_i),
123
           .rMSR_IE                     (rMSR_IE),
124
           .rBRA                        (rBRA),
125
           .rDLY                        (rDLY),
126
           .sys_clk_i                   (sys_clk_i),
127
           .sys_rst_i                   (sys_rst_i),
128
           .sys_int_i                   (sys_int_i));
129
 
130
   aeMB_ibuf
131
     ibuf (/*AUTOINST*/
132
           // Outputs
133
           .rIMM                        (rIMM[15:0]),
134
           .rRA                         (rRA[4:0]),
135
           .rRD                         (rRD[4:0]),
136
           .rRB                         (rRB[4:0]),
137
           .rALT                        (rALT[10:0]),
138
           .rOPC                        (rOPC[5:0]),
139
           .rSIMM                       (rSIMM[31:0]),
140
           .iwb_stb_o                   (iwb_stb_o),
141
           // Inputs
142
           .rBRA                        (rBRA),
143
           .rXCE                        (rXCE[1:0]),
144
           .iwb_dat_i                   (iwb_dat_i[31:0]),
145
           .iwb_ack_i                   (iwb_ack_i),
146
           .gclk                        (gclk),
147
           .grst                        (grst),
148
           .gena                        (gena));
149
 
150
   aeMB_ctrl
151
     ctrl (/*AUTOINST*/
152
           // Outputs
153
           .rMXDST                      (rMXDST[1:0]),
154
           .rMXSRC                      (rMXSRC[1:0]),
155
           .rMXTGT                      (rMXTGT[1:0]),
156
           .rMXALT                      (rMXALT[1:0]),
157
           .rMXALU                      (rMXALU[2:0]),
158
           .rRW                         (rRW[4:0]),
159
           .rDWBSTB                     (rDWBSTB),
160
           .rXCE                        (rXCE[1:0]),
161
           .dwb_stb_o                   (dwb_stb_o),
162
           .dwb_wre_o                   (dwb_wre_o),
163
           // Inputs
164
           .rDLY                        (rDLY),
165
           .rIMM                        (rIMM[15:0]),
166
           .rALT                        (rALT[10:0]),
167
           .rOPC                        (rOPC[5:0]),
168
           .rRD                         (rRD[4:0]),
169
           .rRA                         (rRA[4:0]),
170
           .rRB                         (rRB[4:0]),
171
           .rPC                         (rPC[31:2]),
172
           .rBRA                        (rBRA),
173
           .rMSR_IE                     (rMSR_IE),
174
           .gclk                        (gclk),
175
           .grst                        (grst),
176
           .gena                        (gena),
177
           .sys_int_i                   (sys_int_i));
178
 
179
   aeMB_bpcu #(IW)
180
     bpcu (/*AUTOINST*/
181
           // Outputs
182
           .iwb_adr_o                   (iwb_adr_o[IW-1:2]),
183
           .rPC                         (rPC[31:2]),
184
           .rPCLNK                      (rPCLNK[31:2]),
185
           .rBRA                        (rBRA),
186
           .rDLY                        (rDLY),
187
           // Inputs
188
           .rMXALT                      (rMXALT[1:0]),
189
           .rOPC                        (rOPC[5:0]),
190
           .rRD                         (rRD[4:0]),
191
           .rRA                         (rRA[4:0]),
192
           .rRESULT                     (rRESULT[31:0]),
193
           .rDWBDI                      (rDWBDI[31:0]),
194
           .rREGA                       (rREGA[31:0]),
195
           .rXCE                        (rXCE[1:0]),
196
           .gclk                        (gclk),
197
           .grst                        (grst),
198
           .gena                        (gena));
199
 
200
   aeMB_regf
201
     regf (/*AUTOINST*/
202
           // Outputs
203
           .rREGA                       (rREGA[31:0]),
204
           .rREGB                       (rREGB[31:0]),
205
           .rDWBDI                      (rDWBDI[31:0]),
206
           .dwb_dat_o                   (dwb_dat_o[31:0]),
207
           // Inputs
208
           .rOPC                        (rOPC[5:0]),
209
           .rRA                         (rRA[4:0]),
210
           .rRB                         (rRB[4:0]),
211
           .rRW                         (rRW[4:0]),
212
           .rRD                         (rRD[4:0]),
213
           .rMXDST                      (rMXDST[1:0]),
214
           .rPCLNK                      (rPCLNK[31:2]),
215
           .rRESULT                     (rRESULT[31:0]),
216
           .rDWBSEL                     (rDWBSEL[3:0]),
217
           .rBRA                        (rBRA),
218
           .rDLY                        (rDLY),
219
           .dwb_dat_i                   (dwb_dat_i[31:0]),
220
           .gclk                        (gclk),
221
           .grst                        (grst),
222
           .gena                        (gena));
223
 
224
   aeMB_xecu #(DW)
225
     xecu (
226
           .rOPA                        (rOPA[31:0]),
227
           .rOPB                        (rOPB[31:0]),
228
           /*AUTOINST*/
229
           // Outputs
230
           .dwb_adr_o                   (dwb_adr_o[DW-1:2]),
231
           .dwb_sel_o                   (dwb_sel_o[3:0]),
232
           .rRESULT                     (rRESULT[31:0]),
233
           .rDWBSEL                     (rDWBSEL[3:0]),
234
           .rMSR_IE                     (rMSR_IE),
235
           // Inputs
236
           .rREGA                       (rREGA[31:0]),
237
           .rREGB                       (rREGB[31:0]),
238
           .rMXSRC                      (rMXSRC[1:0]),
239
           .rMXTGT                      (rMXTGT[1:0]),
240
           .rRA                         (rRA[4:0]),
241
           .rMXALU                      (rMXALU[2:0]),
242
           .rBRA                        (rBRA),
243
           .rDLY                        (rDLY),
244
           .rXCE                        (rXCE[1:0]),
245
           .rSIMM                       (rSIMM[31:0]),
246
           .rIMM                        (rIMM[15:0]),
247
           .rOPC                        (rOPC[5:0]),
248
           .rRD                         (rRD[4:0]),
249
           .rDWBDI                      (rDWBDI[31:0]),
250
           .rPC                         (rPC[31:2]),
251
           .rRES_MUL                    (rRES_MUL[31:0]),
252
           .rRES_BSF                    (rRES_BSF[31:0]),
253
           .gclk                        (gclk),
254
           .grst                        (grst),
255
           .gena                        (gena));
256
 
257
 
258
endmodule // aeMB_edk32

powered by: WebSVN 2.1.0

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