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

Subversion Repositories aemb

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

Go to most recent revision | 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
   xwb_dat_o, xwb_cyc_o, xwb_adr_o, sel_mx, dwb_wre_o, dwb_tag_o,
35
   dwb_stb_o, dwb_sel_o, dwb_mx, dwb_fb, dwb_dat_o, dwb_cyc_o,
36
   dwb_adr_o,
37
   // 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
   output [3:0]          sel_mx;                 // From dwbif0 of aeMB2_dwbif.v
58 131 sybreon
   output [AEMB_XWB-1:2] xwb_adr_o;             // From xslif0 of aeMB2_xslif.v
59 118 sybreon
   output               xwb_cyc_o;              // From xslif0 of aeMB2_xslif.v
60
   output [31:0] xwb_dat_o;              // From xslif0 of aeMB2_xslif.v
61
   output               xwb_fb;                 // From xslif0 of aeMB2_xslif.v
62
   output [31:0] xwb_mx;                 // From xslif0 of aeMB2_xslif.v
63
   output [3:0]          xwb_sel_o;              // From xslif0 of aeMB2_xslif.v
64
   output               xwb_stb_o;              // From xslif0 of aeMB2_xslif.v
65
   output               xwb_tag_o;              // From xslif0 of aeMB2_xslif.v
66
   output               xwb_wre_o;              // From xslif0 of aeMB2_xslif.v
67
   // End of automatics
68
   /*AUTOINPUT*/
69
   // Beginning of automatic inputs (from unused autoinst inputs)
70
   input                dena;                   // To xslif0 of aeMB2_xslif.v, ...
71
   input                dwb_ack_i;              // To dwbif0 of aeMB2_dwbif.v
72
   input [31:0]          dwb_dat_i;              // To dwbif0 of aeMB2_dwbif.v
73
   input                gclk;                   // To xslif0 of aeMB2_xslif.v, ...
74
   input                gpha;                   // To xslif0 of aeMB2_xslif.v, ...
75
   input                grst;                   // To xslif0 of aeMB2_xslif.v, ...
76
   input [15:0]          imm_of;                 // To xslif0 of aeMB2_xslif.v, ...
77
   input [AEMB_DWB-1:2] mem_ex;                 // To dwbif0 of aeMB2_dwbif.v
78
   input [7:0]           msr_ex;                 // To dwbif0 of aeMB2_dwbif.v
79
   input [31:0]          opa_of;                 // To xslif0 of aeMB2_xslif.v, ...
80
   input [1:0]           opb_of;                 // To dwbif0 of aeMB2_dwbif.v
81
   input [5:0]           opc_of;                 // To xslif0 of aeMB2_xslif.v, ...
82
   input [31:0]          opd_of;                 // To dwbif0 of aeMB2_dwbif.v
83 131 sybreon
   input [7:5]          sfr_mx;                 // To dwbif0 of aeMB2_dwbif.v
84 118 sybreon
   input                xwb_ack_i;              // To xslif0 of aeMB2_xslif.v
85
   input [31:0]          xwb_dat_i;              // To xslif0 of aeMB2_xslif.v
86
   // End of automatics
87
   /*AUTOWIRE*/
88
 
89
   aeMB2_xslif
90
     #(/*AUTOINSTPARAM*/
91
       // Parameters
92
       .AEMB_XSL                        (AEMB_XSL),
93
       .AEMB_XWB                        (AEMB_XWB))
94
   xslif0
95
     (/*AUTOINST*/
96
      // Outputs
97 131 sybreon
      .xwb_adr_o                        (xwb_adr_o[AEMB_XWB-1:2]),
98 118 sybreon
      .xwb_dat_o                        (xwb_dat_o[31:0]),
99
      .xwb_sel_o                        (xwb_sel_o[3:0]),
100
      .xwb_tag_o                        (xwb_tag_o),
101
      .xwb_stb_o                        (xwb_stb_o),
102
      .xwb_cyc_o                        (xwb_cyc_o),
103
      .xwb_wre_o                        (xwb_wre_o),
104
      .xwb_fb                           (xwb_fb),
105
      .xwb_mx                           (xwb_mx[31:0]),
106
      // Inputs
107
      .xwb_dat_i                        (xwb_dat_i[31:0]),
108
      .xwb_ack_i                        (xwb_ack_i),
109
      .imm_of                           (imm_of[15:0]),
110
      .opc_of                           (opc_of[5:0]),
111
      .opa_of                           (opa_of[31:0]),
112
      .gclk                             (gclk),
113
      .grst                             (grst),
114
      .dena                             (dena),
115
      .gpha                             (gpha));
116
 
117
   aeMB2_dwbif
118
     #(/*AUTOINSTPARAM*/
119
       // Parameters
120
       .AEMB_DWB                        (AEMB_DWB))
121
   dwbif0
122
     (/*AUTOINST*/
123
      // Outputs
124
      .dwb_adr_o                        (dwb_adr_o[AEMB_DWB-1:2]),
125
      .dwb_sel_o                        (dwb_sel_o[3:0]),
126
      .dwb_stb_o                        (dwb_stb_o),
127
      .dwb_cyc_o                        (dwb_cyc_o),
128
      .dwb_tag_o                        (dwb_tag_o),
129
      .dwb_wre_o                        (dwb_wre_o),
130
      .dwb_dat_o                        (dwb_dat_o[31:0]),
131
      .dwb_fb                           (dwb_fb),
132
      .sel_mx                           (sel_mx[3:0]),
133
      .dwb_mx                           (dwb_mx[31:0]),
134
      // Inputs
135
      .dwb_dat_i                        (dwb_dat_i[31:0]),
136
      .dwb_ack_i                        (dwb_ack_i),
137
      .imm_of                           (imm_of[15:0]),
138
      .opd_of                           (opd_of[31:0]),
139
      .opc_of                           (opc_of[5:0]),
140
      .opa_of                           (opa_of[1:0]),
141
      .opb_of                           (opb_of[1:0]),
142
      .msr_ex                           (msr_ex[7:0]),
143
      .mem_ex                           (mem_ex[AEMB_DWB-1:2]),
144 131 sybreon
      .sfr_mx                           (sfr_mx[7:5]),
145 118 sybreon
      .gclk                             (gclk),
146
      .grst                             (grst),
147
      .dena                             (dena),
148
      .gpha                             (gpha));
149
 
150
 
151
endmodule // aeMB2_memif
152
 
153 131 sybreon
/*
154
 $Log: not supported by cvs2svn $
155 134 sybreon
 Revision 1.2  2008/04/26 01:09:06  sybreon
156
 Passes basic tests. Minor documentation changes to make it compatible with iverilog pre-processor.
157
 
158 131 sybreon
 Revision 1.1  2008/04/18 00:21:52  sybreon
159
 Initial import.
160
*/

powered by: WebSVN 2.1.0

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