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

Subversion Repositories aemb

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

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

Line No. Rev Author Line
1 118 sybreon
/* $Id: aeMB2_memif.v,v 1.1 2008-04-18 00:21:52 sybreon Exp $
2
**
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
/**
23
 * Memory Interface Wrapper
24
 * @file aeMB2_memif.v
25
 
26
 * A wrapper for the data/xsel bus interfaces.
27
 
28
 */
29
 
30
module aeMB2_memif (/*AUTOARG*/
31
   // Outputs
32
   xwb_wre_o, xwb_tag_o, xwb_stb_o, xwb_sel_o, xwb_mx, xwb_fb,
33
   xwb_dat_o, xwb_cyc_o, xwb_adr_o, sel_mx, dwb_wre_o, dwb_tag_o,
34
   dwb_stb_o, dwb_sel_o, dwb_mx, dwb_fb, dwb_dat_o, dwb_cyc_o,
35
   dwb_adr_o,
36
   // Inputs
37
   xwb_dat_i, xwb_ack_i, opd_of, opc_of, opb_of, opa_of, msr_ex,
38
   mem_ex, imm_of, grst, gpha, gclk, dwb_dat_i, dwb_ack_i, dena
39
   );
40
   parameter AEMB_DWB = 32;
41
   parameter AEMB_XWB = 3;
42
   parameter AEMB_XSL = 1;
43
 
44
   /*AUTOOUTPUT*/
45
   // Beginning of automatic outputs (from unused autoinst outputs)
46
   output [AEMB_DWB-1:2] dwb_adr_o;             // From dwbif0 of aeMB2_dwbif.v
47
   output               dwb_cyc_o;              // From dwbif0 of aeMB2_dwbif.v
48
   output [31:0] dwb_dat_o;              // From dwbif0 of aeMB2_dwbif.v
49
   output               dwb_fb;                 // From dwbif0 of aeMB2_dwbif.v
50
   output [31:0] dwb_mx;                 // From dwbif0 of aeMB2_dwbif.v
51
   output [3:0]          dwb_sel_o;              // From dwbif0 of aeMB2_dwbif.v
52
   output               dwb_stb_o;              // From dwbif0 of aeMB2_dwbif.v
53
   output               dwb_tag_o;              // From dwbif0 of aeMB2_dwbif.v
54
   output               dwb_wre_o;              // From dwbif0 of aeMB2_dwbif.v
55
   output [3:0]          sel_mx;                 // From dwbif0 of aeMB2_dwbif.v
56
   output [AEMB_XWB+1:2] xwb_adr_o;             // From xslif0 of aeMB2_xslif.v
57
   output               xwb_cyc_o;              // From xslif0 of aeMB2_xslif.v
58
   output [31:0] xwb_dat_o;              // From xslif0 of aeMB2_xslif.v
59
   output               xwb_fb;                 // From xslif0 of aeMB2_xslif.v
60
   output [31:0] xwb_mx;                 // From xslif0 of aeMB2_xslif.v
61
   output [3:0]          xwb_sel_o;              // From xslif0 of aeMB2_xslif.v
62
   output               xwb_stb_o;              // From xslif0 of aeMB2_xslif.v
63
   output               xwb_tag_o;              // From xslif0 of aeMB2_xslif.v
64
   output               xwb_wre_o;              // From xslif0 of aeMB2_xslif.v
65
   // End of automatics
66
   /*AUTOINPUT*/
67
   // Beginning of automatic inputs (from unused autoinst inputs)
68
   input                dena;                   // To xslif0 of aeMB2_xslif.v, ...
69
   input                dwb_ack_i;              // To dwbif0 of aeMB2_dwbif.v
70
   input [31:0]          dwb_dat_i;              // To dwbif0 of aeMB2_dwbif.v
71
   input                gclk;                   // To xslif0 of aeMB2_xslif.v, ...
72
   input                gpha;                   // To xslif0 of aeMB2_xslif.v, ...
73
   input                grst;                   // To xslif0 of aeMB2_xslif.v, ...
74
   input [15:0]          imm_of;                 // To xslif0 of aeMB2_xslif.v, ...
75
   input [AEMB_DWB-1:2] mem_ex;                 // To dwbif0 of aeMB2_dwbif.v
76
   input [7:0]           msr_ex;                 // To dwbif0 of aeMB2_dwbif.v
77
   input [31:0]          opa_of;                 // To xslif0 of aeMB2_xslif.v, ...
78
   input [1:0]           opb_of;                 // To dwbif0 of aeMB2_dwbif.v
79
   input [5:0]           opc_of;                 // To xslif0 of aeMB2_xslif.v, ...
80
   input [31:0]          opd_of;                 // To dwbif0 of aeMB2_dwbif.v
81
   input                xwb_ack_i;              // To xslif0 of aeMB2_xslif.v
82
   input [31:0]          xwb_dat_i;              // To xslif0 of aeMB2_xslif.v
83
   // End of automatics
84
   /*AUTOWIRE*/
85
 
86
   aeMB2_xslif
87
     #(/*AUTOINSTPARAM*/
88
       // Parameters
89
       .AEMB_XSL                        (AEMB_XSL),
90
       .AEMB_XWB                        (AEMB_XWB))
91
   xslif0
92
     (/*AUTOINST*/
93
      // Outputs
94
      .xwb_adr_o                        (xwb_adr_o[AEMB_XWB+1:2]),
95
      .xwb_dat_o                        (xwb_dat_o[31:0]),
96
      .xwb_sel_o                        (xwb_sel_o[3:0]),
97
      .xwb_tag_o                        (xwb_tag_o),
98
      .xwb_stb_o                        (xwb_stb_o),
99
      .xwb_cyc_o                        (xwb_cyc_o),
100
      .xwb_wre_o                        (xwb_wre_o),
101
      .xwb_fb                           (xwb_fb),
102
      .xwb_mx                           (xwb_mx[31:0]),
103
      // Inputs
104
      .xwb_dat_i                        (xwb_dat_i[31:0]),
105
      .xwb_ack_i                        (xwb_ack_i),
106
      .imm_of                           (imm_of[15:0]),
107
      .opc_of                           (opc_of[5:0]),
108
      .opa_of                           (opa_of[31:0]),
109
      .gclk                             (gclk),
110
      .grst                             (grst),
111
      .dena                             (dena),
112
      .gpha                             (gpha));
113
 
114
   aeMB2_dwbif
115
     #(/*AUTOINSTPARAM*/
116
       // Parameters
117
       .AEMB_DWB                        (AEMB_DWB))
118
   dwbif0
119
     (/*AUTOINST*/
120
      // Outputs
121
      .dwb_adr_o                        (dwb_adr_o[AEMB_DWB-1:2]),
122
      .dwb_sel_o                        (dwb_sel_o[3:0]),
123
      .dwb_stb_o                        (dwb_stb_o),
124
      .dwb_cyc_o                        (dwb_cyc_o),
125
      .dwb_tag_o                        (dwb_tag_o),
126
      .dwb_wre_o                        (dwb_wre_o),
127
      .dwb_dat_o                        (dwb_dat_o[31:0]),
128
      .dwb_fb                           (dwb_fb),
129
      .sel_mx                           (sel_mx[3:0]),
130
      .dwb_mx                           (dwb_mx[31:0]),
131
      // Inputs
132
      .dwb_dat_i                        (dwb_dat_i[31:0]),
133
      .dwb_ack_i                        (dwb_ack_i),
134
      .imm_of                           (imm_of[15:0]),
135
      .opd_of                           (opd_of[31:0]),
136
      .opc_of                           (opc_of[5:0]),
137
      .opa_of                           (opa_of[1:0]),
138
      .opb_of                           (opb_of[1:0]),
139
      .msr_ex                           (msr_ex[7:0]),
140
      .mem_ex                           (mem_ex[AEMB_DWB-1:2]),
141
      .gclk                             (gclk),
142
      .grst                             (grst),
143
      .dena                             (dena),
144
      .gpha                             (gpha));
145
 
146
 
147
endmodule // aeMB2_memif
148
 
149
// $Log: not supported by cvs2svn $

powered by: WebSVN 2.1.0

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