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

Subversion Repositories ac97

[/] [ac97/] [trunk/] [rtl/] [verilog/] [ac97_dma_if.v] - Blame information for rev 20

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 4 rudi
/////////////////////////////////////////////////////////////////////
2
////                                                             ////
3
////  WISHBONE AC 97 Controller                                  ////
4
////  DMA Interface                                              ////
5
////                                                             ////
6
////                                                             ////
7
////  Author: Rudolf Usselmann                                   ////
8
////          rudi@asics.ws                                      ////
9
////                                                             ////
10
////                                                             ////
11
////  Downloaded from: http://www.opencores.org/cores/ac97_ctrl/ ////
12
////                                                             ////
13
/////////////////////////////////////////////////////////////////////
14
////                                                             ////
15 14 rudi
//// Copyright (C) 2000-2002 Rudolf Usselmann                    ////
16
////                         www.asics.ws                        ////
17
////                         rudi@asics.ws                       ////
18 4 rudi
////                                                             ////
19
//// This source file may be used and distributed without        ////
20
//// restriction provided that this copyright statement is not   ////
21
//// removed from the file and that any derivative work contains ////
22
//// the original copyright notice and the associated disclaimer.////
23
////                                                             ////
24
////     THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY     ////
25
//// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED   ////
26
//// TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS   ////
27
//// FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL THE AUTHOR      ////
28
//// OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,         ////
29
//// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES    ////
30
//// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE   ////
31
//// GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR        ////
32
//// BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF  ////
33
//// LIABILITY, WHETHER IN  CONTRACT, STRICT LIABILITY, OR TORT  ////
34
//// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT  ////
35
//// OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE         ////
36
//// POSSIBILITY OF SUCH DAMAGE.                                 ////
37
////                                                             ////
38
/////////////////////////////////////////////////////////////////////
39
 
40
//  CVS Log
41
//
42 14 rudi
//  $Id: ac97_dma_if.v,v 1.4 2002-09-19 06:30:56 rudi Exp $
43 4 rudi
//
44 14 rudi
//  $Date: 2002-09-19 06:30:56 $
45
//  $Revision: 1.4 $
46 4 rudi
//  $Author: rudi $
47
//  $Locker:  $
48
//  $State: Exp $
49
//
50
// Change History:
51
//               $Log: not supported by cvs2svn $
52 14 rudi
//               Revision 1.3  2002/03/05 04:44:05  rudi
53
//
54
//               - Fixed the order of the thrash hold bits to match the spec.
55
//               - Many minor synthesis cleanup items ...
56
//
57 10 rudi
//               Revision 1.2  2001/08/10 08:09:42  rudi
58
//
59
//               - Removed RTY_O output.
60
//               - Added Clock and Reset Inputs to documentation.
61
//               - Changed IO names to be more clear.
62
//               - Uniquifyed define names to be core specific.
63
//
64 6 rudi
//               Revision 1.1  2001/08/03 06:54:49  rudi
65
//
66
//
67
//               - Changed to new directory structure
68
//
69 4 rudi
//               Revision 1.1.1.1  2001/05/19 02:29:18  rudi
70
//               Initial Checkin
71
//
72
//
73
//
74
//
75
 
76
`include "ac97_defines.v"
77
 
78
module ac97_dma_if(clk, rst,
79
                o3_status, o4_status, o6_status, o7_status, o8_status, o9_status,
80
                o3_empty, o4_empty, o6_empty, o7_empty, o8_empty, o9_empty,
81
                i3_status, i4_status, i6_status,
82
                i3_full, i4_full, i6_full,
83
 
84
                oc0_cfg, oc1_cfg, oc2_cfg, oc3_cfg, oc4_cfg, oc5_cfg,
85
                ic0_cfg, ic1_cfg, ic2_cfg,
86
 
87
                dma_req, dma_ack);
88
 
89
input           clk, rst;
90
input   [1:0]    o3_status, o4_status, o6_status, o7_status, o8_status, o9_status;
91
input           o3_empty, o4_empty, o6_empty, o7_empty, o8_empty, o9_empty;
92
input   [1:0]    i3_status, i4_status, i6_status;
93
input           i3_full, i4_full, i6_full;
94
input   [7:0]    oc0_cfg;
95
input   [7:0]    oc1_cfg;
96
input   [7:0]    oc2_cfg;
97
input   [7:0]    oc3_cfg;
98
input   [7:0]    oc4_cfg;
99
input   [7:0]    oc5_cfg;
100
input   [7:0]    ic0_cfg;
101
input   [7:0]    ic1_cfg;
102
input   [7:0]    ic2_cfg;
103
output  [8:0]    dma_req;
104
input   [8:0]    dma_ack;
105
 
106
////////////////////////////////////////////////////////////////////
107
//
108
// DMA Request Modules
109
//
110
 
111
ac97_dma_req u0(.clk(           clk             ),
112
                .rst(           rst             ),
113
                .cfg(           oc0_cfg         ),
114
                .status(        o3_status       ),
115
                .full_empty(    o3_empty        ),
116
                .dma_req(       dma_req[0]       ),
117
                .dma_ack(       dma_ack[0]       )
118
                );
119
 
120
ac97_dma_req u1(.clk(           clk             ),
121
                .rst(           rst             ),
122
                .cfg(           oc1_cfg         ),
123
                .status(        o4_status       ),
124
                .full_empty(    o4_empty        ),
125
                .dma_req(       dma_req[1]      ),
126
                .dma_ack(       dma_ack[1]      )
127
                );
128
 
129 6 rudi
`ifdef AC97_CENTER
130 4 rudi
ac97_dma_req u2(.clk(           clk             ),
131
                .rst(           rst             ),
132
                .cfg(           oc2_cfg         ),
133
                .status(        o6_status       ),
134
                .full_empty(    o6_empty        ),
135
                .dma_req(       dma_req[2]      ),
136
                .dma_ack(       dma_ack[2]      )
137
                );
138
`else
139 10 rudi
assign dma_req[2] = 1'b0;
140 4 rudi
`endif
141
 
142 6 rudi
`ifdef AC97_SURROUND
143 4 rudi
ac97_dma_req u3(.clk(           clk             ),
144
                .rst(           rst             ),
145
                .cfg(           oc3_cfg         ),
146
                .status(        o7_status       ),
147
                .full_empty(    o7_empty        ),
148
                .dma_req(       dma_req[3]      ),
149
                .dma_ack(       dma_ack[3]      )
150
                );
151
 
152
ac97_dma_req u4(.clk(           clk             ),
153
                .rst(           rst             ),
154
                .cfg(           oc4_cfg         ),
155
                .status(        o8_status       ),
156
                .full_empty(    o8_empty        ),
157
                .dma_req(       dma_req[4]      ),
158
                .dma_ack(       dma_ack[4]      )
159
                );
160
`else
161 10 rudi
assign dma_req[3] = 1'b0;
162
assign dma_req[4] = 1'b0;
163 4 rudi
`endif
164
 
165 6 rudi
`ifdef AC97_LFE
166 4 rudi
ac97_dma_req u5(.clk(           clk             ),
167
                .rst(           rst             ),
168
                .cfg(           oc5_cfg         ),
169
                .status(        o9_status       ),
170
                .full_empty(    o9_empty        ),
171
                .dma_req(       dma_req[5]      ),
172
                .dma_ack(       dma_ack[5]      )
173
                );
174
`else
175 10 rudi
assign dma_req[5] = 1'b0;
176 4 rudi
`endif
177
 
178 6 rudi
`ifdef AC97_SIN
179 4 rudi
ac97_dma_req u6(.clk(           clk             ),
180
                .rst(           rst             ),
181
                .cfg(           ic0_cfg         ),
182
                .status(        i3_status       ),
183
                .full_empty(    i3_full         ),
184
                .dma_req(       dma_req[6]      ),
185
                .dma_ack(       dma_ack[6]      )
186
                );
187
 
188
ac97_dma_req u7(.clk(           clk             ),
189
                .rst(           rst             ),
190
                .cfg(           ic1_cfg         ),
191
                .status(        i4_status       ),
192
                .full_empty(    i4_full         ),
193
                .dma_req(       dma_req[7]      ),
194
                .dma_ack(       dma_ack[7]      )
195
                );
196
`else
197 10 rudi
assign dma_req[6] = 1'b0;
198
assign dma_req[7] = 1'b0;
199 4 rudi
`endif
200
 
201 6 rudi
`ifdef AC97_MICIN
202 4 rudi
ac97_dma_req u8(.clk(           clk             ),
203
                .rst(           rst             ),
204
                .cfg(           ic2_cfg         ),
205
                .status(        i6_status       ),
206
                .full_empty(    i6_full         ),
207
                .dma_req(       dma_req[8]      ),
208
                .dma_ack(       dma_ack[8]      )
209
                );
210
`else
211 10 rudi
assign dma_req[8] = 1'b0;
212 4 rudi
`endif
213
 
214
endmodule
215
 
216
 

powered by: WebSVN 2.1.0

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