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

Subversion Repositories dma_ahb

[/] [dma_ahb/] [trunk/] [src/] [dma_ahb64/] [dma_ahb64_core0.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:32:59 2011
33
//--
34
//-- Source file: dma_core.v
35
//---------------------------------------------------------
36
 
37
 
38
 
39
module dma_ahb64_core0(clk,reset,scan_en,idle,ch_int_all_proc,ch_start,periph_tx_req,periph_tx_clr,periph_rx_req,periph_rx_clr,pclk,clken,pclken,psel,penable,paddr,pwrite,pwdata,prdata,pslverr,rd_port_num,wr_port_num,joint_mode_in,joint_remote,rd_prio_top,rd_prio_high,rd_prio_top_num,rd_prio_high_num,wr_prio_top,wr_prio_high,wr_prio_top_num,wr_prio_high_num,WHADDR,WHBURST,WHSIZE,WHTRANS,WHWDATA,WHREADY,WHRESP,RHADDR,RHBURST,RHSIZE,RHTRANS,RHRDATA,RHREADY,RHRESP,WHLAST,WHOLD,RHLAST,RHOLD,WSYNC,RSYNC);
40
 
41
   input              clk;
42
   input                     reset;
43
   input                     scan_en;
44
 
45
   output                    idle;
46
   output [8*1-1:0]   ch_int_all_proc;
47
   input [7:0]                  ch_start;
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              pclk;
55
   input              clken;
56
   input              pclken;
57
   input              psel;
58
   input              penable;
59
   input [10:0]          paddr;
60
   input              pwrite;
61
   input [31:0]          pwdata;
62
   output [31:0]          prdata;
63
   output              pslverr;
64
 
65
   output              rd_port_num;
66
   output              wr_port_num;
67
 
68
   input              joint_mode_in;
69
   input              joint_remote;
70
   input               rd_prio_top;
71
   input               rd_prio_high;
72
   input [2:0]              rd_prio_top_num;
73
   input [2:0]              rd_prio_high_num;
74
   input               wr_prio_top;
75
   input               wr_prio_high;
76
   input [2:0]              wr_prio_top_num;
77
   input [2:0]              wr_prio_high_num;
78
 
79
   output [32-1:0]    WHADDR;
80
   output [2:0]              WHBURST;
81
   output [1:0]              WHSIZE;
82
   output [1:0]              WHTRANS;
83
   output [64-1:0]    WHWDATA;
84
   input                     WHREADY;
85
   input                     WHRESP;
86
   output [32-1:0]    RHADDR;
87
   output [2:0]              RHBURST;
88
   output [1:0]              RHSIZE;
89
   output [1:0]              RHTRANS;
90
   input [64-1:0]     RHRDATA;
91
   input                     RHREADY;
92
   input                     RHRESP;
93
   output                    WHLAST;
94
   input                     WHOLD;
95
   output                    RHLAST;
96
   input                     RHOLD;
97
   input                     WSYNC;
98
   input                     RSYNC;
99
 
100
 
101
   //outputs of wdt
102
   wire              wdt_timeout;
103
   wire [2:0]              wdt_ch_num;
104
 
105
   //outputs of rd arbiter
106
   wire              rd_ch_go_joint;
107
   wire              rd_ch_go_null;
108
   wire              rd_ch_go;
109
   wire [2:0]              rd_ch_num;
110
   wire              rd_ch_last;
111
 
112
   //outputs of wr arbiter
113
   wire              wr_ch_go_joint;
114
   wire              wr_ch_go;
115
   wire [2:0]              wr_ch_num_joint;
116
   wire [2:0]              wr_ch_num;
117
   wire              wr_ch_last;
118
   wire              wr_ch_last_joint;
119
 
120
   //outputs of channels
121
   wire [31:0]              prdata;
122
   wire              pslverr;
123
   wire              load_req_in_prog;
124
   wire [7:0]              ch_idle;
125
   wire [7:0]              ch_active;
126
   wire [7:0]              ch_active_joint;
127
   wire [7:0]              ch_rd_active;
128
   wire [7:0]              ch_wr_active;
129
   wire              wr_last_cmd;
130
   wire              rd_line_cmd;
131
   wire              wr_line_cmd;
132
   wire              rd_go_next_line;
133
   wire              wr_go_next_line;
134
 
135
   wire [7:0]              ch_rd_ready_joint;
136
   wire [7:0]              ch_rd_ready;
137
   wire              rd_ready;
138
   wire              rd_ready_joint;
139
   wire [32-1:0]      rd_burst_addr;
140
   wire [8-1:0]     rd_burst_size;
141
   wire [`TOKEN_BITS-1:0]    rd_tokens;
142
   wire              rd_port_num;
143
   wire [`DELAY_BITS-1:0]    rd_periph_delay;
144
   wire              rd_clr_valid;
145
   wire [2:0]              rd_transfer_num;
146
   wire              rd_transfer;
147
   wire [4-1:0]      rd_transfer_size;
148
   wire              rd_clr_stall;
149
 
150
   wire [7:0]              ch_wr_ready;
151
   wire              wr_ready;
152
   wire              wr_ready_joint;
153
   wire [32-1:0]      wr_burst_addr;
154
   wire [8-1:0]     wr_burst_size;
155
   wire [`TOKEN_BITS-1:0]    wr_tokens;
156
   wire              wr_port_num;
157
   wire [`DELAY_BITS-1:0]    wr_periph_delay;
158
   wire              wr_clr_valid;
159
   wire              wr_clr_stall;
160
   wire [7:0]              ch_joint_req;
161
   wire              joint_req;
162
   wire              joint_mode;
163
 
164
   wire              joint_ch_go;
165
   wire              joint_stall;
166
 
167
   //outputs of rd ctrl
168
   wire              rd_burst_start;
169
   wire              rd_finish_joint;
170
   wire              rd_finish;
171
   wire              rd_ctrl_busy;
172
 
173
   //outputs of wr ctrl
174
   wire              wr_burst_start_joint;
175
   wire              wr_burst_start;
176
   wire              wr_finish;
177
   wire              wr_ctrl_busy;
178
 
179
 
180
   //outputs of axim wr
181
   wire              wr_cmd_split;
182
   wire [2:0]              wr_cmd_num;
183
   wire              wr_cmd_pending_joint;
184
   wire              wr_cmd_pending;
185
   wire              wr_cmd_full_joint;
186
   wire              ch_fifo_rd;
187
   wire [4-1:0]      ch_fifo_rsize;
188
   wire [2:0]              ch_fifo_rd_num;
189
   wire [2:0]              wr_transfer_num;
190
   wire              wr_transfer;
191
   wire [4-1:0]      wr_transfer_size;
192
   wire [4-1:0]      wr_next_size;
193
   wire              wr_clr_line;
194
   wire [2:0]              wr_clr_line_num;
195
   wire              wr_cmd_full;
196
   wire              wr_slverr;
197
   wire              wr_decerr;
198
   wire              wr_clr;
199
   wire              wr_clr_last;
200
   wire [2:0]              wr_ch_num_resp;
201
   wire              timeout_aw;
202
   wire              timeout_w;
203
   wire [2:0]              timeout_num_aw;
204
   wire [2:0]              timeout_num_w;
205
   wire              wr_hold_ctrl;
206
   wire              wr_hold;
207
   wire              joint_in_prog;
208
   wire              joint_not_in_prog;
209
   wire              joint_mux_in_prog;
210
   wire              wr_page_cross;
211
 
212
   //outputs of axim rd   
213
   wire              load_wr;
214
   wire [2:0]              load_wr_num;
215
   wire [1:0]              load_wr_cycle;
216
   wire [64-1:0]      load_wdata;
217
   wire              rd_cmd_split;
218
   wire              rd_cmd_line;
219
   wire [2:0]              rd_cmd_num;
220
   wire              rd_cmd_pending_joint;
221
   wire              rd_cmd_pending;
222
   wire              rd_cmd_full_joint;
223
   wire              ch_fifo_wr;
224
   wire [64-1:0]      ch_fifo_wdata;
225
   wire [4-1:0]      ch_fifo_wsize;
226
   wire [2:0]              ch_fifo_wr_num;
227
   wire              rd_clr_line;
228
   wire [2:0]              rd_clr_line_num;
229
   wire              rd_burst_cmd;
230
   wire              rd_cmd_full;
231
   wire              rd_slverr;
232
   wire              rd_decerr;
233
   wire              rd_clr;
234
   wire              rd_clr_last;
235
   wire              rd_clr_load;
236
   wire [2:0]              rd_ch_num_resp;
237
   wire              timeout_ar;
238
   wire [2:0]              timeout_num_ar;
239
   wire              rd_hold_joint;
240
   wire              rd_hold_ctrl;
241
   wire              rd_hold;
242
   wire              joint_hold;
243
   wire              rd_page_cross;
244
 
245
   wire              joint_page_cross;
246
   wire              rd_arbiter_en;
247
   wire              wr_arbiter_en;
248
 
249
   wire              rd_cmd_port;
250
   wire              wr_cmd_port;
251
 
252
   //outputs of fifo ctrl
253
   wire [64-1:0]      ch_fifo_rdata;
254
   wire              ch_fifo_rd_valid;
255
   wire              ch_fifo_wr_ready;
256
   wire              FIFO_WR;
257
   wire              FIFO_RD;
258
   wire [3+5-3-1:0]  FIFO_WR_ADDR;
259
   wire [3+5-3-1:0]  FIFO_RD_ADDR;
260
   wire [64-1:0]      FIFO_DIN;
261
   wire [8-1:0]      FIFO_BSEL;
262
 
263
   //outputs of fifo wrap
264
   wire [64-1:0]      FIFO_DOUT;
265
 
266
   wire              clk_en;
267
   wire              gclk;
268
 
269
 
270
   assign              joint_mode = joint_mode_in & 1'b1;
271
 
272
 
273
   assign              rd_arbiter_en        = 1'b1;
274
   assign              wr_arbiter_en        = !joint_mode;
275
 
276
   assign              rd_ready             = ch_rd_ready[rd_ch_num];
277
   assign              wr_ready             = ch_wr_ready[wr_ch_num_joint];
278
   assign              rd_ready_joint       = joint_mode & joint_req ? rd_ready & wr_ready : rd_ready;
279
   assign              wr_ready_joint       = joint_mode & joint_req ? rd_ready & wr_ready : wr_ready;
280
   assign              ch_active_joint      = joint_mode ? ch_rd_active | ch_wr_active : ch_rd_active;
281
 
282
   assign              joint_page_cross     = (rd_page_cross & rd_ready) | (wr_page_cross & wr_ready);
283
 
284
   assign              joint_req            = ch_joint_req[rd_ch_num];
285
 
286
   assign              ch_rd_ready_joint    = joint_mode ?
287
                 (ch_joint_req & ch_rd_ready & ch_wr_ready) |
288
                   ((~ch_joint_req) & (ch_rd_ready | ch_wr_ready)) :
289
                 ch_rd_ready;
290
 
291
   assign              wr_burst_start_joint = joint_mode & joint_req ? rd_burst_start : wr_burst_start;
292
 
293
   assign              joint_hold           = joint_mux_in_prog | (joint_in_prog & (~joint_req)) | (joint_not_in_prog & joint_req) | joint_stall | (joint_req & joint_page_cross);
294
 
295
   assign              rd_hold_ctrl         = joint_mode ? rd_hold | joint_hold | (joint_in_prog & wr_hold) : rd_hold;
296
   assign              rd_hold_joint        = joint_mode & (rd_hold_ctrl | rd_ctrl_busy | wr_ctrl_busy);
297
   assign              wr_hold_ctrl         = joint_mode & (joint_req | joint_in_prog) ? wr_hold | joint_hold : wr_hold;
298
 
299
   assign              rd_ch_go_joint       = rd_ch_go & ch_rd_ready[rd_ch_num] & (~rd_ctrl_busy);
300
   assign              wr_ch_go_joint       = joint_mode ? (wr_ready & (~wr_ctrl_busy) &
301
                                  (joint_req ? rd_ch_go_joint : rd_ch_go & (~rd_ch_go_joint))) : wr_ch_go;
302
   assign              rd_ch_go_null        = rd_ch_go & (~rd_ch_go_joint) & (joint_mode ? (~wr_ch_go_joint) : 1'b1);
303
 
304
   assign              wr_ch_num_joint      = joint_mode ? rd_ch_num : wr_ch_num;
305
 
306
   assign              wr_ch_last_joint     = joint_mode ? rd_ch_last : wr_ch_last;
307
 
308
   assign              rd_finish_joint      = joint_mode ? rd_finish | wr_finish | rd_ch_go_null : rd_finish | rd_ch_go_null;
309
 
310
   assign              rd_cmd_full_joint    = joint_mode & joint_req ? wr_cmd_full | rd_cmd_full : rd_cmd_full;
311
   assign              wr_cmd_full_joint    = joint_mode & joint_req ? wr_cmd_full | rd_cmd_full : wr_cmd_full;
312
   assign              rd_cmd_pending_joint = joint_mode ? rd_cmd_pending | wr_cmd_pending : rd_cmd_pending;
313
   assign              wr_cmd_pending_joint = joint_mode & joint_req ? rd_cmd_pending | wr_cmd_pending : wr_cmd_pending;
314
 
315
   assign              idle                 = &ch_idle;
316
 
317
   assign             gclk = clk;
318
 
319
 
320
   dma_ahb64_core0_wdt  dma_ahb64_core0_wdt (
321
                           .clk(gclk),
322
                           .reset(reset),
323
                           .ch_active(ch_active),
324
                           .rd_burst_start(rd_burst_start),
325
                           .rd_ch_num(rd_ch_num),
326
                           .wr_burst_start(wr_burst_start_joint),
327
                           .wr_ch_num(wr_ch_num_joint),
328
                           .wdt_timeout(wdt_timeout),
329
                           .wdt_ch_num(wdt_ch_num)
330
                           );
331
 
332
 
333
   dma_ahb64_core0_arbiter
334
   dma_ahb64_core0_arbiter_rd (
335
                .clk(gclk),
336
                .reset(reset),
337
                .enable(rd_arbiter_en),
338
                .joint_mode(joint_mode),
339
                .page_cross(joint_page_cross),
340
                .joint_req(joint_req),
341
                .prio_top(rd_prio_top),
342
                .prio_high(rd_prio_high),
343
                .prio_top_num(rd_prio_top_num),
344
                .prio_high_num(rd_prio_high_num),
345
                .hold(rd_hold_joint),
346
                .ch_ready(ch_rd_ready_joint),
347
                .ch_active(ch_active_joint),
348
                .finish(rd_finish_joint),
349
                .ch_go_out(rd_ch_go),
350
                .ch_num(rd_ch_num),
351
                .ch_last(rd_ch_last)
352
                );
353
 
354
 
355
   dma_ahb64_core0_arbiter
356
   dma_ahb64_core0_arbiter_wr (
357
                .clk(gclk),
358
                .reset(reset),
359
                .enable(wr_arbiter_en),
360
                .joint_mode(joint_mode),
361
                .page_cross(1'b0),
362
                .joint_req(joint_req),
363
                .prio_top(wr_prio_top),
364
                .prio_high(wr_prio_high),
365
                .prio_top_num(wr_prio_top_num),
366
                .prio_high_num(wr_prio_high_num),
367
                .hold(1'b0),
368
                .ch_ready(ch_wr_ready),
369
                .ch_active(ch_wr_active),
370
                .finish(wr_finish),
371
                .ch_go_out(wr_ch_go),
372
                .ch_num(wr_ch_num),
373
                .ch_last(wr_ch_last)
374
                );
375
 
376
 
377
   dma_ahb64_core0_ctrl  dma_ahb64_core0_ctrl_rd (
378
                        .clk(gclk),
379
                        .reset(reset),
380
                        .ch_go(rd_ch_go_joint),
381
                        .cmd_full(rd_cmd_full_joint),
382
                        .cmd_pending(rd_cmd_pending_joint),
383
                        .joint_req(joint_req),
384
                        .ch_num(rd_ch_num),
385
                        .ch_num_resp(rd_ch_num_resp),
386
                        .go_next_line(rd_go_next_line),
387
                        .periph_clr_valid(rd_clr_valid),
388
                        .periph_clr(rd_clr),
389
                        .periph_clr_last(rd_clr_last),
390
                        .periph_delay(rd_periph_delay),
391
                        .clr_stall(rd_clr_stall),
392
                        .tokens(rd_tokens),
393
                        .ch_ready(rd_ready_joint),
394
                        .ch_last(rd_ch_last),
395
                        .burst_start(rd_burst_start),
396
                        .finish(rd_finish),
397
                        .busy(rd_ctrl_busy),
398
                        .hold(rd_hold_ctrl)
399
                        );
400
 
401
 
402
   dma_ahb64_core0_ctrl  dma_ahb64_core0_ctrl_wr (
403
                        .clk(gclk),
404
                        .reset(reset),
405
                        .ch_go(wr_ch_go_joint),
406
                        .cmd_full(wr_cmd_full_joint),
407
                        .cmd_pending(wr_cmd_pending_joint),
408
                        .joint_req(joint_req),
409
                        .ch_num(wr_ch_num_joint),
410
                        .ch_num_resp(wr_ch_num_resp),
411
                        .go_next_line(wr_go_next_line),
412
                        .periph_clr_valid(wr_clr_valid),
413
                        .periph_clr(wr_clr),
414
                        .periph_clr_last(wr_clr_last),
415
                        .periph_delay(wr_periph_delay),
416
                        .clr_stall(wr_clr_stall),
417
                        .tokens(wr_tokens),
418
                        .ch_ready(wr_ready_joint),
419
                        .ch_last(wr_ch_last_joint),
420
                        .burst_start(wr_burst_start),
421
                        .finish(wr_finish),
422
                        .busy(wr_ctrl_busy),
423
                        .hold(wr_hold_ctrl)
424
                        );
425
 
426
   dma_ahb64_core0_ahbm_wr
427
   dma_ahb64_core0_ahbm_wr (
428
             .clk(gclk),
429
             .reset(reset),
430
             .joint_req(joint_req),
431
             .joint_in_prog(joint_in_prog),
432
             .joint_stall(joint_stall),
433
             .rd_transfer(rd_transfer),
434
             .rd_transfer_size(rd_transfer_size),
435
             .wr_last_cmd(wr_last_cmd),
436
             .wr_ch_num(wr_ch_num_joint),
437
             .wr_ch_num_resp(wr_ch_num_resp),
438
             .wr_port_num(wr_port_num),
439
             .wr_cmd_port(wr_cmd_port),
440
             .wr_burst_start(wr_burst_start_joint),
441
             .wr_burst_addr(wr_burst_addr),
442
             .wr_burst_size(wr_burst_size),
443
             .wr_cmd_pending(wr_cmd_pending),
444
             .wr_cmd_full(wr_cmd_full),
445
             .wr_line_cmd(wr_line_cmd),
446
             .wr_clr_line(wr_clr_line),
447
             .wr_clr_line_num(wr_clr_line_num),
448
             .ch_fifo_rd(ch_fifo_rd),
449
             .ch_fifo_rd_num(ch_fifo_rd_num),
450
             .ch_fifo_rdata(ch_fifo_rdata),
451
             .ch_fifo_rd_valid(ch_fifo_rd_valid),
452
             .ch_fifo_rsize(ch_fifo_rsize),
453
             .ch_fifo_wr_ready(ch_fifo_wr_ready),
454
             .wr_transfer(wr_transfer),
455
             .wr_transfer_num(wr_transfer_num),
456
             .wr_transfer_size(wr_transfer_size),
457
             .wr_next_size(wr_next_size),
458
             .wr_slverr(wr_slverr),
459
             .wr_clr(wr_clr),
460
             .wr_clr_last(wr_clr_last),
461
             .wr_hold(wr_hold),
462
             .ahb_wr_timeout(timeout_aw),
463
             .ahb_wr_timeout_num(timeout_num_aw),
464
             .HADDR(WHADDR),
465
             .HBURST(WHBURST),
466
             .HSIZE(WHSIZE),
467
             .HTRANS(WHTRANS),
468
             .HLAST(WHLAST),
469
             .HWDATA(WHWDATA),
470
             .HREADY(WHREADY),
471
             .HRESP(WHRESP),
472
             .HOLD(WHOLD),
473
             .SYNC(WSYNC)
474
             );
475
 
476
 
477
   dma_ahb64_core0_ahbm_rd
478
   dma_ahb64_core0_ahbm_rd (
479
             .clk(clk),
480
             .reset(reset),
481
             .load_wr(load_wr),
482
             .load_wr_cycle(load_wr_cycle),
483
             .load_req_in_prog(load_req_in_prog),
484
             .joint_stall(joint_stall),
485
             .rd_ch_num(rd_ch_num),
486
             .rd_port_num(rd_port_num),
487
             .rd_cmd_port(rd_cmd_port),
488
             .rd_burst_start(rd_burst_start),
489
             .rd_burst_addr(rd_burst_addr),
490
             .rd_burst_size(rd_burst_size),
491
             .rd_cmd_pending(rd_cmd_pending),
492
             .rd_cmd_line(rd_cmd_line),
493
             .rd_line_cmd(rd_line_cmd),
494
             .rd_cmd_num(rd_cmd_num),
495
             .rd_clr_line(rd_clr_line),
496
             .rd_clr_line_num(rd_clr_line_num),
497
             .ch_fifo_wr(ch_fifo_wr),
498
             .ch_fifo_wdata(ch_fifo_wdata),
499
             .ch_fifo_wsize(ch_fifo_wsize),
500
             .ch_fifo_wr_num(ch_fifo_wr_num),
501
             .rd_transfer(rd_transfer),
502
             .rd_transfer_num(rd_transfer_num),
503
             .rd_transfer_size(rd_transfer_size),
504
             .rd_slverr(rd_slverr),
505
             .rd_clr(rd_clr),
506
             .rd_clr_last(rd_clr_last),
507
             .rd_clr_load(rd_clr_load),
508
             .rd_hold(rd_hold),
509
             .ahb_rd_timeout(timeout_ar),
510
             .ahb_rd_timeout_num(timeout_num_ar),
511
             .HADDR(RHADDR),
512
             .HBURST(RHBURST),
513
             .HSIZE(RHSIZE),
514
             .HTRANS(RHTRANS),
515
             .HLAST(RHLAST),
516
             .HRDATA(RHRDATA),
517
             .HREADY(RHREADY),
518
             .HRESP(RHRESP),
519
             .HOLD(RHOLD),
520
             .SYNC(RSYNC)
521
             );
522
 
523
   //compatible to AXI
524
   assign             rd_cmd_split           = 1'd0; //needed for OUTS
525
   assign             wr_cmd_split           = 1'd0; //needed for OUTS
526
   assign             wr_cmd_num             = 3'd0; //needed for OUTS
527
   assign             load_wr_num            = ch_fifo_wr_num;
528
   assign             load_wdata             = ch_fifo_wdata;
529
   assign             rd_decerr              = 1'b0;
530
   assign             wr_decerr              = 1'b0;
531
   assign             rd_ch_num_resp         = rd_transfer_num;
532
   assign             timeout_w              = 1'd0;
533
   assign              timeout_num_w          = 3'd0;
534
   assign             rd_page_cross          = 1'b0;
535
   assign             wr_page_cross          = 1'b0;
536
 
537
 
538
 
539
 
540
   dma_ahb64_core0_channels
541
   dma_ahb64_core0_channels (
542
              .clk(clk), //non gated
543
              .reset(reset),
544
              .scan_en(scan_en),
545
              .pclk(pclk),
546
              .clken(clken),
547
              .pclken(pclken),
548
              .psel(psel),
549
              .penable(penable),
550
              .paddr(paddr[10:0]),
551
              .pwrite(pwrite),
552
              .pwdata(pwdata),
553
              .prdata(prdata),
554
              .pslverr(pslverr),
555
              .periph_tx_req(periph_tx_req),
556
              .periph_tx_clr(periph_tx_clr),
557
              .periph_rx_req(periph_rx_req),
558
              .periph_rx_clr(periph_rx_clr),
559
              .rd_cmd_split(rd_cmd_split),
560
              .rd_cmd_line(rd_cmd_line),
561
              .rd_cmd_num(rd_cmd_num),
562
              .wr_cmd_split(wr_cmd_split),
563
              .wr_cmd_pending(wr_cmd_pending),
564
              .wr_cmd_num(wr_cmd_num),
565
              .rd_clr_valid(rd_clr_valid),
566
              .wr_clr_valid(wr_clr_valid),
567
              .rd_clr(rd_clr),
568
              .rd_clr_load(rd_clr_load),
569
              .wr_clr(wr_clr),
570
                  .rd_clr_stall(rd_clr_stall),
571
                  .wr_clr_stall(wr_clr_stall),
572
              .load_wr(load_wr),
573
              .load_wr_num(load_wr_num),
574
              .load_wr_cycle(load_wr_cycle),
575
              .rd_ch_num(rd_ch_num),
576
              .load_req_in_prog(load_req_in_prog),
577
              .wr_ch_num(wr_ch_num_joint),
578
              .wr_last_cmd(wr_last_cmd),
579
              .load_wdata(load_wdata),
580
              .wr_slverr(wr_slverr),
581
              .wr_decerr(wr_decerr),
582
              .wr_ch_num_resp(wr_ch_num_resp),
583
              .rd_slverr(rd_slverr),
584
              .rd_decerr(rd_decerr),
585
              .rd_ch_num_resp(rd_ch_num_resp),
586
              .wr_clr_last(wr_clr_last),
587
              .ch_int_all_proc(ch_int_all_proc),
588
              .ch_start(ch_start),
589
              .ch_idle(ch_idle),
590
              .ch_active(ch_active),
591
              .ch_rd_active(ch_rd_active),
592
              .ch_wr_active(ch_wr_active),
593
              .rd_line_cmd(rd_line_cmd),
594
              .wr_line_cmd(wr_line_cmd),
595
              .rd_go_next_line(rd_go_next_line),
596
              .wr_go_next_line(wr_go_next_line),
597
 
598
              .timeout_aw(timeout_aw),
599
              .timeout_w(timeout_w),
600
              .timeout_ar(timeout_ar),
601
              .timeout_num_aw(timeout_num_aw),
602
              .timeout_num_w(timeout_num_w),
603
              .timeout_num_ar(timeout_num_ar),
604
              .wdt_timeout(wdt_timeout),
605
              .wdt_ch_num(wdt_ch_num),
606
 
607
              .ch_fifo_wr_num(ch_fifo_wr_num),
608
              .rd_transfer_num(rd_transfer_num),
609
              .rd_burst_start(rd_burst_start),
610
              .ch_rd_ready(ch_rd_ready),
611
              .rd_burst_addr(rd_burst_addr),
612
              .rd_burst_size(rd_burst_size),
613
              .rd_tokens(rd_tokens),
614
              .rd_cmd_port(rd_cmd_port),
615
              .rd_periph_delay(rd_periph_delay),
616
              .rd_transfer(rd_transfer),
617
              .rd_transfer_size(rd_transfer_size),
618
              .rd_clr_line(rd_clr_line),
619
              .rd_clr_line_num(rd_clr_line_num),
620
              .fifo_rd(ch_fifo_rd),
621
              .fifo_rsize(ch_fifo_rsize),
622
              .fifo_rd_valid(ch_fifo_rd_valid),
623
              .fifo_rdata(ch_fifo_rdata),
624
              .fifo_wr_ready(ch_fifo_wr_ready),
625
 
626
              .ch_fifo_rd_num(ch_fifo_rd_num),
627
              .wr_burst_start(wr_burst_start_joint),
628
              .ch_wr_ready(ch_wr_ready),
629
              .wr_burst_addr(wr_burst_addr),
630
              .wr_burst_size(wr_burst_size),
631
              .wr_tokens(wr_tokens),
632
              .wr_cmd_port(wr_cmd_port),
633
              .wr_periph_delay(wr_periph_delay),
634
              .wr_transfer_num(wr_transfer_num),
635
              .wr_transfer(wr_transfer),
636
              .wr_transfer_size(wr_transfer_size),
637
              .wr_next_size(wr_next_size),
638
              .wr_clr_line(wr_clr_line),
639
              .wr_clr_line_num(wr_clr_line_num),
640
              .fifo_wr(ch_fifo_wr),
641
              .fifo_wdata(ch_fifo_wdata),
642
              .fifo_wsize(ch_fifo_wsize),
643
 
644
              .joint_mode(joint_mode),
645
              .joint_remote(joint_remote),
646
              .rd_page_cross(rd_page_cross),
647
              .wr_page_cross(wr_page_cross),
648
              .joint_in_prog(joint_in_prog),
649
              .joint_not_in_prog(joint_not_in_prog),
650
              .joint_mux_in_prog(joint_mux_in_prog),
651
              .ch_joint_req(ch_joint_req)
652
              );
653
 
654
 
655
 
656
endmodule
657
 
658
 
659
 
660
 

powered by: WebSVN 2.1.0

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