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

Subversion Repositories cryptosorter

[/] [cryptosorter/] [trunk/] [memocodeDesignContest2008/] [xup/] [Top/] [sorter.v] - Blame information for rev 3

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 3 kfleming
/*
2
Copyright (c) 2007 MIT
3
 
4
Permission is hereby granted, free of charge, to any person
5
obtaining a copy of this software and associated documentation
6
files (the "Software"), to deal in the Software without
7
restriction, including without limitation the rights to use,
8
copy, modify, merge, publish, distribute, sublicense, and/or sell
9
copies of the Software, and to permit persons to whom the
10
Software is furnished to do so, subject to the following
11
conditions:
12
 
13
The above copyright notice and this permission notice shall be
14
included in all copies or substantial portions of the Software.
15
 
16
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
18
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
20
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
21
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
OTHER DEALINGS IN THE SOFTWARE.
24
 
25
Author: Kermin Fleming
26
*/
27
 
28
module sorter(CLK,
29
                    RST,
30
                    fastClock,
31
                    fastReset,
32
 
33
                    plbMasterWires_mABus,
34
 
35
                    plbMasterWires_mBE,
36
 
37
                    plbMasterWires_mRNW,
38
 
39
                    plbMasterWires_mAbort,
40
 
41
                    plbMasterWires_mBusLock,
42
 
43
                    plbMasterWires_mCompress,
44
 
45
                    plbMasterWires_mGuarded,
46
 
47
                    plbMasterWires_mLockErr,
48
 
49
                    plbMasterWires_mMSize,
50
 
51
                    plbMasterWires_mOrdered,
52
 
53
                    plbMasterWires_mPriority,
54
 
55
                    plbMasterWires_mRdBurst,
56
 
57
                    plbMasterWires_mRequest,
58
 
59
                    plbMasterWires_mSize,
60
 
61
                    plbMasterWires_mType,
62
 
63
                    plbMasterWires_mWrBurst,
64
 
65
                    plbMasterWires_mWrDBus,
66
 
67
                    plbMasterWires_mRst,
68
                    plbMasterWires_mAddrAck,
69
                    plbMasterWires_mBusy,
70
                    plbMasterWires_mErr,
71
                    plbMasterWires_mRdBTerm,
72
                    plbMasterWires_mRdDAck,
73
                    plbMasterWires_mRdDBus,
74
                    plbMasterWires_mRdWdAddr,
75
                    plbMasterWires_mRearbitrate,
76
                    plbMasterWires_mWrBTerm,
77
                    plbMasterWires_mWrDAck,
78
                    plbMasterWires_mSSize,
79
                    plbMasterWires_sMErr,
80
                    plbMasterWires_sMBusy,
81
                    bramInitiatorWires_bramRST,
82
                    bramInitiatorWires_bramAddr,
83
                    bramInitiatorWires_bramDout,
84
                    bramInitiatorWires_bramWEN,
85
                    bramInitiatorWires_bramEN,
86
                    bramInitiatorWires_bramCLK,
87
                    bramInitiatorWires_bramDin);
88
  input  CLK;
89
  input  RST;
90
  input  fastClock;
91
  input  fastReset;
92
  // value method plbMasterWires_mABus
93
  output [31 : 0] plbMasterWires_mABus;
94
 
95
  // value method plbMasterWires_mBE
96
  output [7 : 0] plbMasterWires_mBE;
97
 
98
  // value method plbMasterWires_mRNW
99
  output plbMasterWires_mRNW;
100
 
101
  // value method plbMasterWires_mAbort
102
  output plbMasterWires_mAbort;
103
 
104
  // value method plbMasterWires_mBusLock
105
  output plbMasterWires_mBusLock;
106
 
107
  // value method plbMasterWires_mCompress
108
  output plbMasterWires_mCompress;
109
 
110
  // value method plbMasterWires_mGuarded
111
  output plbMasterWires_mGuarded;
112
 
113
  // value method plbMasterWires_mLockErr
114
  output plbMasterWires_mLockErr;
115
 
116
  // value method plbMasterWires_mMSize
117
  output [1 : 0] plbMasterWires_mMSize;
118
 
119
  // value method plbMasterWires_mOrdered
120
  output plbMasterWires_mOrdered;
121
 
122
  // value method plbMasterWires_mPriority
123
  output [1 : 0] plbMasterWires_mPriority;
124
 
125
  // value method plbMasterWires_mRdBurst
126
  output plbMasterWires_mRdBurst;
127
 
128
  // value method plbMasterWires_mRequest
129
  output plbMasterWires_mRequest;
130
 
131
  // value method plbMasterWires_mSize
132
  output [3 : 0] plbMasterWires_mSize;
133
 
134
  // value method plbMasterWires_mType
135
  output [2 : 0] plbMasterWires_mType;
136
 
137
  // value method plbMasterWires_mWrBurst
138
  output plbMasterWires_mWrBurst;
139
 
140
  // value method plbMasterWires_mWrDBus
141
  output [63 : 0] plbMasterWires_mWrDBus;
142
 
143
  // action method plbMasterWires_plbIN
144
  input  plbMasterWires_mRst;
145
  input  plbMasterWires_mAddrAck;
146
  input  plbMasterWires_mBusy;
147
  input  plbMasterWires_mErr;
148
  input  plbMasterWires_mRdBTerm;
149
  input  plbMasterWires_mRdDAck;
150
  input  [63 : 0] plbMasterWires_mRdDBus;
151
  input  [2 : 0] plbMasterWires_mRdWdAddr;
152
  input  plbMasterWires_mRearbitrate;
153
  input  plbMasterWires_mWrBTerm;
154
  input  plbMasterWires_mWrDAck;
155
  input  plbMasterWires_mSSize;
156
  input  plbMasterWires_sMErr;
157
  input  plbMasterWires_sMBusy;
158
 
159
  // action method bramTargetWires_bramIN
160
  output  [31 : 0] bramInitiatorWires_bramAddr;
161
  output  [31 : 0] bramInitiatorWires_bramDout;
162
  output  [3 : 0] bramInitiatorWires_bramWEN;
163
  output  bramInitiatorWires_bramEN;
164
  output  bramInitiatorWires_bramCLK;
165
  output  bramInitiatorWires_bramRST;
166
 
167
  // value method bramTargetWires_bramOUT
168
  input [31 : 0] bramInitiatorWires_bramDin;
169
 
170
  wire [13:0] bramInitiatorWires_bramAddr_our;
171
  assign bramInitiatorWires_bramAddr = {16'h0000,bramInitiatorWires_bramAddr_our, 2'b00};
172
  // signals for module outputs
173
  wire [31 : 0] bramTargetWires_dinBRAM,plbMasterWires_mABus;
174
 
175
  wire [63 : 0]  plbMasterWires_mWrDBus;
176
  wire [7 : 0] plbMasterWires_mBE;
177
  wire [3 : 0] plbMasterWires_mSize;
178
  wire [2 : 0] plbMasterWires_mType;
179
  wire [1 : 0] plbMasterWires_mMSize, plbMasterWires_mPriority;
180
  wire plbMasterWires_mAbort,
181
       plbMasterWires_mBusLock,
182
       plbMasterWires_mCompress,
183
       plbMasterWires_mGuarded,
184
       plbMasterWires_mLockErr,
185
       plbMasterWires_mOrdered,
186
       plbMasterWires_mRNW,
187
       plbMasterWires_mRdBurst,
188
       plbMasterWires_mRequest,
189
       plbMasterWires_mWrBurst;
190
 
191
wire RST_N;
192
assign RST_N = ~RST;
193
wire fastReset_N;
194
assign fastReset_N = ~fastReset;
195
 
196
mkSorter  m(
197
                .CLK(CLK),
198
                .RST_N(RST_N),
199
                .CLK_fastClock(fastClock),
200
                .RST_N_fastReset(fastReset_N),
201
                .plbMasterWires_mABus(plbMasterWires_mABus),
202
                .plbMasterWires_mBE(plbMasterWires_mBE),
203
                .plbMasterWires_mRNW(plbMasterWires_mRNW),
204
                .plbMasterWires_mAbort(plbMasterWires_mAbort),
205
                .plbMasterWires_mBusLock(plbMasterWires_mBusLock),
206
                .plbMasterWires_mCompress(plbMasterWires_mCompress),
207
                .plbMasterWires_mGuarded(plbMasterWires_mGuarded),
208
                .plbMasterWires_mLockErr(plbMasterWires_mLockErr),
209
                .plbMasterWires_mMSize(plbMasterWires_mMSize),
210
                .plbMasterWires_mOrdered(plbMasterWires_mOrdered),
211
                .plbMasterWires_mPriority(plbMasterWires_mPriority),
212
                .plbMasterWires_mRdBurst(plbMasterWires_mRdBurst),
213
                .plbMasterWires_mRequest(plbMasterWires_mRequest),
214
                .plbMasterWires_mSize(plbMasterWires_mSize),
215
                .plbMasterWires_mType(plbMasterWires_mType),
216
                .plbMasterWires_mWrBurst(plbMasterWires_mWrBurst),
217
                .plbMasterWires_mWrDBus(plbMasterWires_mWrDBus),
218
                .plbMasterWires_mRst(plbMasterWires_mRst),
219
                .plbMasterWires_mAddrAck(plbMasterWires_mAddrAck),
220
                .plbMasterWires_mBusy(plbMasterWires_mBusy),
221
                .plbMasterWires_mErr(plbMasterWires_mErr),
222
                .plbMasterWires_mRdBTerm(plbMasterWires_mRdBTerm),
223
                .plbMasterWires_mRdDAck(plbMasterWires_mRdDAck),
224
                .plbMasterWires_mRdDBus(plbMasterWires_mRdDBus),
225
                .plbMasterWires_mRdWdAddr(plbMasterWires_mRdWdAddr),
226
                .plbMasterWires_mRearbitrate(plbMasterWires_mRearbitrate),
227
                .plbMasterWires_mWrBTerm(plbMasterWires_mWrBTerm),
228
                .plbMasterWires_mWrDAck(plbMasterWires_mWrDAck),
229
                .plbMasterWires_mSSize(plbMasterWires_mSSize),
230
                .plbMasterWires_sMErr(plbMasterWires_sMErr),
231
                .plbMasterWires_sMBusy(plbMasterWires_sMBusy),
232
                .bramInitiatorWires_bramAddr(bramInitiatorWires_bramAddr_our),
233
                .bramInitiatorWires_bramDout(bramInitiatorWires_bramDout),
234
                .bramInitiatorWires_bramWEN(bramInitiatorWires_bramWEN),
235
                .bramInitiatorWires_bramEN(bramInitiatorWires_bramEN),
236
                .bramInitiatorWires_bramCLK(bramInitiatorWires_bramCLK),
237
                .bramInitiatorWires_bramRST(bramInitiatorWires_bramRST),
238
                .bramInitiatorWires_din(bramInitiatorWires_bramDin)
239
                );
240
 
241
endmodule

powered by: WebSVN 2.1.0

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