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

Subversion Repositories ac97

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

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

powered by: WebSVN 2.1.0

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