OpenCores
URL https://opencores.org/ocsvn/an-fpga-implementation-of-low-latency-noc-based-mpsoc/an-fpga-implementation-of-low-latency-noc-based-mpsoc/trunk

Subversion Repositories an-fpga-implementation-of-low-latency-noc-based-mpsoc

[/] [an-fpga-implementation-of-low-latency-noc-based-mpsoc/] [trunk/] [mpsoc/] [perl_gui/] [lib/] [verilog/] [bus.v] - Blame information for rev 48

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 16 alirezamon
/*********************************************************************
2
 
3
        File: wb_master.v
4
 
5
        Copyright (C) 2014  Alireza Monemi
6
 
7
    This program is free software: you can redistribute it and/or modify
8
    it under the terms of the GNU General Public License as published by
9
    the Free Software Foundation, either version 3 of the License, or
10
    (at your option) any later version.
11
 
12
    This program is distributed in the hope that it will be useful,
13
    but WITHOUT ANY WARRANTY; without even the implied warranty of
14
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
    GNU General Public License for more details.
16
 
17
    You should have received a copy of the GNU General Public License
18
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
19
 
20
 
21
        Purpose:
22 48 alirezamon
        generating the wishbone bus interfaces.
23 16 alirezamon
 
24
        Info: monemi@fkegraduate.utm.my
25
 
26
****************************************************************/
27
 
28
 
29
 
30
 
31
 
32
 
33
 
34
module wb_master_socket #(
35
 
36
 
37 17 alirezamon
        parameter Dw     =      32,        // maximum data width
38
        parameter Aw     =      32,    // address width
39 16 alirezamon
        parameter SELw   =      2,
40 17 alirezamon
        parameter TAGw   =      3 ,   //merged  {tga,tgb,tgc}
41
        parameter CTIw   =   3,
42
        parameter BTEw   =   2
43 16 alirezamon
 
44
 
45
)
46
(
47
 
48
 
49
 
50
        //masters interface
51
        output  [Dw-1      :   0]   dat_o,
52
        output                      ack_o,
53
        output                      err_o,
54
        output                      rty_o,
55
 
56
 
57
        input   [Aw-1      :   0]   adr_i,
58
        input   [Dw-1      :   0]   dat_i,
59
        input   [SELw-1    :   0]   sel_i,
60
        input   [TAGw-1    :   0]   tag_i,
61
        input                       we_i,
62
        input                       stb_i,
63 17 alirezamon
        input                       cyc_i,
64
        input   [CTIw-1    :    0]  cti_i,
65
        input   [BTEw-1    :    0]  bte_i
66 16 alirezamon
 
67
        //address compar
68
        //m_grant_addr,
69
    //s_sel_one_hot,
70
 
71
 
72
 
73
 
74
);
75
 
76
 
77
 
78
 
79
endmodule
80
 
81
 
82
 
83
 
84
 
85
 
86
 
87
module wb_slave_socket #(
88
 
89
 
90
        parameter Dw  = 32,        // maximum data width
91
        parameter Aw  = 32,    // address width
92
        parameter SELw   =      2,
93 17 alirezamon
        parameter TAGw   =      3,   //merged  {tga,tgb,tgc}
94
        parameter CTIw   =   3,
95
        parameter BTEw   =   2
96 16 alirezamon
 
97
 
98
)
99
(
100
 
101
 
102
 
103
    output  [Aw-1      :   0]   adr_o,
104
    output  [Dw-1      :   0]   dat_o,
105
    output  [SELw-1    :   0]   sel_o,
106
    output  [TAGw-1    :   0]   tag_o,
107
    output                      we_o,
108 17 alirezamon
    output                      cyc_o,
109
    output                      stb_o,
110
    output   [CTIw-1   :   0]  cti_o,
111
    output   [BTEw-1   :   0]  bte_o,
112 16 alirezamon
 
113
 
114
    input   [DwS-1      :   0]   dat_i,
115
    input      ack_i,
116
    input      err_i,
117
    input      rty_i
118
 
119
);
120
 
121
endmodule
122
 
123
 
124
module clk_socket(
125
        output clk_o
126
 
127
);
128
 
129
endmodule
130
 
131
module reset_socket(
132
        output reset_o
133
 
134
);
135
 
136
endmodule
137
 
138
 
139
 
140
 
141
 
142
 

powered by: WebSVN 2.1.0

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