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_sel.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_sel.v
31
INCLUDE def_ahb_matrix.txt
32
 
33
ITER MX
34
ITER SX
35
module PREFIX_sel(PORTS);
36
 
37
   input                       clk;
38
   input                       reset;
39
 
40
   input [MSTRS-1:0]           SSX_mstr;
41
 
42
   input                       SSX_HREADY;
43
 
44
 
45
   output                      SSX_MMX;
46
   output                      SSX_MMX_resp;
47
 
48
 
49
 
50
 
51
   reg [MSTRS-1:0]             SSX_mstr_resp;
52
 
53
 
54
   LOOP SX
55
   always @(posedge clk or posedge reset)
56
     if (reset)
57
       SSX_mstr_resp <= #FFD {MSTRS{1'b0}};
58
     else if (SSX_HREADY)
59
       SSX_mstr_resp <= #FFD SSX_mstr;
60
 
61
   ENDLOOP SX
62
 
63
 
64
   assign                     SSX_MMX      = SSX_mstr[MX];
65
 
66
   assign                     SSX_MMX_resp = SSX_mstr_resp[MX];
67
 
68
endmodule
69
 
70
 
71
 
72
 

powered by: WebSVN 2.1.0

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