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

Subversion Repositories dma_axi

[/] [dma_axi/] [trunk/] [src/] [dma_axi64/] [dma_axi64.v] - Blame information for rev 4

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 4 eyalhoc
/////////////////////////////////////////////////////////////////////
2
////                                                             ////
3
////  Author: Eyal Hochberg                                      ////
4
////          eyal@provartec.com                                 ////
5
////                                                             ////
6
////  Downloaded from: http://www.opencores.org                  ////
7
/////////////////////////////////////////////////////////////////////
8
////                                                             ////
9
//// Copyright (C) 2010 Provartec LTD                            ////
10
//// www.provartec.com                                           ////
11
//// info@provartec.com                                          ////
12
////                                                             ////
13
//// This source file may be used and distributed without        ////
14
//// restriction provided that this copyright statement is not   ////
15
//// removed from the file and that any derivative work contains ////
16
//// the original copyright notice and the associated disclaimer.////
17
////                                                             ////
18
//// This source file is free software; you can redistribute it  ////
19
//// and/or modify it under the terms of the GNU Lesser General  ////
20
//// Public License as published by the Free Software Foundation.////
21
////                                                             ////
22
//// This source is distributed in the hope that it will be      ////
23
//// useful, but WITHOUT ANY WARRANTY; without even the implied  ////
24
//// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR     ////
25
//// PURPOSE.  See the GNU Lesser General Public License for more////
26
//// details. http://www.gnu.org/licenses/lgpl.html              ////
27
////                                                             ////
28
/////////////////////////////////////////////////////////////////////
29 2 eyalhoc
//---------------------------------------------------------
30
//-- File generated by RobustVerilog parser
31
//-- Version: 1.0
32
//-- Invoked Fri Mar 25 23:36:52 2011
33
//--
34
//-- Source file: dma.v
35
//---------------------------------------------------------
36
 
37
 
38
 
39
module dma_axi64(clk,reset,scan_en,idle,INT,periph_tx_req,periph_tx_clr,periph_rx_req,periph_rx_clr,pclken,psel,penable,paddr,pwrite,pwdata,prdata,pslverr,pready,AWID0,AWADDR0,AWLEN0,AWSIZE0,AWVALID0,AWREADY0,WID0,WDATA0,WSTRB0,WLAST0,WVALID0,WREADY0,BID0,BRESP0,BVALID0,BREADY0,ARID0,ARADDR0,ARLEN0,ARSIZE0,ARVALID0,ARREADY0,RID0,RDATA0,RRESP0,RLAST0,RVALID0,RREADY0);
40
`include "dma_axi64_defines.v"
41
 
42
   input                                clk;
43
   input                 reset;
44
   input                 scan_en;
45
 
46
   output                 idle;
47
   output [1-1:0]                INT;
48
 
49
   input [31:1]             periph_tx_req;
50
   output [31:1]             periph_tx_clr;
51
   input [31:1]             periph_rx_req;
52
   output [31:1]             periph_rx_clr;
53
 
54
   input                                pclken;
55
   input                                psel;
56
   input                                penable;
57
   input [12:0]                         paddr;
58
   input                                pwrite;
59
   input [31:0]                         pwdata;
60
   output [31:0]                        prdata;
61
   output                               pslverr;
62
   output                               pready;
63
 
64
    output [`ID_BITS-1:0]               AWID0;
65
    output [32-1:0]             AWADDR0;
66
    output [`LEN_BITS-1:0]              AWLEN0;
67
    output [`SIZE_BITS-1:0]      AWSIZE0;
68
    output                              AWVALID0;
69
    input                               AWREADY0;
70
    output [`ID_BITS-1:0]               WID0;
71
    output [64-1:0]             WDATA0;
72
    output [64/8-1:0]           WSTRB0;
73
    output                              WLAST0;
74
    output                              WVALID0;
75
    input                               WREADY0;
76
    input [`ID_BITS-1:0]                BID0;
77
    input [1:0]                         BRESP0;
78
    input                               BVALID0;
79
    output                              BREADY0;
80
    output [`ID_BITS-1:0]               ARID0;
81
    output [32-1:0]             ARADDR0;
82
    output [`LEN_BITS-1:0]              ARLEN0;
83
    output [`SIZE_BITS-1:0]      ARSIZE0;
84
    output                              ARVALID0;
85
    input                               ARREADY0;
86
    input [`ID_BITS-1:0]                RID0;
87
    input [64-1:0]              RDATA0;
88
    input [1:0]                         RRESP0;
89
    input                               RLAST0;
90
    input                               RVALID0;
91
    output                              RREADY0;
92
 
93
 
94
   wire                 rd_port_num0;
95
   wire                 wr_port_num0;
96
   wire                 rd_port_num1;
97
   wire                 wr_port_num1;
98
   wire                 slv_rd_port_num0;
99
   wire                 slv_wr_port_num0;
100
   wire                 slv_rd_port_num1;
101
   wire                 slv_wr_port_num1;
102
 
103
   assign M0_AWID = 1'b0;
104
   assign M0_WID  = 1'b0;
105
   assign M0_ARID = 1'b0;
106
 
107
   wire [`ID_BITS-1:0]                  M0_AWID;
108
   wire [32-1:0]           M0_AWADDR;
109
   wire [`LEN_BITS-1:0]                 M0_AWLEN;
110
   wire [`SIZE_BITS-1:0]         M0_AWSIZE;
111
   wire                                 M0_AWVALID;
112
   wire                                 M0_AWREADY;
113
   wire [`ID_BITS-1:0]                  M0_WID;
114
   wire [64-1:0]           M0_WDATA;
115
   wire [64/8-1:0]         M0_WSTRB;
116
   wire                                 M0_WLAST;
117
   wire                                 M0_WVALID;
118
   wire                                 M0_WREADY;
119
   wire [`ID_BITS-1:0]                  M0_BID;
120
   wire [1:0]                           M0_BRESP;
121
   wire                                 M0_BVALID;
122
   wire                                 M0_BREADY;
123
   wire [`ID_BITS-1:0]                  M0_ARID;
124
   wire [32-1:0]           M0_ARADDR;
125
   wire [`LEN_BITS-1:0]                 M0_ARLEN;
126
   wire [`SIZE_BITS-1:0]         M0_ARSIZE;
127
   wire                                 M0_ARVALID;
128
   wire                                 M0_ARREADY;
129
   wire [`ID_BITS-1:0]                  M0_RID;
130
   wire [64-1:0]           M0_RDATA;
131
   wire [1:0]                           M0_RRESP;
132
   wire                                 M0_RLAST;
133
   wire                                 M0_RVALID;
134
   wire                                 M0_RREADY;
135
 
136
 
137
 
138
   wire [31:1]                 periph_tx_req;
139
   wire [31:1]                 periph_rx_req;
140
   wire [31:1]                 periph_tx_clr;
141
   wire [31:1]                 periph_rx_clr;
142
 
143
 
144
 
145
 
146
 
147
 
148
 
149
 
150
   assign                               AWID0  = M0_AWID;
151
   assign                               AWADDR0  = M0_AWADDR;
152
   assign                               AWLEN0  = M0_AWLEN;
153
   assign                               AWSIZE0  = M0_AWSIZE;
154
   assign                               AWVALID0  = M0_AWVALID;
155
   assign                               WID0  = M0_WID;
156
   assign                               WDATA0  = M0_WDATA;
157
   assign                               WSTRB0  = M0_WSTRB;
158
   assign                               WLAST0  = M0_WLAST;
159
   assign                               WVALID0  = M0_WVALID;
160
   assign                               BREADY0  = M0_BREADY;
161
   assign                               ARID0  = M0_ARID;
162
   assign                               ARADDR0  = M0_ARADDR;
163
   assign                               ARLEN0  = M0_ARLEN;
164
   assign                               ARSIZE0  = M0_ARSIZE;
165
   assign                               ARVALID0  = M0_ARVALID;
166
   assign                               RREADY0  = M0_RREADY;
167
   assign                               M0_AWREADY = AWREADY0;
168
   assign                               M0_WREADY = WREADY0;
169
   assign                               M0_BID = BID0;
170
   assign                               M0_BRESP = BRESP0;
171
   assign                               M0_BVALID = BVALID0;
172
   assign                               M0_ARREADY = ARREADY0;
173
   assign                               M0_RID = RID0;
174
   assign                               M0_RDATA = RDATA0;
175
   assign                               M0_RRESP = RRESP0;
176
   assign                               M0_RLAST = RLAST0;
177
   assign                               M0_RVALID = RVALID0;
178
 
179
 
180
 
181
   dma_axi64_dual_core
182
   dma_axi64_dual_core (
183
             .clk(clk),
184
             .reset(reset),
185
             .scan_en(scan_en),
186
 
187
             .idle(idle),
188
             .INT(INT),
189
             .periph_tx_req(periph_tx_req),
190
             .periph_tx_clr(periph_tx_clr),
191
             .periph_rx_req(periph_rx_req),
192
             .periph_rx_clr(periph_rx_clr),
193
                     .pclken(pclken),
194
                     .psel(psel),
195
                     .penable(penable),
196
                     .paddr(paddr),
197
                     .pwrite(pwrite),
198
                     .pwdata(pwdata),
199
                     .prdata(prdata),
200
                     .pslverr(pslverr),
201
                     .pready(pready),
202
 
203
             .rd_port_num0(rd_port_num0),
204
             .wr_port_num0(wr_port_num0),
205
             .rd_port_num1(rd_port_num1),
206
             .wr_port_num1(wr_port_num1),
207
 
208
                     .M0_AWID(M0_AWID),
209
                     .M0_AWADDR(M0_AWADDR),
210
                     .M0_AWLEN(M0_AWLEN),
211
                     .M0_AWSIZE(M0_AWSIZE),
212
                     .M0_AWVALID(M0_AWVALID),
213
                     .M0_AWREADY(M0_AWREADY),
214
                     .M0_WID(M0_WID),
215
                     .M0_WDATA(M0_WDATA),
216
                     .M0_WSTRB(M0_WSTRB),
217
                     .M0_WLAST(M0_WLAST),
218
                     .M0_WVALID(M0_WVALID),
219
                     .M0_WREADY(M0_WREADY),
220
                     .M0_BID(M0_BID),
221
                     .M0_BRESP(M0_BRESP),
222
                     .M0_BVALID(M0_BVALID),
223
                     .M0_BREADY(M0_BREADY),
224
                     .M0_ARID(M0_ARID),
225
                     .M0_ARADDR(M0_ARADDR),
226
                     .M0_ARLEN(M0_ARLEN),
227
                     .M0_ARSIZE(M0_ARSIZE),
228
                     .M0_ARVALID(M0_ARVALID),
229
                     .M0_ARREADY(M0_ARREADY),
230
                     .M0_RID(M0_RID),
231
                     .M0_RDATA(M0_RDATA),
232
                     .M0_RRESP(M0_RRESP),
233
                     .M0_RLAST(M0_RLAST),
234
                     .M0_RVALID(M0_RVALID),
235
                     .M0_RREADY(M0_RREADY)
236
             );
237
 
238
 
239
 
240
endmodule
241
 
242
 
243
 
244
 

powered by: WebSVN 2.1.0

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