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

Subversion Repositories aemb

[/] [aemb/] [trunk/] [rtl/] [verilog/] [aeMB2_memif.v] - Blame information for rev 206

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 134 sybreon
/* $Id: aeMB2_memif.v,v 1.3 2008-04-26 17:57:43 sybreon Exp $
2 118 sybreon
**
3
** AEMB2 EDK 6.2 COMPATIBLE CORE
4
** Copyright (C) 2004-2008 Shawn Tan <shawn.tan@aeste.net>
5
**
6
** This file is part of AEMB.
7
**
8
** AEMB is free software: you can redistribute it and/or modify it
9
** under the terms of the GNU Lesser General Public License as
10
** published by the Free Software Foundation, either version 3 of the
11
** License, or (at your option) any later version.
12
**
13
** AEMB is distributed in the hope that it will be useful, but WITHOUT
14
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15
** or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General
16
** Public License for more details.
17
**
18
** You should have received a copy of the GNU Lesser General Public
19
** License along with AEMB. If not, see <http:**www.gnu.org/licenses/>.
20
*/
21
/**
22
 * Memory Interface Wrapper
23
 * @file aeMB2_memif.v
24
 
25
 * A wrapper for the data/xsel bus interfaces.
26
 
27
 */
28
 
29 134 sybreon
// 89@380
30
 
31 118 sybreon
module aeMB2_memif (/*AUTOARG*/
32
   // Outputs
33
   xwb_wre_o, xwb_tag_o, xwb_stb_o, xwb_sel_o, xwb_mx, xwb_fb,
34 206 sybreon
   xwb_dat_o, xwb_cyc_o, xwb_adr_o, sel_mx, exc_dwb, dwb_wre_o,
35
   dwb_tag_o, dwb_stb_o, dwb_sel_o, dwb_mx, dwb_fb, dwb_dat_o,
36
   dwb_cyc_o, dwb_adr_o,
37 118 sybreon
   // Inputs
38 131 sybreon
   xwb_dat_i, xwb_ack_i, sfr_mx, opd_of, opc_of, opb_of, opa_of,
39
   msr_ex, mem_ex, imm_of, grst, gpha, gclk, dwb_dat_i, dwb_ack_i,
40
   dena
41 118 sybreon
   );
42
   parameter AEMB_DWB = 32;
43
   parameter AEMB_XWB = 3;
44
   parameter AEMB_XSL = 1;
45
 
46
   /*AUTOOUTPUT*/
47
   // Beginning of automatic outputs (from unused autoinst outputs)
48
   output [AEMB_DWB-1:2] dwb_adr_o;             // From dwbif0 of aeMB2_dwbif.v
49
   output               dwb_cyc_o;              // From dwbif0 of aeMB2_dwbif.v
50
   output [31:0] dwb_dat_o;              // From dwbif0 of aeMB2_dwbif.v
51
   output               dwb_fb;                 // From dwbif0 of aeMB2_dwbif.v
52
   output [31:0] dwb_mx;                 // From dwbif0 of aeMB2_dwbif.v
53
   output [3:0]          dwb_sel_o;              // From dwbif0 of aeMB2_dwbif.v
54
   output               dwb_stb_o;              // From dwbif0 of aeMB2_dwbif.v
55
   output               dwb_tag_o;              // From dwbif0 of aeMB2_dwbif.v
56
   output               dwb_wre_o;              // From dwbif0 of aeMB2_dwbif.v
57 206 sybreon
   output [1:0]          exc_dwb;                // From dwbif0 of aeMB2_dwbif.v
58 118 sybreon
   output [3:0]          sel_mx;                 // From dwbif0 of aeMB2_dwbif.v
59 131 sybreon
   output [AEMB_XWB-1:2] xwb_adr_o;             // From xslif0 of aeMB2_xslif.v
60 118 sybreon
   output               xwb_cyc_o;              // From xslif0 of aeMB2_xslif.v
61
   output [31:0] xwb_dat_o;              // From xslif0 of aeMB2_xslif.v
62
   output               xwb_fb;                 // From xslif0 of aeMB2_xslif.v
63
   output [31:0] xwb_mx;                 // From xslif0 of aeMB2_xslif.v
64
   output [3:0]          xwb_sel_o;              // From xslif0 of aeMB2_xslif.v
65
   output               xwb_stb_o;              // From xslif0 of aeMB2_xslif.v
66
   output               xwb_tag_o;              // From xslif0 of aeMB2_xslif.v
67
   output               xwb_wre_o;              // From xslif0 of aeMB2_xslif.v
68
   // End of automatics
69
   /*AUTOINPUT*/
70
   // Beginning of automatic inputs (from unused autoinst inputs)
71
   input                dena;                   // To xslif0 of aeMB2_xslif.v, ...
72
   input                dwb_ack_i;              // To dwbif0 of aeMB2_dwbif.v
73
   input [31:0]          dwb_dat_i;              // To dwbif0 of aeMB2_dwbif.v
74
   input                gclk;                   // To xslif0 of aeMB2_xslif.v, ...
75
   input                gpha;                   // To xslif0 of aeMB2_xslif.v, ...
76
   input                grst;                   // To xslif0 of aeMB2_xslif.v, ...
77
   input [15:0]          imm_of;                 // To xslif0 of aeMB2_xslif.v, ...
78
   input [AEMB_DWB-1:2] mem_ex;                 // To dwbif0 of aeMB2_dwbif.v
79
   input [7:0]           msr_ex;                 // To dwbif0 of aeMB2_dwbif.v
80
   input [31:0]          opa_of;                 // To xslif0 of aeMB2_xslif.v, ...
81
   input [1:0]           opb_of;                 // To dwbif0 of aeMB2_dwbif.v
82
   input [5:0]           opc_of;                 // To xslif0 of aeMB2_xslif.v, ...
83
   input [31:0]          opd_of;                 // To dwbif0 of aeMB2_dwbif.v
84 131 sybreon
   input [7:5]          sfr_mx;                 // To dwbif0 of aeMB2_dwbif.v
85 118 sybreon
   input                xwb_ack_i;              // To xslif0 of aeMB2_xslif.v
86
   input [31:0]          xwb_dat_i;              // To xslif0 of aeMB2_xslif.v
87
   // End of automatics
88
   /*AUTOWIRE*/
89
 
90
   aeMB2_xslif
91
     #(/*AUTOINSTPARAM*/
92
       // Parameters
93
       .AEMB_XSL                        (AEMB_XSL),
94
       .AEMB_XWB                        (AEMB_XWB))
95
   xslif0
96
     (/*AUTOINST*/
97
      // Outputs
98 131 sybreon
      .xwb_adr_o                        (xwb_adr_o[AEMB_XWB-1:2]),
99 118 sybreon
      .xwb_dat_o                        (xwb_dat_o[31:0]),
100
      .xwb_sel_o                        (xwb_sel_o[3:0]),
101
      .xwb_tag_o                        (xwb_tag_o),
102
      .xwb_stb_o                        (xwb_stb_o),
103
      .xwb_cyc_o                        (xwb_cyc_o),
104
      .xwb_wre_o                        (xwb_wre_o),
105
      .xwb_fb                           (xwb_fb),
106
      .xwb_mx                           (xwb_mx[31:0]),
107
      // Inputs
108
      .xwb_dat_i                        (xwb_dat_i[31:0]),
109
      .xwb_ack_i                        (xwb_ack_i),
110
      .imm_of                           (imm_of[15:0]),
111
      .opc_of                           (opc_of[5:0]),
112
      .opa_of                           (opa_of[31:0]),
113
      .gclk                             (gclk),
114
      .grst                             (grst),
115
      .dena                             (dena),
116
      .gpha                             (gpha));
117
 
118
   aeMB2_dwbif
119
     #(/*AUTOINSTPARAM*/
120
       // Parameters
121
       .AEMB_DWB                        (AEMB_DWB))
122
   dwbif0
123
     (/*AUTOINST*/
124
      // Outputs
125
      .dwb_adr_o                        (dwb_adr_o[AEMB_DWB-1:2]),
126
      .dwb_sel_o                        (dwb_sel_o[3:0]),
127
      .dwb_stb_o                        (dwb_stb_o),
128
      .dwb_cyc_o                        (dwb_cyc_o),
129
      .dwb_tag_o                        (dwb_tag_o),
130
      .dwb_wre_o                        (dwb_wre_o),
131
      .dwb_dat_o                        (dwb_dat_o[31:0]),
132
      .dwb_fb                           (dwb_fb),
133
      .sel_mx                           (sel_mx[3:0]),
134
      .dwb_mx                           (dwb_mx[31:0]),
135 206 sybreon
      .exc_dwb                          (exc_dwb[1:0]),
136 118 sybreon
      // Inputs
137
      .dwb_dat_i                        (dwb_dat_i[31:0]),
138
      .dwb_ack_i                        (dwb_ack_i),
139
      .imm_of                           (imm_of[15:0]),
140
      .opd_of                           (opd_of[31:0]),
141
      .opc_of                           (opc_of[5:0]),
142
      .opa_of                           (opa_of[1:0]),
143
      .opb_of                           (opb_of[1:0]),
144
      .msr_ex                           (msr_ex[7:0]),
145
      .mem_ex                           (mem_ex[AEMB_DWB-1:2]),
146 131 sybreon
      .sfr_mx                           (sfr_mx[7:5]),
147 118 sybreon
      .gclk                             (gclk),
148
      .grst                             (grst),
149
      .dena                             (dena),
150
      .gpha                             (gpha));
151
 
152
 
153
endmodule // aeMB2_memif
154
 
155 131 sybreon
/*
156
 $Log: not supported by cvs2svn $
157 134 sybreon
 Revision 1.2  2008/04/26 01:09:06  sybreon
158
 Passes basic tests. Minor documentation changes to make it compatible with iverilog pre-processor.
159
 
160 131 sybreon
 Revision 1.1  2008/04/18 00:21:52  sybreon
161
 Initial import.
162
*/

powered by: WebSVN 2.1.0

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