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

Subversion Repositories robust_ahb_matrix

[/] [robust_ahb_matrix/] [trunk/] [src/] [base/] [ahb_matrix.v] - Blame information for rev 10

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 10 eyalhoc
<##//////////////////////////////////////////////////////////////////
2 2 eyalhoc
////                                                             ////
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 10 eyalhoc
//////////////////////////////////////////////////////////////////##>
29 2 eyalhoc
 
30
OUTFILE PREFIX.v
31
INCLUDE def_ahb_matrix.txt
32
 
33
ITER MX
34
ITER SX
35
 
36
module PREFIX(PORTS);
37
 
38
   input                       clk;
39
   input                       reset;
40
 
41
   port                        MMX_GROUP_AHB;
42
   revport                     SSX_GROUP_AHB;
43
 
44
 
45
 
46
   wire [MSTRS-1:0]            SSX_mstr;
47
 
48
   wire [SLV_BITS-1:0]         MMX_slv;
49
 
50
   wire                        MMX_HLAST;
51
 
52
   wire                        SSX_MMX;
53
   wire                        SSX_MMX_resp;
54
 
55
 
56
 
57
   CREATE ahb_matrix_dec.v
58
   PREFIX_dec
59
   PREFIX_dec (
60
                  .MMX_HADDR(MMX_HADDR),
61
                  .MMX_slv(MMX_slv),
62
                  STOMP ,
63
                  );
64
 
65
 
66
   CREATE ahb_matrix_hlast.v
67
     PREFIX_hlast
68
       PREFIX_hlast(
69
                        .clk(clk),
70
                        .reset(reset),
71
                        .MMX_HTRANS(MMX_HTRANS),
72
                        .MMX_HREADY(MMX_HREADY),
73
                        .MMX_HBURST(MMX_HBURST),
74
                        .MMX_HLAST(MMX_HLAST),
75
                        STOMP ,
76
                        );
77
 
78
 
79
   CREATE prgen_arbiter.v DEFCMD(SWAP CONST(PREFIX) PREFIX) DEFCMD(SWAP MSTR_SLV mstr) DEFCMD(SWAP MSTRNUM MSTRS) DEFCMD(SWAP SLVNUM SLVS) DEFCMD(DEFINE DEF_PRIO)
80
   prgen_arbiter_mstr_MSTRS_SLVS
81
   prgen_arbiter_mstr_MSTRS_SLVS(
82
                                 .clk(clk),
83
                                 .reset(reset),
84
 
85
                                 .MMX_slave(MMX_slv),
86
 
87
                                 .SSX_master(SSX_mstr),
88
 
89
                                 .M_last({CONCAT(MMX_HLAST ,)}),
90
                                 .M_req({CONCAT(MMX_HTRANS[1] ,)}),
91
                                 .M_grant({CONCAT(MMX_HREADY ,)})
92
                                 );
93
 
94
 
95
   CREATE ahb_matrix_sel.v
96
   PREFIX_sel
97
     PREFIX_sel (
98
                     .clk(clk),
99
                     .reset(reset),
100
                     .SSX_mstr(SSX_mstr),
101
                     .SSX_HREADY(SSX_HREADY),
102
                     .SSX_MMX(SSX_MMX),
103
                     .SSX_MMX_resp(SSX_MMX_resp),
104
                     STOMP ,
105
                     );
106
 
107
 
108
   CREATE ahb_matrix_bus.v
109
   PREFIX_bus
110
     PREFIX_bus (
111
                     .clk(clk),
112
                     .reset(reset),
113
                     .MMX_GROUP_AHB(MMX_GROUP_AHB),
114
                     .SSX_GROUP_AHB(SSX_GROUP_AHB),
115
                     .SSX_MMX(SSX_MMX),
116
                     .SSX_MMX_resp(SSX_MMX_resp),
117
                     STOMP ,
118
                     );
119
 
120
 
121
 
122
 
123
endmodule
124
 
125
 
126
 
127
 

powered by: WebSVN 2.1.0

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